GraphQL formatter

0 uploads — runs entirely in your browser, works offline

Formatted

GraphQL formatter — tidy queries and schemas

Paste a GraphQL query, mutation or schema and get clean, consistently indented output. It formats entirely in your browser (0 uploads, works offline).

How to use it

  1. Paste your GraphQL.
  2. Choose an indent width.
  3. Copy or Download the formatted result.

FAQ

How do I format a GraphQL query for free?

Paste it and this page re-indents by selection depth, putting each field on its own line and keeping arguments and aliases inline — on your device with no upload.

Does it keep arguments and aliases readable?

Yes. Arguments stay on the same line as their field, and an alias keeps its colon spacing, so the formatted query reads the way you would write it by hand.

Is my query uploaded anywhere?

No. Formatting runs entirely in your browser and nothing is transmitted or stored, which you can verify by turning off your Wi-Fi. That matters when a query embeds internal field names.

Does it validate the query against a schema?

No — it formats structure only. It does not check that fields exist or types match; use your API's tooling for validation.

Limits

A structural pretty-printer, not a validator; it assumes reasonably well-formed GraphQL.

Related

The JSON formatter tidies JSON; the OpenAPI viewer lists REST endpoints.

Bookmark this page (Ctrl+D, or ⌘D on Mac) or install the app — it works offline the next time you need it.