Free to use, no account

GraphQL Formatter

Paste a GraphQL operation, fragment, or schema definition to format it and find syntax errors in this browser.

Syntax parsing and formatting only; this does not validate against a schema or run queries. Maximum input: 512 KiB and 50,000 tokens.

GraphQL.js license

How do I format a GraphQL document?

Paste a query or schema and choose Format. The local parser prints a consistent layout and reports syntax errors with a line and column when available.

Frequently asked questions

How do I format a GraphQL document?

Paste a query or schema and choose Format. The local parser prints a consistent layout and reports syntax errors with a line and column when available.

Does this send my GraphQL document to a server?

No. The parser loads from this site only when you format. Your document is processed in this tab and is not uploaded or saved by this tool.

Does this validate fields against my API schema?

No. It parses GraphQL syntax and formats operations or SDL, but does not compare a query with a schema.

Does the tool execute GraphQL queries?

No. It never contacts an endpoint, runs a query, or performs schema introspection.

Are my documents uploaded or saved?

No. Formatting runs in your browser tab. The text is not uploaded or stored by this tool.