cURL to Code Converter
Shortcut ⌘↵Paste a curl command and get fetch, axios, Python, Go, or Node.
100% client-side · no data leaves this device
Generated Code
const response = await fetch("https://api.example.com/v1/tools", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer TOKEN"
},
body: "{\"name\":\"KeyboardWarrior\",\"privacy\":true}",
});
const data = await response.json();
console.log(data);