WebToolsPlanet
Developer Tools

GraphQL Beautifier

Paste a minified GraphQL query, mutation, or schema and expand it into readable, indented form.

Last updated: May 29, 2026

Client-Side Processing
Input Data Stays on Device
Instant Local Execution

Find this tool useful? Support the project to keep it free!

Buy me a coffee

What is GraphQL Beautifier?

GraphQL Beautifier formats GraphQL operations and schema definitions so selection sets, arguments, and nested fields are easy to read. Each field is placed on its own line, braces are indented consistently, and arguments and directives stay inline with their field. It is built for quick browser-side cleanup of queries copied from network logs, code, or documentation, and it focuses on layout rather than validating your schema.

How to Use GraphQL Beautifier

1

Paste a GraphQL query, mutation, or schema.

2

Choose indentation style.

3

Click Format.

4

Review the beautified GraphQL.

5

Copy or download the .graphql file.

Common Use Cases

  • Reading a minified query captured from a network request.
  • Tidying GraphQL operations before pasting them into documentation.
  • Formatting a schema definition for easier review.
  • Making nested selection sets readable when debugging.

Example Input and Output

A single-line query is expanded with one field per line.

Minified GraphQL
{user{id name email}}
Beautified GraphQL
{
  user {
    id
    name
    email
  }
}

Privacy

GraphQL is beautified locally in the browser and is not uploaded.

Frequently Asked Questions

Does this validate my GraphQL against a schema?
No. It formats text for readability only. Use a GraphQL server or linter to validate operations.
Does it keep arguments and variables inline?
Yes. Arguments, variables, and directives stay on the same line as their field; nested selection sets are indented.
Can it format schema definitions too?
Yes. Type, interface, enum, and input definitions are indented the same way as queries.
Is my query uploaded anywhere?
No. Beautification runs entirely in your browser.