What GraphQL content can be formatted?
The tool can format queries, mutations, subscriptions, fragments, variable definitions, directives, and schema definition language documents.
Formatter
Format and beautify GraphQL queries, mutations, fragments, and schemas online. Process GraphQL locally in your browser.
Format and beautify GraphQL queries, mutations, fragments, and schemas online. Process GraphQL locally in your browser.
This tool runs in your browser. Your input is processed locally and is not uploaded.
Use this free GraphQL Formatter to clean up queries, mutations, subscriptions, fragments, and schema definitions. Paste compact or inconsistently formatted GraphQL, validate its syntax, and generate a readable structure with consistent indentation and spacing. Processing runs locally in your browser, and the tool does not connect to or execute requests against a GraphQL endpoint.
The tool can format queries, mutations, subscriptions, fragments, variable definitions, directives, and schema definition language documents.
No. It parses and formats the text only and does not contact an endpoint.
Yes. Invalid operations, fragments, arguments, variable declarations, and schema syntax should be reported before formatting.
No. GraphQL parsing and formatting run locally in your browser.