CaseWren

GraphQL Formatter & Beautifier

Pretty-print GraphQL queries with one field per line.

0 Characters · 0 Words · 0 Lines

About the GraphQL Formatter & Beautifier

GraphQL copied out of a network tab or a minified client bundle arrives as one impenetrable line. This formatter rebuilds the structure: every field of a selection set on its own line, nested sets indented, arguments kept compactly inline, and a blank line between top-level operations.

It understands queries, mutations, subscriptions, fragments and schema definitions, keeps string arguments byte-for-byte intact, and preserves # comments on their own lines. Formatting is local - your schema details stay in your tab.

How to use it

  1. 1Paste a GraphQL document (query, mutation, fragment or schema).
  2. 2The formatted version appears instantly, one field per line.
  3. 3Copy it into your .graphql file, playground or documentation.

Frequently asked questions

Related tools

Search CaseWren tools

Search all 147 tools…