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. Paste your GraphQL query, mutation or schema.
  2. Choose Beautify for readable output or Minify for requests.
  3. Copy the formatted GraphQL or download it.

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.