cURL to Code Converter

Paste a curl command and get ready-to-run JavaScript, Python, Go or Rust. Works with Chrome and Firefox “Copy as cURL” — nothing is uploaded.

Convert a curl command to code in your browser: fetch, axios, Python requests, Go net/http and Rust reqwest. It reads the bash, Windows cmd and PowerShell forms that Chrome and Firefox produce with Copy as cURL, and nothing you paste is uploaded.

How to use the cURL to Code Converter

  1. In Chrome or Firefox DevTools, open the Network tab, right-click a request and choose Copy, then Copy as cURL (or write your own curl command).
  2. Paste it into the input. The code updates as you type.
  3. Pick a language tab, check the Not converted list, and press Copy code.

Frequently asked questions

How do I convert a curl command to code?

Paste the curl command into the input. The code appears instantly; pick JavaScript (fetch), JavaScript (axios), Python (requests), Go (net/http) or Rust (reqwest) with the tabs, then press Copy.

How do I copy a request as cURL from Chrome or Firefox?

Open DevTools, go to the Network tab, right-click a request and choose Copy, then Copy as cURL. Chrome and Firefox offer bash, Windows cmd and PowerShell forms, and this tool reads all of them.

Is my command uploaded anywhere?

No. The conversion runs entirely in your browser. Nothing you paste is sent to a server, and the command is never stored or added to the URL.

What happens to curl flags that cannot be converted?

They are never dropped silently. Every unsupported flag is listed under Not converted with a reason, and anything that needs your attention is listed as a warning.

Can I hide the token before sharing the code?

Tick Hide secrets to mask Authorization, Cookie and API-key headers, the -u password and cookies in the displayed code. Copy still copies the real values, so mask a screenshot, not your clipboard.

Fun facts about cURL