GraphQL Query Formatter
Paste your GraphQL query or mutation to get a cleanly formatted, indented output.
Related Tools
Frequently Asked Questions
What is GraphQL?
GraphQL is a query language for APIs developed by Meta. Instead of multiple REST endpoints, a single endpoint accepts typed queries that specify exactly what data the client needs — reducing over-fetching and under-fetching.
Does formatting change the GraphQL query behavior?
No. Formatting only affects whitespace and indentation. The server processes the formatted and unformatted query identically.
What is the difference between a query, mutation, and subscription in GraphQL?
Queries read data (like GET). Mutations write or update data (like POST/PUT/DELETE). Subscriptions establish a persistent connection for real-time data updates pushed from the server.