‹ Back ✦ AI Chat
curl→</>

cURL to Code

Convert a curl command to JavaScript fetch, axios or Python requests.

Runs entirely in your browser. Nothing is sent anywhere.

How it works

  1. 1Paste or type your text.
  2. 2Choose the options you need.
  3. 3Copy or download the result.

About this tool

cURL to Code: Convert a curl command to JavaScript fetch, axios or Python requests. Paste your text and the result appears immediately, ready to copy or download. Everything happens locally in your browser — nothing you paste is uploaded or stored.

Example

Input

curl -X POST 'https://api.example.com/v1/users' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer TOKEN' \
  -d '{"name": "Ana", "admin": false}'

Output

const response = await fetch('https://api.example.com/v1/users', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'Bearer TOKEN',
  },
  body: JSON.stringify({
    "name": "Ana",
    "admin": false
  }),
});
const data = await response.json();
console.log(data);
How do I use the cURL to Code?

Paste or type your text. Choose the options you need. Copy or download the result.

Is the cURL to Code free?

Yes. It is completely free with no sign-up, no usage limits and no watermark.

Is my data sent to a server?

No. Everything is calculated locally in your browser. Nothing you enter is uploaded, logged or stored.

Does it work on my phone?

Yes. It works in any modern browser on Android, iPhone, iPad, Windows, Mac and Linux — no app needed.