Convert curl commands to Python, JavaScript and more

curl command

Language:

Loading the parser…

curl from Chrome / Edge

  1. Open the Network tab in DevTools.
  2. Right click (or Ctrl-click) a request.
  3. Click Copy → Copy as cURL (bash). On Windows, do not choose cmd.
  4. Paste it in the curl command box above.

This also works in , , and .

The copied command may contain cookies or other secrets. Sharing it is like sharing the login for that site.

Privacy

Commands and the generated code stay in this browser. They are not uploaded or recorded.

Parsing and code generation use the open-source curlconverter library (MIT). From the command line:

npm install -g curlconverter

There is also a VS Code extension that pastes curl as code.

Notes

  • Only HTTP requests are converted. Bash quoting, environment variables, heredocs, and common curl options are recognized.
  • Options a generator does not support are shown as warnings instead of being silently ignored.
  • A language runtime may not match curl, for example whether redirects are followed.
  • Language paths can be shared, for example /python/, /javascript/, and /go/.