Paste a curl command and instantly get the equivalent code for the JavaScript fetch API, axios, or Python requests. Method, headers, request body, and basic auth are parsed automatically — entirely in your browser.
How to use cURL → Code Converter
Paste a curl command (line continuations and quotes are handled).
Pick your target: fetch, axios, or Python requests.
Copy the generated code.
Frequently asked questions
Which curl flags are understood?
Method (-X), headers (-H), data (-d/--data and variants), basic auth (-u), and the URL — whether given bare or via --url.
Does it send the request?
No. It only parses the command and generates code; nothing is fetched and nothing leaves your browser.