Back to Tools
GraphQL Query Formatter
GraphQL Query Formatter
Beautify, indent, and format GraphQL queries.
About the GraphQL Query Formatter
Format a GraphQL query with proper indentation.
How to use the GraphQL Query Formatter
- Paste your code into the input box, or click Sample to load an example.
- Press Process / Generate.
- Use Copy (or Download where shown) to keep the result. Clear empties the box.
Worked example
query { user(id: 1) { name email } } is laid out with each field on its own line.
Tips
- Readable queries are easier to debug and review.
Frequently Asked Questions
No. Only whitespace changes.