curl converter
curl to code — free converter
Paste any curl command — including Windows cmd “Copy as cURL” with carets — and get fetch, axios, Python requests, Go, PHP, PowerShell and 30+ more, with warnings when something doesn’t translate. Import requests from a HAR file, or paste fetch code to go back to curl. Everything runs on your device.
curl commandbash or Windows cmd — multi-line is fine
Private by design: curl commands often carry auth tokens, cookies and API keys — everything here runs in your browser and nothing leaves this page.
Converted codepick a target — conversion runs locally
Paste a curl command above — the converted code appears here.
Code → curlpaste a fetch(…) call and get the equivalent curl command back
fetch source
curl
Paste a fetch call to convert it.
Import from a HAR fileexport a .har from the DevTools Network tab — the file is read locally
Drop a .har file here, or click to choosePick a request, get its curl and code.
Powered by curlconverter (MIT) running in your browser — commands, tokens and HAR files never leave your device.