Back to the blog

Developer

One cURL command, eighteen ways to send it.

Paste a cURL command and get the same request in Python, fetch, axios, Node, Go, Rust, Java, C#, PHP, Ruby, Swift, Kotlin, Dart, PowerShell, Wget or HTTPie.

By Updated 3 min read

An API client with a request on the left and its answer on the right

Browsers' developer tools copy any request as cURL, and API docs give examples as cURL. The cURL converter turns such a command into the same request in the language you are writing.

Paste it, pick a language.

Open the cURL converter, paste the command and press Turn it into code. Choose the language: Python with requests or httpx, JavaScript's fetch, Node, axios, Go, Rust, Java, C#, PHP, Ruby, Swift, Kotlin, Dart, PowerShell, Wget or HTTPie. Copy it, or send the request from the page if the API allows.

Quoting, line ends and Windows' copies (cmd's ^ and PowerShell's backtick) are read as a shell reads them. Options a request cannot carry, such as a proxy or a client certificate, are named rather than dropped.

Checked by running it.

Twelve of the languages are checked by running the code they make against a real server and comparing what it received with the command: the method, the address, every header and the body, multipart files included.

Nothing goes through KeepSimp.

Requests go straight from your browser to the API, and KeepSimp has no server in between: it never sees the addresses, the keys or the answers.

Further reading

Topics: curl to python · curl to python requests · curl to javascript · curl to fetch · curl to axios · curl to go · curl converter · convert curl to postman · copy as curl

A little less theory. A little more doing.

Try it on your own terms, with a free browser tool.

Try the tool