
Web developers use GraphQL Minifier when preparing compact code for delivery or a controlled comparison.
Minify a valid GraphQL query and get compact code ready for the next step. Use it for free in your browser, with no account required.
Before adding a query to a test file or a comparison, a developer minifies it to reduce visible whitespace. They then reread the result to confirm that selections, variables and arguments have stayed the same.
Minification happens entirely in your browser. The text you import or paste does not go to a remote service and is not kept after the operation. You can compact a test or project query without an account.
Correct minification mainly reduces formatting to produce a more compact version. It should not alter fields, arguments or variables, but always reread the output before using it.
It is better to start from a valid GraphQL query. Incomplete syntax can give a misleading or unusable result, because the tool does not fix structural errors for you.
The formatted version is easier to read for reviews, debugging and edits. The minified version is better for getting compact text for delivery or a controlled comparison.