Convert curl commands to Python, JavaScript, PHP, R, Go, Rust, Elixir, Java, MATLAB, Dart, CFML, Ansible URI, Strest or JSON

Convert curl to Python, JavaScript and more

Fork me on GitHub

curl command

Examples: GET - POST - Basic Auth

Curl from Google Chrome

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

This also works in Safari and Firefox.

screenshot of the Chrome DevTools

Curl from Safari

  1. Open the Network tab in the Developer Tools
  2. Right click (or Ctrl-click or two-finger click) a request
  3. Click "Copy as cURL" in the dropdown menu
  4. Paste it in the curl command box above

This also works in Chrome and Firefox.

screenshot of the Safari dev tools

Curl from Firefox

  1. Open the Network Monitor tab in the Developer Tools
  2. Right click (or Ctrl-click) a request
  3. Click "Copy" → "Copy as cURL"
  4. Paste it in the curl command box above

This also works in Chrome and Safari.

screenshot of the Firefox dev tools

Privacy

We do not transmit or record the curl commands you enter or what they're converted to. This is a static website (hosted on GitHub Pages) and the conversion happens entirely in your browser using JavaScript.

There is also a VS Code extension and a command line tool you can install with

npm install -g curlconverter

Related Tools

Support Us

GitHub is matching all contributions to this project on Github Sponsors.

Contribute Now

Found a problem?

Please report bugs on GitHub.