Runs locally — nothing is uploaded
Result
Paste a curl command.
How to use
- 1In browser devtools, right-click a request and choose Copy as cURL, or write the command yourself.
- 2Paste it and pick the language.
- 3Copy the generated code.
-X, -H, -d, --data-raw, --data-binary, --data-urlencode, --json, -F, -u, -b, -A, -e, -G, -I, -L, -k, -x, -m, --connect-timeout and --compressed. Output flags such as -s or -v are ignored.
Yes. Bash quoting, $'…' strings and the ^ escapes of “Copy as cURL (cmd)” are all parsed.
curl needs -L for that, but requests, fetch, Go and wget follow redirects by default. The PHP code follows them only when -L is set.
File contents are not available in the browser, so the generated code reads the file itself.
Related tools
Need data from a website?
Send the URL and fields — we reply with a free sample and a quote.