Skip to content

GraphQL Formatter

Embed

Paste this where you want GraphQL Formatter on your site. Adjust the height to fit.

<iframe src="https://www.browserutils.dev/embed/graphql-formatter/" width="100%" height="500" frameborder="0" loading="lazy" title="GraphQL Formatter"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://www.browserutils.dev/tools/graphql-formatter/">GraphQL Formatter</a> by BrowserUtils</p>

Beautify GraphQL queries and schemas.Runs in this tab.

Next step

About GraphQL Formatter

Free online GraphQL formatter and beautifier. Format GraphQL queries, mutations, and schema definitions with proper indentation. It runs in your browser. Nothing is sent to a server.

Questions

How do I format a GraphQL query?
Paste your GraphQL query or schema definition into the input field. The formatter will add proper indentation for nested fields, align arguments, and produce a clean, readable structure.
Does it support mutations and subscriptions?
Yes, the formatter handles all GraphQL operation types including queries, mutations, subscriptions, and schema definitions with type definitions, interfaces, and input types.
Does the GraphQL formatter handle fragments and directives?
Yes, fragments, inline fragments, and directives like @deprecated or @skip are preserved and properly indented in the formatted output.
Is the GraphQL formatter private and secure?
All formatting runs locally in your browser. Your queries and schema definitions are never transmitted to any external service.

More in Formatters & Beautifiers

All 26 formatters & beautifiers