GraphQL Formatter

Turn a one-line GraphQL query into a readable, properly indented one you can debug and share.

How to use the GraphQL Formatter

  1. Add your text, file or details in the tool above.
  2. Adjust the settings to get the result you want.
  3. Copy or download your result. Nothing is uploaded.

What you can use it for

  • Read queries copied from network logs
  • Tidy schemas before code review
  • Minify queries for requests

Private by design

The GraphQL Formatter runs entirely in your browser. Your text and files are never uploaded or stored on a server, so it is safe for work documents and personal information. It is free, with no sign-up and no limits on how often you use it.

Frequently asked questions

Does it validate my query?

It checks syntax. It cannot check your query against a server schema.

Are comments kept?

Yes when formatting. Minifying removes them.