Skip to content
Developer & CodeLocal · Stays on device

GraphQL Query Formatter

Pretty-print or minify GraphQL queries, mutations and fragments, with syntax errors shown by line and column.

  • GraphQL queries, mutations, subscriptions, fragments, SDL
  • Free to use
  • No sign-up or watermark
graphql-query-formatterOn this device
1
2
3
4
5
6
7
8
9
10
1
2
3
4
5
6
7
8
9
10
GraphQL queries, mutations, subscriptions, fragmentsSDL
Open GraphQL Query Formatter

About this tool

Paste a GraphQL document copied from network logs, code or documentation and get it formatted consistently with graphql-js, the reference implementation — two-space indentation, one field per line and tidy arguments and variables. Minified output removes every ignorable character, which is useful for query strings and persisted queries.

Syntax errors are reported with their line and column and a pointer to the problem, and a summary lists each operation, fragment, the number of variables and the deepest nesting level. The document is only parsed and printed, never sent to a server. Everything runs in your browser. Your data is never uploaded, logged or stored.

  1. Input

    Your code or text

    GraphQL queries, mutations, subscriptions, fragments, SDL

  2. Processing

    Processed in this browser

    In-browser. Nothing is uploaded.

  3. Output

    Your result

    Ready to download or copy

Local processing pipelinegraphql-js (MIT)

How to use it

  1. 1

    Paste a GraphQL document.

  2. 2

    Choose Pretty or Minified.

  3. 3

    Copy the result or download it as query.graphql.

Zero-upload architecture

How to use GraphQL Query Formatter for free, with no upload

Free, with no sign-up or watermark · Your files stay on your device

  1. 1

    Open GraphQL Query Formatter

    Launch the app and add your file. There is nothing to install and no account to create.

  2. 2

    Work through it

    Choose Pretty or Minified.

  3. 3

    Get your result

    Copy the result or download it as query.graphql.

  • Local

    GraphQL Schema Viewer

    Browse a GraphQL schema from SDL or introspection JSON: types, fields, arguments, enums, unions and deprecations.

    Open tool
  • Local

    JSON Formatter

    Pretty-print, beautify and validate JSON with precise error locations, key sorting and custom indentation.

    Open tool
  • Local

    JavaScript Formatter

    Beautify minified or messy JavaScript with configurable indentation and brace style, plus a syntax check that parses the code without running it.

    Open tool
  • Local

    HTTP Status Code Lookup

    Look up any HTTP status code: its official name and RFC, what it means in plain language and when to use it.

    Open tool