Skip to content
kitty/bin
Nothing is sent anywhere

Convert cURL to Python, instantly

Paste a cURL command and get clean Python code using requests, with JSON bodies written as real dictionaries. Your command and tokens stay on this device.

What's supported

Methods (-X), headers (-H), request bodies (-d, --data-raw, --data-binary, --data-urlencode, --json), forms and file uploads (-F), basic auth (-u), bearer tokens, cookies (-b), -G query strings, redirects (-L), -k, --compressed and -I. Multi-line commands with backslashes work, including ones copied from Chrome, Firefox and Edge.

Copying a request from your browser

Open the developer tools, go to the Network tab, right-click a request and choose Copy, then Copy as cURL (bash). Paste it here to get working code with the same headers.

JSON bodies

When the body is JSON, it's written as a real object in JavaScript and Python rather than a string, so it's easy to edit.

more in the bin

Keep going.

More developer tools

Explore the bin