cURL to JavaScript fetch Converter

Paste a simple curl command and get an equivalent fetch() call.

About this tool

Supports -X, -H, -d/--data, -u and the URL. Flags such as --compressed or -L are ignored. Review the output before use; secrets in your command stay in your browser.

Related: JSON Formatter & Validator · Base64 Encode & Decode · URL Encoder & Decoder · SHA-256 / SHA-1 Hash Generator · Unix Timestamp Converter