Tested tool guide
Tested browser tools
Checked August 16, 2026
What GraphQL Formatter & Validator does, with a checked example
GraphQL Formatter & Validator accepts GraphQL queries, mutations, fragments, and schema definition language, then rewrites valid source with consistent indentation and line breaks. It checks the text against GraphQL document grammar before presenting the formatted result, making unbalanced braces, incomplete selections, and malformed variable declarations easier to find. The common surprise is that syntactically valid GraphQL is not necessarily valid for a particular API. Unknown fields, incorrect argument types, and unavailable mutations require validation against that API's schema.
Worked example
A concrete input and expected output from the current implementation.
Input
query GetUser($id: ID!){user(id:$id){id
name}} ->
Expected output
query GetUser($id: ID!) {
user(id: $id) {
id
name
}
} The operation, variable declaration, argument, and two selected fields are already valid GraphQL. Formatting adds consistent spaces, indentation, and line breaks without changing the requested selection set.