curl Converter & Generator
Paste a curl command (like “Copy as cURL” from DevTools) and convert it to fetch, axios, Python requests, HTTPie, wget or PowerShell, or build a request in a form and get the curl command.
The tool
How to use
- In your browser’s DevTools: Network → right-click a request → Copy as cURL, then paste it here.
- Pick the target language and the code appears instantly.
- Check the request summary (method, URL, headers, body) and any warnings.
- Or use “Build a request” to fill in a form and get a ready curl command.
Privacy & how it works
Processes your data in the browser and stores nothing.
- Engine: lightweight in-page code, no external libraries.
- Works offline after you open it once.
Frequently asked questions
Does the tool send the request?
No. It only reads and converts the text and never contacts the URL. Note that copied curl commands often contain cookies and tokens, so do not share them.
Which options are supported?
Method -X, headers -H, data via -d, --data-raw, --data-urlencode and --json, forms -F, auth -u, cookies -b, plus -A, -e, -G, -I, -k, -L, -m and --compressed. Options that do not change the request (like -s) are ignored, and unknown ones show a warning.
Why is there a warning about files?
If the command sends a file (-d @file or -F file=@path), only the file name is written in the code, because the tool cannot reach files on your device.
Does it support the Windows (cmd) format?
Yes, “Copy as cURL (cmd)” with ^ escapes is read correctly, as are \ and ` line continuations.