FertiJourney Dev Tools 🏠← All tools

GraphQL Formatter

Beautify or minify GraphQL queries with a lightweight built-in tokenizer — no external library.

Paste a GraphQL query / mutation / subscription and click Prettify to indent brackets or Minify to strip whitespace. The built-in tokenizer handles braces {}, parentheses (), square brackets [], strings ("…") and # comments — no full parser is needed. Keywords (query / mutation / subscription / fragment / type / input / enum / scalar / schema / directive / on / extend / implements / interface / union) are highlighted. The status bar reports bracket balance. On is read inside fragment spreads (… on Type).