FlowingDev

cURL to Code

Free

Turn a cURL command into fetch, Axios, Python, Go or PHP code.

cURL command

Code

const response = await fetch("https://api.example.com/v1/users", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "Bearer YOUR_TOKEN"
  },
  body: JSON.stringify({
    "name": "Ada",
    "email": "ada@example.com"
  }),
});

const data = await response.json();
console.log(data);

Processed locally in your browser — nothing leaves your device.