cURL to Python / JavaScript Converter

Turn a cURL command into Python requests, JavaScript fetch or Node axios code.

How to use

  1. In Chrome DevTools → Network, right-click a request → Copy → Copy as cURL (bash), then paste it here.
  2. Pick a language and copy the code.

FAQ

Which flags are supported?

-X, -H, -d / --data / --data-raw, --json, -u, -A and -b. Other flags are ignored.

Open cURL to Python / JavaScript Converter · All free tools