GraphQL Formatter

Format and minify GraphQL queries, mutations, and SDL

Pretty-print or minify GraphQL queries, mutations, and schema SDL — syntax-aware formatting in your browser.

Also known as: gql formatter · graphql query formatter · format graphql schema

100% In-Browser & Private — your data never leaves this device
Loading tool...

How to use the GraphQL Formatter

  1. Paste a GraphQL query, mutation, or schema SDL.
  2. Choose Pretty print or Minify.
  3. Copy or download the formatted output.

FAQ

Does this validate GraphQL syntax?
Invalid syntax is reported before formatting; fix errors shown in the panel.
Is my query uploaded?
No. Formatting runs entirely in your browser.
Suggest an improvementRequest a feature, report an issue, or propose a new tool

Your tool inputs stay private in your browser. Only this message is sent to PeachTools — no account required.

What would you like to share?

0/500 · minimum 20 characters

Rate limited to keep spam out — thanks for understanding.

Related tools

More private, in-browser utilities you might need next.

Looking for more? Browse all developer tools · All tools