GraphQL formatter

One-line query from a log file → readable document, and back. Formats locally in your browser.

 

Token-based formatter: handles queries, mutations, fragments, variables, arguments, aliases, directives, block strings and comments. It checks bracket balance but is not a full validator — schema-level errors are the server's job.

Where this helps

GraphQL queries travel as single-line strings — in logs, in persisted-query tables, in network tabs, in error reports. Reading nested selections without indentation is hopeless, and pasting a multi-line document into a JSON body means re-minifying it afterwards. This does both directions. Bracket-balance checking catches the classic copy-paste truncation (a missing } at depth four) before you waste a request on it.

Running the query against a real endpoint? ReqPad's GraphQL editor ships syntax highlighting, variables and subscription support — on your phone. Related: JSON formatter · cURL converter · gRPC from your phone

Format here. Execute from your pocket.

GraphQL with variables & subscriptions, plus REST, gRPC, MQTT, WebSocket & Socket.IO — on iPhone. Free to start.