Turn cURL into fetch, axios, Python, Go or PHP. Runs entirely in your browser — nothing is uploaded.
6 answers to what people ask most about the cURL to Code.
Paste the command and choose JS fetch. You get a fetch call with the method, URL, headers and body filled in.
Open the Network tab in developer tools, right-click a request and choose Copy as cURL. Paste that straight into this tool.
Common ones: -X, -H, -d and --data-raw, --data-urlencode, --json, -F for forms, -u, -b, -L, -k, --compressed and --max-time. Unsupported flags are ignored.
Yes. When the body is JSON, the generated code builds it as an object or serializes it correctly instead of leaving a raw string.
The file cannot be read in the browser, so the code uses a placeholder and a note tells you to paste the contents in its place.
Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.
Something not working? Tell us and we'll fix it.
Report an issue