GraphQL Query Formatter
Format and prettify GraphQL queries, mutations, and fragments with proper indentation and syntax highlighting.
Frequently Asked Questions
What does the GraphQL Formatter do?
It takes compact or minified GraphQL queries, mutations, and fragments and applies proper indentation and line breaks to make them readable.
Does it validate my GraphQL schema?
No — this is a formatting tool only. It structures the text based on braces and parentheses but does not validate against any schema.
How does syntax highlighting work?
Keywords like query, mutation, fragment, and type names are highlighted using the accent color. Strings are shown in green and comments in the muted color.
Can I format fragments and subscriptions?
Yes — the formatter handles all GraphQL operation types including queries, mutations, subscriptions, and fragment definitions.