Convert curl to JavaScript fetch

Paste a curl command below to generate equivalent fetch() code with method, headers, and body. Works entirely in your browser — nothing is sent to a server.

JavaScript fetch
# javascript fetch appears here

Tip: run your curl through Curl Cleaner first to remove browser headers before converting.