GraphQL Formatter
Format and beautify GraphQL queries, mutations, and schemas with proper indentation.
- 100% free
- Private in browser
- No signup
- No watermarks
Formatted Output
query GetUser ($id: ID!) {
user (id: $id) {
id name email posts {
id title createdAt comments {
id body author {
name avatar }
}
}
}
}Rate this tool
Be the first to rate — helps others and improves this page.
About GraphQL Formatter
GraphQL Formatter on TheToolss beautifies your GraphQL code with consistent indentation and spacing.
How to use GraphQL Formatter
- Paste your GraphQL code.
- Choose indentation size.
- Get formatted output.
Key features
- Formats queries, mutations, subscriptions, and schemas
- Customizable indentation
- Preserves comments
- Handles inline fragments and directives
Frequently asked questions
- What GraphQL syntax is supported?
- Queries, mutations, subscriptions, fragments, inline fragments, directives, and SDL schema definitions.