GraphQL Beautifier

Format GraphQL queries, mutations and schemas. Free, private and instant: everything runs in your browser.

GraphQL
Formatted GraphQL
Press Run to see the result

What does the GraphQL Beautifier do?

A GraphQL beautifier parses queries, mutations, fragments and schema definitions (SDL) and prints them with one field per line and consistent indentation. Syntax errors are reported with their location.

How to use the GraphQL Beautifier

  1. 1

    Paste your graphql

    Paste or type graphql into the input box, open a file from your device, or click Sample to load an example.

  2. 2

    Adjust the options

    Set indent to match what you need.

  3. 3

    Copy or download the result

    Review the formatted graphql on the right, then copy it to the clipboard or download it as a .graphql file.

GraphQL Beautifier example

Input
query GetUser($id:ID!){user(id:$id){id name posts(first:5){edges{node{id title}}}}}
Output
query GetUser($id: ID!) {
  user(id: $id) {
    id
    name
    posts(first: 5) {
      edges {
        node {
          id
          title
        }
      }
    }
  }
}

When to use it

  • •Reading one-line queries copied from network logs
  • •Formatting schema files
  • •Preparing queries for documentation

Why use this graphql beautifier

  • 100% free, no signup or login
  • Runs locally: your data never leaves the browser
  • Instant results with clear error messages
  • Works on desktop, tablet and mobile
  • Copy to clipboard or download in one click
  • No watermarks and no usage limits

Frequently asked questions

Is the GraphQL Beautifier free?+

Yes. The GraphQL Beautifier is 100% free with no signup, no login, no usage limits and no watermark. It works on desktop and mobile browsers.

Is my data uploaded when I use the GraphQL Beautifier?+

No. The GraphQL Beautifier runs entirely in your browser with JavaScript. Nothing you paste or upload is sent to our servers, logged or stored.

Last updated by the Imaginex AI team.