Ready now
GraphQL Query Formatter
Preparing controls…
About this tool
What GraphQL Query Formatter does
Format GraphQL queries, mutations, and fragments for readability without sending or executing the operation.
Format GraphQL queries, mutations and fragments into a readable layout while preserving supported strings, comments and variables. Nothing is sent to an endpoint or executed.
Expand a nested selection
Input or settings
query Demo { user(id: 1) { id name } }Expected result
query Demo {
user(id: 1) {
id
name
}
}How to use it
- Paste a GraphQL operation with balanced delimiters.
- Choose Format GraphQL.
- Review the result and validate it against the actual schema in your development workflow.
Common uses
- Make a compact query easier to inspect in a bug report.
- Review a nested selection without sending a network request.
Important limitations
- The formatter does not check field existence, argument types or schema validity.
- Only supported lexical syntax and balanced delimiters are checked; formatting success is not proof of a valid operation.
Frequently asked questions
Does successful formatting mean the query will work?
No. A server schema and its validation rules decide whether the operation is valid.
Will the tool send my operation to an API?
No. Formatting is performed locally and no GraphQL endpoint is contacted.