What is this tool?
GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. While query structures can grow deeply nested and hard to read, proper formatting (with indentation, fields alignment, and clean brackets) helps developers debug queries and mutations quickly.
How to use it
1. Paste your disorganized or minified GraphQL query in the Input editor.
2. Choose your preferred indentation level (2 spaces, 4 spaces, or tabs).
3. Click "Beautify" to format the query, or "Minify" to compact it.
4. Click "Copy" to save the output.
Pro tips
- Minified queries are ideal for embedding directly in code strings or config files.
- Comments (lines starting with #) are preserved during formatting but stripped out entirely during minification.