GraphQL Formatter
Format messy GraphQL queries and schemas into clean, readable code. Also minify for embedding in requests.
Output
How to use the GraphQL Formatter
Paste your GraphQL query or schema.
Click Format or Minify.
Copy the result.
What is a GraphQL formatter?
GraphQL queries can become dense one-liners hard to read, especially with nested fields and fragments. This formatter indents nested selections, aligns arguments, and makes queries readable — or minifies them for compact transport. All processing is local.
Key features
- Format & minify GraphQL queries and schemas
- Handles nested fields, fragments, variables, directives
- Error detection with line numbers
- Runs locally — your queries stay private
Frequently asked questions
Does it validate my GraphQL?
It checks basic syntax and shows error line numbers. For full schema validation against a server, use a GraphQL IDE.
Can it format SDL schemas?
Yes — it formats both queries and Schema Definition Language (SDL).
Is my query uploaded?
No. Formatting happens entirely in your browser.