GraphQL Query Formatter
Format and indent GraphQL queries and mutations.
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
}
}Keyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
cURL Command Parser
API & HTTP
Parse a curl command into method, URL, headers, and body.
cURL to Fetch Converter
API & HTTP
Convert a curl command into JavaScript fetch() code.
GraphQL Schema Viewer
API & HTTP
Browse a GraphQL SDL schema's types, queries, and mutations.
HTTP Request Builder
API & HTTP
Send live API requests and generate curl, fetch, axios snippets.
Webhook Request Inspector
API & HTTP
Inspect a pasted webhook request and verify its HMAC signature.
WebSocket Tester
API & HTTP
Open a live WebSocket connection, send frames and read replies.
Frequently asked questions
Version 1.0.0 · Updated 2026-08-07 · Runs entirely in your browser