cURL → Code Converter
cURL → Code Converter
Paste any curl command (including Chrome's "Copy as cURL" output) and get
equivalent code in your language of choice.
What it handles
- All common flags —
-X,-H,-d,-F,-u,--data-*,--json,
--compressed, -L, -k, --max-time, auth, proxies, and more
- Short flag clustering —
-sSL,-XPOST, etc. - Line continuations — multi-line curl from Chrome DevTools just works
- Shell quoting — single, double, ANSI-C (
$'...'), adjacent concatenation - Environment variables —
$TOKENin a header value translates to
process.env.TOKEN (JS) or os.environ['TOKEN'] (Python)
- JSON body detection — when a
-dbody looks like JSON (or you pass
--json), it's emitted as an object literal instead of a string
Targets
- fetch — modern JS/TS, zero dependencies
- axios — the classic JS library
- Python · requests — the pragmatic default
- Rust · reqwest — blocking client for quick scripts
- HTTPie — for when you want to paste it back into a shell
Privacy
Everything runs in your browser. Your cURL command, headers, tokens, and
bodies are never sent to any server.