GraphQL Formatter & Minifier
Format GraphQL queries with clean indentation or minify for transport. Strings and # comments preserved.
GraphQL formatter / minifier
in 76 → out 137 chars · strings and # comments handled
Output
query GetUser
(
$id: ID!
)
{
user
(
id: $id
)
{
id name posts
(
first: 5
)
{
title
}
}
}
How to use
- Paste the query.
- Press Format or Minify.
- Copy the result.
FAQ
Validation?
Structure only — it never checks your schema, just braces and layout.
Comments kept when pretty?
No — # comments strip in both modes, like most minifiers.