Skip to content
Tesserae

Keyboard shortcuts

Focus search
/
This help dialog
?
Run the current tool
Ctrl/⌘ +Enter
Copy the output (when an output is focused)
Ctrl/⌘ +C

Shortcuts are ignored while you are typing in an input, a textarea or a select.

Developer Utilities

curl to fetch

Paste a curl command (including line continuations, single and double quotes) and get equivalent client code: browser/Node fetch with an options object, axios, or Python requests. Methods, headers, JSON or form bodies, Basic auth, cookies, user-agent and referer are all carried across, and the body is pretty-printed as a JavaScript object when it is JSON. Anything the converter cannot represent (output files, proxies, certificates) is listed as a note instead of being silently dropped, and everything runs on your device.

On-device No network Offline-ready

🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.

Try:

Options

Your result will appear here

Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.

How it works

What comes back

Paste a curl command, line continuations and quotes and all, and the tool prints the equivalent client code for the target you choose. JavaScript fetch produces a URL plus an options object with method, headers and body; axios produces the config-object style; Python requests produces a requests.request(...) call. Input is capped at 100,000 characters.

How the request is reconstructed

The parser reads the request-shaping flags: -X for the method, -H for headers, the -d family for a body, -u for Basic auth, -b for cookies, -A for user-agent, -e for referer, -G to move data into the query string, -I for a HEAD and -F for multipart form fields. An explicit -X wins; otherwise a body implies POST and -I implies HEAD, and with neither the request is a GET.

The three switches that matter

The target select picks the language and library. Pretty-print JSON bodies decides whether a JSON payload becomes an indented object or a single-line string, and the non-2xx error check adds fetch boilerplate that throws on a non-ok response, which is why generated fetch is longer than a bare one-liner.

What it deliberately does not do

Anything that cannot survive into client code is reported as a note rather than dropped silently: -L, -k, --compressed, output and cookie-jar flags, timeouts, proxies, interfaces and unknown tokens all get an explicit warning, and a header without a colon is noted as ignored. The converter never executes, follows or even resolves the URL — it only rewrites your text, on your device, so the credentials inside it never leave the tab.

Questions

Which curl flags are understood?

The request-shaping flags: -X/--request, -H/--header, -d/--data/--data-raw/--data-binary/--data-urlencode, --url, -u/--user, -b/--cookie, -A/--user-agent, -e/--referer, -G, -I/--head and -F/--form. Fetch-affecting flags such as -L, -k, --compressed, -o and proxy options are reported in the notes because the generated snippet cannot carry them portably.

How is the HTTP method decided?

An explicit -X wins. Otherwise a body implies POST and -I implies HEAD; with none of those the request is a GET.

What happens to -d data?

If the data parses as JSON it is emitted as a pretty-printed object (with JSON.stringify for fetch) and a JSON content type is added when you did not set one. Otherwise it is emitted as a quoted string, and --data-urlencode values become URL-encoded form fields.

See category