Toolbit

GraphQL Formatter and Validator

Normalise a query copied out of a network tab, or tidy a schema definition file. Syntax errors are reported against the official GraphQL parser.

What the GraphQL Formatter does

  • Formats queries, mutations, subscriptions, and SDL schemas.
  • Syntax validation using the reference GraphQL parser.
  • Minify a document for embedding in a client request.
  • Consistent field indentation and argument layout.

How to use it

  1. Paste a GraphQL operation or schema definition.
  2. Format or minify it.
  3. Copy the result into your client or schema file.

Why it runs locally

Toolbit has no backend. The GraphQL Formatter is implemented with standard browser APIs, so your input is processed in the tab and never uploaded, logged, or retained. That is what makes it safe to paste real data into — and it is also why the tool keeps working with the network disconnected, once you have installed Toolbit as an app.

Frequently asked questions

Can it validate against my schema?
It validates syntax with the official parser. Validating an operation against a specific schema requires that schema to be loaded into a GraphQL client.
Does it handle SDL schema files?
Yes. Type definitions, interfaces, unions, and directives all format correctly.
Is my query uploaded?
Local transformations process input in your browser. HTTP and WebSocket tools send user-initiated requests. Optional product analytics is off by default, excludes tool input and output, and stays off when your browser signals Do Not Track or Global Privacy Control.

Related tools