Code Beautifier

GraphQL Formatter & Minifier

Format, beautify, validate AST, and minify GraphQL queries, mutations, subscriptions, and SDL schemas. · Updated

Options
Format Mode:
graphql
Formatted Outputgraphql
Draft saved locally.

Options

OptionDescription
Format ModeSelect whether to format with clean indentations or compress into a single line.

FAQ

Does this tool validate GraphQL syntax?

Yes. It parses the query into a GraphQL AST, surfacing line and column errors if syntax is invalid.

Can I format GraphQL Schema Definition Language (SDL)?

Yes. It formats types, interfaces, unions, queries, and mutations according to official GraphQL specifications.