Turn curl commands into JavaScript (Fetch/Axios) and Python requests code.
🔒 100% client-side — parsing runs in your browser. No command is executed; only text is converted.
curl is the universal language of HTTP debugging — copy a request from your browser's DevTools, a colleague's README, or a Stripe doc, and you want to fire the same request from your own code. This converter parses the curl command (URL, method, headers, body) and emits ready-to-use snippets for JavaScript Fetch, Axios, and Python requests.
-X / --request); -I / --head maps to a HEAD request. If you send a body with -d but omit -X, the method automatically becomes POST.-H / --header "Key: Value" pair is extracted into a headers object.-d / --data / --data-raw bodies are detected. If the body is JSON (or Content-Type: application/json is set), Python uses json= and JS uses JSON.stringify(); otherwise it is sent as a raw string.$'...' ANSI-C syntax are all handled by a hand-written tokenizer.The Fetch output uses the native fetch() API with an await on response.json()— zero dependencies, works in browsers and Node 18+. The Axios output assumes you have axios installed; it tends to produce shorter code and throws on non-2xx status codes by default. Pick whichever matches your project's existing HTTP layer.
Multipart form uploads (-F / --form) and cookie jars (-b / -c) are not expanded into language-specific multipart code — they are noisy to generate correctly and vary by library. Basic auth (-u user:pass), on the other hand, is converted into an Authorization: Basic header automatically. For the rest, use your HTTP client's dedicated multipart helpers with the parsed URL and headers as a starting point.
More tools you might find useful
BPM to delay times in ms for every note value, plus LFO rates.
Convert docker run commands into clean docker-compose.yml files.
Convert Unix timestamps to dates and back, in UTC or local time.
Paste Q&A pairs, get copy-ready FAQPage JSON-LD schema markup.