cURL to Fetch
Copy a request as cURL from your browser and get working code in the language you use.
- Your data never leaves your device
- 100% free
- No sign-up
- Works offline after first load
How to convert cURL to code
- Paste a cURL command.
- Pick the language — check the parsed request on the right.
- Copy or download the code.
About cURL to Fetch
Convert cURL commands to JavaScript fetch, Axios, Node.js, Python requests, PHP, Go, Java, C#, Ruby, Rust, PowerShell, HTTPie and wget.
Everything works in your browser, so it is instant and private, and your settings are remembered on this device.
Good for
- Turning API docs examples into code
- Reproducing browser requests in scripts
- Sharing requests between teams and languages
Tip: JSON bodies are converted to real objects (JSON.stringify, json=…) instead of strings, so they are easy to edit.
Frequently asked questions
How do I get a cURL command from my browser?
Open DevTools (F12) → Network, right-click a request → Copy → Copy as cURL. Both the bash and Windows cmd versions are understood.
Which options are supported?
-X, -H, -d, --data-raw, --data-binary, --data-urlencode, --json, -F file uploads, -u basic auth, -b cookies, -A, -e, -G, -I, -L, -k, --compressed, -m timeouts, -x proxies and more.
Is my token safe?
Yes — the command is converted in your browser. Authorization headers, cookies and passwords are never sent anywhere.
Why does the fetch code fail with CORS in the browser?
Browsers only allow cross-site requests the server permits. cURL and server-side code are not limited — run the Node.js or Python version, or enable CORS on the API.
Can I convert a Windows cmd cURL command?
Yes. Commands copied as cURL (bash) or cURL (cmd) from your browser's developer tools are both understood.