cURL to JavaScript fetch

Paste a cURL command, get equivalent JavaScript code using fetch (browser + Node 18+), axios (with interceptor / timeout / retry sugar), or https from the Node stdlib. Focused on the JS path — for other languages use the multi-language converter.

How to use the cURL to JavaScript fetch

Paste a cURL command. Pick a library: fetch is the modern default (no dependencies in Node 18+ or any browser); axios is conciser for retry / timeout patterns; https is the Node stdlib path when you can't add dependencies. TypeScript output adds the response type stub.