Skip to content
kitty/bin
Nothing is sent anywhere

Turn a cURL command into code

Paste a cURL command, such as one copied from your browser's network tab or an API's docs, and get the same request in JavaScript, Python, Go or PHP. Your command, tokens included, never leaves this page.

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