GraphQL Formatter
Format and beautify GraphQL queries, mutations, and schemas with proper indentation.
query GetUser($id: ID!) {
user(id: $id) {
id name email posts {
title publishedAt comments {
body author {
name
}
}
}
}
}How GraphQL formatting works
The formatter tokenizes the GraphQL document, tracking brace depth to add proper indentation. Each field on a separate line, nested selections indented by 2 spaces. The minified input common when copying from documentation or network tabs is expanded into readable, human-friendly syntax.
To format JSON responses from GraphQL APIs, use the JSON Formatter. To explore JSON structure visually, try JSON Tree Viewer. For API key generation, see API Key Generator.
Private & free — this tool runs entirely in your browser.
Recommended: IndieKit — Ship your Next.js startup in days.affiliate
Related Developer Utilities tools
RegExp Tester
Test regular expressions and inspect matches locally.
Regex Visualizer
Visual regex pattern diagram with live match highlighting and capture group annotations.
Subnet Calculator
Compute CIDR subnets, usable hosts, and network ranges.
Cron Parser
Translate cron syntax into plain English.
URL Parser
Break a URL into protocol, host, path, and query parts.
HTML Previewer
Paste HTML and see it rendered live in a safe, sandboxed preview.
HTTP Status Code Reference
Search and look up every HTTP status code and its meaning.
MIME Type Lookup
Find the MIME type for a file extension, or the extensions for a MIME type.