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

Convert curl to Python, JavaScript and more

curl command

Examples: GET - POST - Basic Auth
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
Fork me on GitHub