Prettify or minify GraphQL queries, mutations, and fragments online. No external packages — runs entirely in your browser.
The GraphQL Formatter instantly prettifies or minifies any GraphQL query, mutation, subscription, or fragment. It adds consistent 2-space indentation, places each field on its own line, and preserves comments, string literals, and arguments exactly.
# line comments and block string literalsMinified GraphQL queries reduce payload size in HTTP requests and can improve performance when sending queries as URL parameters (GET requests). Use pretty-print for readability during development and code reviews.