GraphQL Formatter

Your workspaceProcessed on your device

A few things to know.

Accepts up to 200,000 UTF-16 code units using the GraphQL parser bundled with Prettier 3.9.9. Uses two, four or eight spaces and a print width from 40 to 160. The parser checks syntax locally. Schema-specific validation depends on the schema used by your application.

  1. Paste GraphQL, open a UTF-8 file or load one of the examples.
  2. Choose indentation and print width, then select Format GraphQL.
  3. Review the formatted document and copy it or download the GraphQL file.