curl Converter illustration

curl Converter

Converts a curl command into equivalent code: JavaScript fetch, axios, Python requests, PowerShell Invoke-RestMethod, Go net/http or PHP cURL — headers, method, body, basic auth and form data included. Understands the quoting browsers produce with "Copy as cURL" (bash and cmd), shows the parsed request as a table, pretty-prints JSON bodies, and can redact Authorization, Cookie and API-key headers before you share a snippet. Download the result as a ready-to-run file.

Runs 100% in your browser — nothing you paste leaves your device.

Notes

  • Supported flags: -X, -H, -d/--data/--data-raw, --json, -u (basic auth), -F (multipart form), -G, -L and the URL itself.
  • Copy a request as curl from your browser DevTools (Network tab → right-click → Copy as cURL) and paste it here.
  • Runs 100% in your browser — nothing you paste leaves your device.