Skip to main content
>_devtools

cURL Converter

Parse a cURL command and convert its request to fetch, Axios, Python, PHP, Go, Rust, Java, C#, Ruby, wget or HTTPie.

What this does

Paste a cURL command to inspect its request and convert it to the selected client language. Choose an output target to compare equivalent request code.

Example

curl -X POST 'https://api.example.com/v1/orders?expand=items' -H 'Authorization: Bearer YOUR_TOKEN' -H 'Content-Type: application/json' -d '{"sku":"A-100"}' --compressed -L
→ JavaScript fetch: POST https://api.example.com/v1/orders?expand=items

Limits and behavior

AreaSupported flags and input
Request-X/--request, --url, -G/--get, -I/--head, -L/--location, --location-trusted, -k/--insecure, --compressed
Headers-H/--header, -A/--user-agent, -e/--referer, -b/--cookie, -r/--range, --oauth2-bearer
Body-d/--data, --data-ascii, --data-raw, --data-binary, --data-urlencode, --json, -F/--form, --form-string
Authentication-u/--user for Basic and --oauth2-bearer
Shell inputSingle or double quotes, escapes, line continuations, comments and a leading prompt
  • Unknown and unsupported flags produce warnings; values are not silently dropped.
  • File-backed body data cannot be read by the browser and is replaced with a warning placeholder.
  • Secrets are masked in displayed code; copying and downloading retain the command's real values.