- No data uploaded
- Instant results
cURL to Fetch Converter
Convert a cURL command into a JavaScript fetch() call with method, headers, JSON body and basic auth. Runs locally.
cURL to Fetch Converter
JavaScript fetch()
const res = await fetch("https://api.example.com/v1/items", {
method: "POST",
headers: {
"Authorization": "Bearer TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"name": "Widget",
"price": 9.99
})
});
const data = await res.json(); // or res.text()Supports -X, -H, -d/--data*, --json, -u, -A, -b and --url. Browsers block some headers (Cookie, User-Agent) — they work in Node 18+.
Frequently asked questions
Is my data uploaded?
No. The calculation runs entirely in your browser — nothing you type is sent to a server.
Is it free?
Yes — free, unlimited and no sign-up.