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=itemsLimits and behavior
| Area | Supported 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 input | Single 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.