curl to fetch converter
Turn a curl command into JavaScript fetch() code — headers, method, body, auth and form fields included.
How to use
- Paste a curl command.
- Read the generated fetch code and the notes on skipped flags.
- Copy it into your project.
What it supports
Covers -X, -H, -d/--data-*, -u, -A, -e, -b, -F, -L, -k, --url. Other flags are skipped and listed. File references (@file) can't be read — attach them in the code. Browser fetch can't disable TLS verification. Commands up to 100,000 characters.