Developer Tools

GraphQL Formatter and Prettier Online

Format GraphQL queries and mutations, normalize indentation, perform basic syntax checks, and export a .graphql file locally.

GraphQLFormatterGQL

Favorite this tool

No favorite storage mode has been selected.

Quick actions

Copy this tool URL or open the system share sheet on a supported device.

Use cases

  • Turn a one-line GraphQL query into readable text
  • Check balanced braces and nested selections
  • Export a formatted .graphql example

How to use

  1. Paste a query or mutation
  2. Select Format
  3. Copy the output or export a .graphql file

Example input and output

Input

query{user(id:1){id name}}

Output

query {
  user(id: 1) {
    id
    name
  }
}

FAQ

Does it connect to a GraphQL server?

No. It only formats text and performs basic local checks. It does not execute queries or load a remote schema.

Can it format variables and fragments?

It handles common query and mutation text. Unsupported syntax produces an error instead of partial output.

Tools

Related tools

Continue with another translated tool for a nearby task.

JSON Formatter

JSON Formatter and Validator Online

Available

Format, minify, sort, and validate JSON in your browser. Parsing errors include location details, and your data never leaves the page.

JSON Formatter Developer

XML Formatter

XML Formatter and Minifier Online

Available

Format or minify XML in your browser with 2/4-space or Tab indent, optional same-line attributes, and element counts. Invalid structure shows an error—useful for API debugging and config review.

XML Formatter Minifier

Postman to OpenAPI

Postman to OpenAPI — Export OpenAPI YAML

Available

Convert Postman Collections into OpenAPI 3 YAML locally in your browser, extracting paths, methods, and basic parameters. Useful for moving collections into Swagger workflows.

Postman OpenAPI Swagger