Code BeautifierDev Tools

GraphQL Query → cURL

Turn a GraphQL operation (plus optional variables) into a ready-to-run curl command — entirely in-browser.

Runs 100% in your browser · Zero server logs
Your draft is saved locally in this browser. No editor content leaves this device unless you explicitly share it.

Local workspace

Named projects in IndexedDB · Local only — never synced to our servers. Worksp

Open manager

Batch workspace

Format multiple files locally in one run.

GraphQL endpoint URL:
HTTP method:
graphql
cURLshell

How to use the GraphQL to cURL

1

Paste code or file

Paste your raw GRAPHQL text or upload directly.

2

Configure options

Choose indentation, dialect, or formatting preferences.

3

Format & export

Click format, then copy, download, or inspect in tree view.

What is a GraphQL to cURL?

Turn a GraphQL operation (plus optional variables) into a ready-to-run curl command — entirely in-browser. This tool re-indents and organizes code according to standard style conventions while checking for syntax validity. Everything executes 100% inside your browser, guaranteeing zero latency and complete privacy for API keys, user tokens, and confidential database schemas.

Options Explained

OptionDescription
GraphQL endpoint URLTarget URL embedded in the curl command. Edit the output if you need a custom host.
HTTP methodMost GraphQL APIs expect POST with a JSON body.
Include Authorization placeholderAdds an Authorization: Bearer YOUR_TOKEN header placeholder.
Keep query whitespaceWhen off, the query is minified inside the JSON body.

Frequently Asked Questions

How do I include variables?

Append === VARIABLES === followed by JSON, or paste { "query": "...", "variables": {} }.

Can I set an operation name?

Named operations are detected automatically. You can also append === OPERATION === Name.

Is my query uploaded?

No. Conversion is local-only.

Does it validate GraphQL syntax?

Yes. Invalid documents return a parse error — fix them with GraphQL Formatter first if needed.

What about file uploads / multipart?

This MVP emits standard JSON POST bodies, not multipart GraphQL uploads.