Free online GraphQL pretty-printer for queries, mutations, fragments, and schemas. Indents by depth, preserves comments and block strings, validates brace balance.
Paste a query, mutation, fragment, or full SDL schema. Strings and comments are preserved.
Dokly publishes GraphQL schema docs alongside REST and MDX content — search, theming, and AI-ready out of the box.
Try Dokly free →The formatter walks your GraphQL character by character and re-emits it with consistent indentation. It keeps the things you want kept — strings, block strings (""" ... """), and comments (#) — and standardizes the rest: one field per line, two- or four-space indent based on brace depth, argument lists kept inline.
.graphql file before committing.Everything runs in your browser. Your queries and schema never leave your machine.