GraphQL Query Formatter

Format and indent GraphQL queries and mutations.

Works Offline
Privacy First
No Login
No API

A lightweight brace-based formatter for GraphQL queries and mutations. It re-indents nested selection sets but does not validate against a schema.

GraphQL Query

Formatted

About the GraphQL Query Formatter

Paste a minified or messy GraphQL query or mutation and get it reformatted with properly indented nested selection sets, making it easy to read and review.

Examples

Format query

query{user{id name}}

Output

query {
  user {
    id
    name
  }
}

Related tools

Frequently asked questions

Version 1.0.0 · Updated 2026-08-07 · Runs entirely in your browser