curl to fetch converter
Convert a curl command into JavaScript fetch() code and Python requests code, with headers, body, form data, auth and cookies carried over.
Questions
Which curl options does it understand?
The common ones: -X, -H, -d, --data-raw, --data-binary, --data-urlencode, --json, -F, -u, -b, -A, -e, -G, -I, -m, -k and --url, plus quiet flags like -s and -L. Anything else is listed in the notes rather than silently dropped.
Why is there a note about -k?
curl -k skips TLS certificate checks. Python requests can do the same with verify=False, but fetch in a browser always checks certificates and has no way to turn that off.
Does it run the request?
No. It only rewrites the command as code. Nothing is sent anywhere, so tokens and cookies in the command stay on your device.