How to use the GraphQL Formatter
- Paste your GraphQL query, mutation or schema.
- Choose Beautify for readable output or Minify for requests.
- 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.