GraphQL Formatter
Prettify or minify GraphQL queries and mutations.
GraphQL Formatter
Format, minify, and validate GraphQL documents privately in your browser.
Input Query / SDL
Output (live)
In: 57 charsOut: 99 chars19 tokens1 definitions✓ valid syntax
GraphQL formatter features
- Format and minify queries, mutations, subscriptions, fragments, and SDL
- Specification-aware tokenization with line and column validation errors
- Live output as you type with configurable indentation
- Preserve GraphQL comments and block strings
- Load samples, upload documents, download, copy, and reuse output
- Local browser processing with no account or server upload
GraphQL formatter FAQ
Can I format a GraphQL query online?
Yes. Paste a GraphQL query, mutation, subscription, fragment, or SDL document and the formatter produces readable output instantly in your browser.
Does formatting change GraphQL meaning?
Whitespace and commas are formatting details in GraphQL; the formatter preserves tokens, comments, and block strings while changing layout.
Can I minify GraphQL documents?
Yes. Switch to minify mode to produce compact GraphQL for requests or storage.
100% client-side — your queries never leave the browser.