🌀 cURL ⇄ fetch / axios / wget Converter
Convert cURL commands to HTTP request code in various languages and libraries. Headers, cookies, and body are all preserved.
✅ 100% free, no signup, runs entirely in your browser
Supported cURL Options
-X, --request
-H, --header
-d, --data
--data-raw
--data-binary
--data-urlencode
-u, --user
-b, --cookie
-A, --user-agent
-e, --referer
-F, --form
--compressed
-k, --insecure
-L, --location
-I, --head
🔗 Related Tools
📖 How to Use
-
1
Copy from DevToolsIn Chrome/Firefox DevTools Network tab, right-click any request → Copy as cURL.
-
2
Paste the cURLPaste the cURL command. Multi-line backslash-continued commands are handled.
-
3
Pick target languageChoose from 13 targets: fetch, axios, Python requests, Go net/http, etc. Headers, cookies, body are preserved.
❓ FAQ
Is it fully compatible with DevTools Copy as cURL?
Yes. We support -X / -H / -d / --data-raw / --data-binary / --data-urlencode / -u / -b / -A / -e / -F / --compressed / -k / -L / -I and ANSI-C quoting. Chrome and Firefox output works as-is.
I want urllib instead of requests for Python
Pick "Python (urllib)" for a pure stdlib output — useful when you want to avoid extra dependencies (e.g., CI scripts).
How is multipart/form-data (-F) handled?
Each language gets its idiomatic form: JavaScript fetch → FormData, Python requests → files=, PHP cURL → CURLOPT_POSTFIELDS array.
How should I manage the Authorization token?
In production, store tokens in environment variables or a Secrets Manager — never commit them. Replace the token in our output with a placeholder before committing.