DevNet KitTHE EVERYDAY TOOLBENCH
Code & Data · Local-first

GraphQL Formatter / Builder Online

Format GraphQL documents and build a query from field paths.

Open GraphQL Formatter / Builder

Free · No sign-up · Browser-based processing

What GraphQL Formatter / Builder does

Format GraphQL documents and build a query from field paths. The utility is designed for quick, focused work without requiring an account or installing another application.

Common uses

  • Debug API payloads and configuration files
  • Prepare data for reviews, tests and migrations
  • Convert between common development formats

How to use GraphQL Formatter / Builder

  1. Enter or paste the value you want to process in GraphQL Formatter / Builder.
  2. Run the tool and review the generated result for the expected format.
  3. Copy or download the result and verify it in the system where it will be used.

Privacy: Runs locally in your browser. Input is not uploaded to the DevNet Kit server.

GraphQL Formatter / Builder example

Try the tool with this representative input:

query User($id: ID!) { user(id: $id) { id name email } }

GraphQL Formatter / Builder FAQ

What can I use GraphQL Formatter / Builder for?

Format GraphQL documents and build a query from field paths. It is intended for focused code & data work and produces a result you can review before using elsewhere.

How does GraphQL Formatter / Builder handle my input?

GraphQL Formatter / Builder processes the input in your browser and does not upload it to the DevNet Kit server.

What should I verify after using GraphQL Formatter / Builder?

Check the GraphQL Formatter / Builder result against the requirements of the destination system, especially syntax, limits and environment-specific behavior.

Build a query from explicit dotted field paths and inspect the result

Put viewer.id viewer.name in Options to generate a query. Nonempty Options selects builder mode and the Input query is not used. Each field path is expanded independently, so repeated parent selections remain separate rather than being merged.

With Options empty, the tool applies text formatting rules. Neither mode validates against a GraphQL schema or sends a request. The formatter is not a full parser and can alter quoted strings or comment-like content. Review arguments, variables, aliases and nesting instead of treating formatted output as a valid operation.

Worked example

Input and settings:

query { viewer { id } }

Options:

viewer.id viewer.name

Expected result or interpretation:

query Generated {
  viewer { id }
  viewer { name }
}

Questions about this workflow

How do I build a query from dotted GraphQL field paths?

Enter viewer.id viewer.name in Options. Nonempty Options uses builder mode instead of the Input query. Each path expands independently, leaving repeated parent selections separate. Review the generated operation.

Does formatting validate a schema or run the GraphQL query?

No. No schema is checked and no request is sent. The formatter uses text rules and can alter quoted or comment-like content. Check arguments, variables, aliases and syntax separately.

Continue this workflow