GraphQL Formatter & Minifier
Format, beautify, validate AST, and minify GraphQL queries, mutations, subscriptions, and SDL schemas. · Updated
Options
Format Mode:
graphql
Formatted Outputgraphql
Draft saved locally.
Options
| Option | Description |
|---|---|
| Format Mode | Select whether to format with clean indentations or compress into a single line. |
FAQ
Does this tool validate GraphQL syntax?
Yes. It parses the query into a GraphQL AST, surfacing line and column errors if syntax is invalid.
Can I format GraphQL Schema Definition Language (SDL)?
Yes. It formats types, interfaces, unions, queries, and mutations according to official GraphQL specifications.
Related tools
JSON Formatter
Format, validate, and explore JSON with a collapsible tree view.
cURL to Code
Convert raw cURL shell commands into clean JavaScript Fetch, Axios, or Python requests code instantly.
SQL Formatter
Format messy SQL into readable, consistently indented queries.
JSON to TypeScript
Generate strongly typed TypeScript interfaces and type aliases from sample JSON documents instantly.
GraphQL to cURL
Turn a GraphQL operation (plus optional variables) into a ready-to-run curl command — entirely in-browser.