cURL to Code — free online converter
You found a curl command in some docs or an old note, and now you need it as real code in your project. Rewriting it by hand is fiddly: the headers, the method, the body, the quotes. We added a free tool that does it for you — cURL to Code — right in your browser.
What it does
Paste a curl command and it instantly gives you the same request written as code. You get JavaScript fetch and Node axios versions, with the method, headers and body all carried over. Copy the one you need and drop it straight into your project.
Nothing leaves your device
The whole thing runs in your browser. Your curl command and any keys or tokens inside it stay on your screen — nothing is sent anywhere, nothing is uploaded, nothing is saved on a server.
How to use it
- Open cURL to Code and paste your curl command into the box.
- Pick the output you want — JavaScript fetch or Node axios.
- Copy the generated code and paste it into your project.
It's free with no limit. There are more small tools on the Apps page.