cURL to Code
Paste a curl command and copy fetch(), Node.js, or Python requests equivalents.
Your command never leaves the browser — no upload, no server.
Input
Supports line continuations (\ and^), quoted args, headers, JSON/form bodies, basic auth, and cookies.
Notes
About this tool
Docs and browser DevTools often give you a curl one-liner. Turning that into fetch() or Python requests code by hand is tedious — especially with headers, JSON bodies, and line continuations.
Paste the curl command here and copy JavaScript fetch(), Node fetch, Node https, or Python requests output. The parser handles backslash and caret continuations, basic auth, cookies, and form data. JSON bodies are pretty-printed when detected.
This is the inverse of the Route → curltool. Your command never leaves the browser.