The GraphQL Minifier strips comments, line breaks, and extra whitespace from a GraphQL query, mutation, or schema so you can send a smaller payload over the wire. Paste your .graphql code or an embedded query string and get back a functionally identical, single-line version โ useful when you're hand-crafting requests and want to trim bytes before they go over a slow connection. It runs entirely in your browser, so your schema or query text never leaves your device.
Made for developers. Typical uses:
Explore more in Minifiers, read the guides and articles, or see how we test our tools.
Format and beautify GraphQL queries with proper indentation.
Best for making a minified GraphQL query readable again before editing it
Minify and compress JSON data to reduce file size.
Best for reducing API response payload sizes
Minify XML data by removing whitespace and comments.
Best for shrinking an XML API response before storing it in a database column
Minify and compress CSS stylesheets to reduce file size.
Best for shrinking a stylesheet before deploying it to a production website to reduce load time
Format, beautify, and validate JSON data with proper indentation.
Best for formatting minified JSON from APIs for readability