cURL to Fetch Converter
Convert a cURL command into JavaScript fetch() code. Free, no sign-up, runs in your browser.
Loading tool…
About this tool
Paste a cURL command copied from your browser dev tools or API docs. The tool reads the method, headers and body and writes the matching fetch call.
How to use it
- Enter or paste your values in the fields above.
- The result updates as you type.
- Use the Copy button to copy the result.
Frequently asked questions
Which cURL options are supported?
-X, -H, -d / --data / --data-raw, --json, -u basic auth and the URL. Other options are ignored.
Let’s talk
Need a team to build it?
We build the software behind tools like this: web apps, APIs, SaaS products and AI features.