util2dev —

cURL to Code Converter

Convert cURL commands to Python requests, JavaScript fetch, Axios, Node.js, PHP, Go, Java, C#, C, Ruby, Rust, Kotlin, Swift, Perl and more, with syntax highlighting.

How to use

  1. Paste a cURL command (e.g. "Copy as cURL" from DevTools).
  2. Pick the target language.
  3. Copy or download the generated code.

Frequently asked questions

How do I get a cURL command from my browser?

In DevTools → Network, right-click a request → Copy → Copy as cURL.

Which languages are supported?

JavaScript, Node.js, Python, PHP, Go, Java, C#, C/C++ (libcurl), Ruby, Rust, Kotlin, Swift, Dart, Perl, R, PowerShell, Elixir and more.

Are my headers and tokens sent anywhere?

No. The conversion runs locally via WebAssembly.