curl Command Converter
Turn a curl command into fetch, axios, Python, Go, or an HTTP file, and back.
- Input and output stay in memory and are gone when you leave this page.
Nothing saved
Input and output stay in memory and are gone when you leave this page. - Processing happens in this page. No application server receives your input.
Runs in your browser
Processing happens in this page. No application server receives your input.
curl command
Generated request code
What this tool does
Reads a curl command the way a POSIX shell would, shows the HTTP request it describes, and emits equivalent client code for browser/Node fetch, axios, Python requests, Go net/http, a .http request file, or canonical curl. Credentials detected by classifySecret are lifted into environment lookups rather than written into the generated source.
Scope and limits
It converts; it does not send. The generated code is not executed, not type-checked, and not tested against the endpoint: equivalence is claimed at the level of method, URL, headers, and body, and the unsupported list is where that claim stops. curl options with no equivalent in the chosen target are listed rather than dropped, but a listed option is still not converted. --resolve, --interface, --cert, and proxy options have no equivalent in any target here. Shell expansion is not performed: $HOME in a pasted command stays the four characters $HOME, because expanding it would mean guessing at an environment this tool cannot see. A command spanning lines with trailing backslashes is joined; a command using &&, |, or ; is rejected, since this tool reads one command and not a script.
Scope: this covers the page itself. Your browser, operating system, clipboard, downloads, extensions, and crash recovery may keep copies, and a compromised site origin would not be protected.