GraphQL Formatter & Beautifier

Format and indent GraphQL queries, mutations and schemas — even minified ones. Runs in your browser.

Frequently asked questions

Does it work on minified, single-line GraphQL?

Yes. It re-indents based on the structure, so a query crammed onto one line comes back fully formatted with each field on its own line.

What about schemas and fragments?

It handles SDL type definitions, fragments, mutations and queries — anything built from selection sets and braces.

Is it a validator?

No, it's a formatter. It reshapes whitespace and indentation but doesn't check that your GraphQL is valid against a schema.