cURL Converter

Paste a curl command (e.g. copied from your browser's Network tab or Postman's "Copy as cURL") to get equivalent code in JavaScript (fetch or Axios), Python (requests), Go, or PHP — headers, method, and request body all carry over.

How to use

  1. Paste a curl command, including multi-line ones with trailing backslashes.
  2. Pick a target language from the dropdown above the output.
  3. Copy the generated code.

FAQ

Which curl flags are supported?

The common ones: -X/--request, -H/--header, -d/--data (and its variants), -F/--form, -u/--user, -A/--user-agent, -b/--cookie, -G/--get, and -I/--head. Rarer flags are skipped rather than causing a parse error.

Is this a network request tool — does it actually send anything?

No — parsing and code generation happen entirely in your browser; nothing is sent anywhere.