Advertisement

cURL Command Converter

Paste a curl command to get it translated into fetch (JS), Python requests, PHP cURL, and HTTPie — or build a request manually below and generate the curl command (and every other snippet) from it. Supports the common flags: -X/--request, -H/--header, -d/--data/--data-raw/--data-binary, -u/--user, -A/--user-agent, -b/--cookie, and --url. Anything more exotic (file uploads with -F, client certs, proxies) isn't parsed — this covers the vast majority of copy-pasted curl commands from API docs and browser DevTools.

Paste a curl command
Request

      

      

      

      

      
Advertisement