cURL to Python

Convert cURL commands to Python requests.

Loading tool…

How it works

  1. Paste a cURL command.
  2. Click Convert to Python.
  3. Copy the requests code.

Features

  • requests library output
  • Headers and JSON body
  • Insecure flag support
  • Local conversion

FAQ

Which library is targeted?

Generated code uses the Python requests package.

Is my cURL uploaded?

No. Conversion stays in your browser.