GraphQL Formatter
Format, beautify, or minify GraphQL with adjustable indentation — click Format or Minify to run it.
Processed locally in your browser — nothing is sent to a server.
Input
4 lines60 charsValid
Output
0 lines0 charsValid
About this tool
Paste a GraphQL query, mutation, or schema and click Format for consistently indented, readable output, or Minify for a compact version with comments removed.
Frequently asked questions
- Does this work on schemas as well as queries?
- Yes — Prettier's GraphQL parser handles both operation documents (queries/mutations/subscriptions) and SDL schema definitions.
- What does Minify do?
- Produces a compact form: comments and blank lines removed. It's not a true byte-level minifier, but it's a real size reduction for quick use.
- Is my GraphQL sent to your servers?
- No. Formatting and minifying both run entirely in your browser.
Privacy
Every conversion runs in your browser. Nothing you paste here is sent to WebCodeIn’s servers, logged, or stored.
Related tools
Environment Variable ConverterJSON FormatterYAML FormatterJSON ↔ YAML ConverterBase64 Encoder/DecoderJWT DecoderURL Encoder/DecoderCron Expression GeneratorRegex TesterA1Z26 Cipher DecoderBinary Code TranslatorCaesar Cipher ToolHex to Text ConverterMD5 Hash GeneratorMorse Code TranslatorROT13 Encoder/DecoderUTF-8 Encoder/DecoderNumber SorterUTM GeneratorJSON Stringify TextJSON UnstringifierNATO Phonetic Alphabet TranslatorWingdings Translator & ConvertercamelCase ConverterPascalCase Convertersnake_case Converterkebab-case Converterdot.case ConverterSlugify URL GeneratorCSS FormatterSCSS FormatterHTML Formatter, Minifier & BeautifierJavaScript FormatterTypeScript FormatterXML FormatterMarkdown FormatterCSV to JSON ConverterMarkdown Table GeneratorHTML to Markdown ConverterWord to Markdown ConverterPDF to Markdown ConverterQR Code Generator