Paste any cURL command and get clean, ready-to-run code for JavaScript fetch, Axios, PHP or Python — all in your browser.
Works with “Copy as cURL” from Chrome, Firefox, Safari, Postman and API docs.
Pick a language — the code updates as you type.
It understands the options developers use most: -X, -H, -d / --data / --data-raw / --data-binary / --data-urlencode, -F multipart forms, -u basic auth, --json, -b cookies, -A, -e, -G, -I, -L, -k, --compressed and -m. It also handles quoted strings, $'…' escapes, line continuations (\, ^ and backtick) and combined flags like -sSL. Options that have no meaning in code (such as -v or -o) are listed as ignored so nothing happens silently.
Everything runs in your browser — your commands, tokens and payloads are never sent to a server.
Open DevTools → Network, right-click the request and choose Copy → Copy as cURL (bash). Paste it here. Use "cmd" format only if you copied from Windows; this tool understands both.
Browsers treat these as forbidden header names and silently drop them. The generated code works as-is in Node.js 18+, but in a browser you must rely on the browser's own cookies and headers.
Reading a body from a local file cannot be expressed in browser code, so the tool keeps the @file reference and warns you. Replace it with the file contents or a file-reading call for your platform.
They are kept exactly as written, because the tool cannot know their value. Replace them with real values or your language's environment-variable lookup.
The conversion happens locally in your browser and nothing is uploaded. As a habit, still replace production secrets with placeholders before sharing the generated code.