GraphQL Formatter
Format a query, mutation, or schema document.
About this tool
The graphql package parses the document before printing it.
A document that does not parse is rejected.
How to use it
- Open this page and provide the input it asks for.
- Set the options that are visible, then use Format GraphQL.
- Read the result in the panel. Copy it or download it when a file is offered. The input stays in this browser.
Limitations
- A document that does not parse is rejected.
Parse the document, then let the printer speak
Only a document the parser accepts is reprinted
The GraphQL printer reprints a document it could parse. The page loads the graphql package, parses the paste, and prints that parsed document. There is no indent control for two spaces versus four. The spacing, the line breaks, and the order of printed punctuation are the printer’s. A syntax error from the parser is the failure. The page does not guess a missing brace or drop a bad field so the rest can print.
Parsing here is a syntax parse of the document you pasted. An operation, a fragment, or type-system text is reprinted when the parser accepts it. The page does not open a server schema, does not contact an endpoint, and does not run the operation against data. A field name that no server would know can still be printed. Arguments are printed as syntax. Their values are not executed.
What the reprint is allowed to change
The printer may place spaces and line breaks differently from the paste. A query that was one long line comes back broken the way that library breaks queries. Descriptions and punctuation that the parser keeps are in the print. Comments the parser does not retain will not be in the print. You should treat the result as a canonical listing of the parsed document, not as a promise that every original character returns.
Syntax is the whole verdict
There is no separate validation step against a schema file on this page. If you need to know whether a field exists on a type, you need the schema and a tool that loads it. This page answers a narrower question: did the text parse, and what does the library’s printer emit for that parse. Use it to read a document. Do not use it as a stand-in for running the query.
Privacy
Your input is processed in your browser and is not uploaded to UtilChain. File names, text, and results are not sent to analytics.

