curl converter
curl to code — free converter
Convert curl to code — fetch, axios, Python requests, Go, PHP and 30+ more — with warnings when something doesn’t translate. HAR files too, on your device.
curl commandbash or Windows cmd — multi-line is fine
Private by designEverything runs in your browserTokens, cookies & API keys never leave 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.