About the GraphQL Formatter & Tester
Clean up a messy query, then optionally POST it to a GraphQL endpoint and inspect the JSON, with a clear message if CORS blocks the browser.
The formatter tab still pretty-prints a query or mutation and keeps the familiar GraphQL and Formatted fields, so existing examples continue to work. Brace matching and indentation are unchanged.
A new Query tester tab sends a POST with your query, variables and headers to an endpoint you name. The default is a public countries GraphQL API that usually allows CORS, so you can run a sample without standing up a server. If the browser blocks the call, the message explains CORS the same way the API Tester does, and you can fall back to cURL. Formatting and execution stay on separate tabs so a typo in a query you are only tidying will not fire a network request.
How to use the GraphQL Formatter & Tester
- 1Open the Format tab and paste a query.
- 2Copy the pretty-printed result, or switch to Query tester.
- 3Enter an endpoint, variables and headers, then run the query.
Key features
- Optional query execution with variables, headers, and a CORS explanation.
Practical uses
- Tidying a query, then running it against a CORS-open endpoint to inspect the JSON.
Tips and common mistakes
- Put secrets in headers only when you trust the machine, and prefer a local server for private graphs.
Limitations
- Subscriptions over WebSocket are not implemented; this is HTTP POST only.
Privacy
Format mode is offline. Tester mode sends the query only to the endpoint you enter.
Frequently asked questions
What does GraphQL Formatter do?
It performs this job entirely in your browser with no account.
Is anything uploaded?
No. Processing stays on your device unless a tool explicitly says otherwise.
Is it free?
Yes — uTooli tools are free to use.
Mobile friendly?
Yes — layouts adapt to small screens.
What happened to the simple formatter?
It is the default tab. The tester is opt-in so you can still format text with no network use.