About the cURL Converter
Convert cURL commands into code for JavaScript fetch, Axios, Python requests, Go net/http or PHP, or parse them into structured JSON. Copy a request as cURL from your browser DevTools or API docs, paste it and get working code.
The parser understands shell quoting and line continuations, -X, -H, -d/--data/--data-raw, --json, -u basic auth, -b cookies, -A user agent and -G query data. JSON bodies are pretty-printed as native objects in each language.
How to use it
- Paste a cURL command (multi-line is fine).
- Pick the target language.
- Copy the generated code.
Features
- fetch, Axios, Python, Go, PHP and JSON output
- Shell-accurate quoting
- Basic auth, cookies and user agent
- JSON bodies as native objects
Frequently asked questions
How do I copy a request as cURL?
In Chrome or Firefox DevTools, open the Network tab, right-click a request and choose Copy → Copy as cURL (bash).
Are file uploads (-F) supported?
Multipart form fields are skipped. Add them using FormData (JavaScript) or files= (Python) after converting.
Is my data uploaded anywhere?
No. All processing happens in JavaScript inside your browser tab. Your input is never sent to a server, logged or stored, so it is safe to use with internal or sensitive data.