All tools
curl converter
Web & HTTP
Convert a curl command into a fetch, Bun, Python requests, or Go net/http snippet. All in your browser.
Target
curl command
Code
const res = await fetch("https://api.example.com/v1/orders", {
method: "POST",
headers: {
"Authorization": "Bearer token123",
"Content-Type": "application/json",
},
body: "{\"item\":\"widget\",\"qty\":3}",
})
const data = await res.text()Handles the common curl flags — -X, -H, -d/--data, -u, and the URL. Complex flags (cookies, multipart, file uploads) aren't covered. Runs entirely in your browser.