Format GraphQL query

Parse and format a GraphQL executable or schema document.

Local processing · Nothing is uploaded · 1 MB input limit

Input & settings

Paste text or drop a UTF-8 text file
Ready. Enter your input to begin.

How to use this tool

Paste your source, choose the supported options, then process. Inspect or download the complete result.

Limits and behavior

Checks GraphQL syntax only. No remote endpoint is queried, and the document is not checked against a server schema. Maximum total input 1 MB, output 3 MB, JSON nesting 64 levels. Processing stays in your browser worker. Input is limited to 1 MB and output to 3 MB. No input content is saved by CraftAI.

Beautify GraphQL code

Format valid GraphQL executable documents or schema content for easier editing.

Does formatting a GraphQL operation validate it against a remote schema?

No. Server schema validation requires a matching schema and is separate from syntax formatting.

Related tools: format json · format javascript

Built on Hatchable