What is the GraphQL Formatter?
Paste a GraphQL query, mutation or schema and get tidy, indented code. It is easy to read, to share and to compare in code review.
Choose Minify to make a query as short as possible for sending in a request. Comments are removed in that mode.
How to use it
- Paste your GraphQL in the left box.
- The clean version shows on the right.
- Copy it or save it as a file.
Why people like this tool
Prettier powered
The same formatter many teams use.
Fast and private
Runs in your browser, nothing is sent.
Shows the error
Tells you where the code is broken.
Your style
Choose indent size and line width.