GraphQL Formatter
Free GraphQL formatter. Tidy up queries, mutations, subscriptions and schema SDL with Prettier's GraphQL parser. Paste, format, copy — entirely in the browser.
Runs in your browserUpdated Apr 26, 2026
GraphQL Input
Output
Frequently asked questions
›Does it format queries or just schemas?
Both. Queries, mutations, subscriptions, fragments and schema SDL all go through the same Prettier parser.
›Does it validate against my schema?
No — it's a syntactic formatter only. For schema-aware validation use a dedicated client like GraphiQL or Apollo Studio.
›Does it handle multi-operation documents?
Yes — multiple queries or mutations in a single document are formatted and separated consistently.
›Is my query sent anywhere?
No — everything runs in your browser.