OrbitTest
Dev Tools Mobile Client

Developer Tools

cURL to Code Converter

Paste a cURL command — including one copied straight from your browser’s DevTools — and get equivalent JavaScript fetch, axios, Python requests or Go code. Everything runs in your browser.

cURL command
 
Paste a cURL command to convert it.

From a copied request to working code

The fastest way to reproduce an API call is “Copy as cURL” from DevTools — but then you have to hand-translate it into your stack. This converter does that instantly, parsing the method, headers, body and auth and emitting clean, idiomatic code you can paste straight into a script or a test.

Generators included

  • JavaScript fetch — native, no dependencies.
  • Node axios — promise-based HTTP client.
  • Python requests — the standard HTTP library.
  • Go net/http — standard-library request.

Frequently asked questions

What cURL options are supported?

The parser understands the common flags: -X/--request for method, -H/--header for headers, -d/--data, --data-raw, --data-binary and --data-urlencode for the body, -u/--user for basic auth, plus -A, -e and -b for user-agent, referer and cookies. Display-only flags like -s, -L, -k and --compressed are safely ignored.

Which languages can it generate?

JavaScript fetch, Node.js axios, Python requests and Go (net/http). Switch between them with the tabs — the request is parsed once and rendered into whichever target you pick.

How do I copy a cURL command from my browser?

In Chrome or Firefox DevTools, open the Network tab, right-click a request, and choose “Copy as cURL”. Paste it here to instantly get equivalent code in your language of choice.

Is my command sent anywhere?

No. Parsing and code generation happen locally in your browser. Your URL, headers and tokens never leave your device.