Format GraphQL Queries & Schemas
GraphQL queries and schema definitions become difficult to read when minified or inconsistently formatted, especially in code reviews and documentation. This tool formats any GraphQL query, mutation, subscription, or SDL schema definition with consistent indentation and spacing according to the GraphQL specification. Paste your GraphQL and get clean, readable output immediately. The formatter also validates the syntax and reports errors so you can catch typos and structural issues before sending queries to a server. Everything runs client-side in your browser — your queries and schema never leave your machine.
graphql input
0 chars1 lines
formattedREADY
0 chars1 lines
FAQ
- Does it format GraphQL SDL schemas too?
- Yes. In addition to queries, mutations, and subscriptions, the formatter handles SDL type definitions, input types, enums, interfaces, and directives.
- Does it validate GraphQL syntax?
- Yes. The parser validates GraphQL syntax and reports errors with line and column numbers so you can pinpoint issues immediately.
- Can I use this for introspection query results?
- Yes. Paste any GraphQL document — including introspection results — and the formatter produces readable output.