Free cURL to fetch Converter
Paste a curl command · from API docs or your terminal · and get clean JavaScript fetch code with headers and body intact.
Frequently asked
Which curl flags are supported?
The ones API docs actually use: -X/--request, -H/--header, -d/--data/--data-raw, --json, -F/--form, -u/--user (Basic auth), --compressed, and -L. Exotic flags are ignored with a note rather than breaking the output.
Careful: where does the API key in my curl command end up?
In your generated fetch code · and if you paste that into frontend code, the key ships to every visitor. Keys belong in server-side code or edge functions; run a scan if you're not sure what your app exposes.
Run a full security scan →