Skip to content
I Hate Online Tools

curl to fetch

Convert a common curl command to fetch() JavaScript.

Runs in this tab. The file stays here.

fetch()

This runs in your browser. Nothing is uploaded.

About curl to fetch

Convert common curl flags to a fetch() call.

Scoped parser for -X, -H, -d, -u, and URL.

How to use curl to fetch

  1. 1Paste curl.
  2. 2Copy fetch().

Common questions

Every curl flag?

No — common HTTP ones only.

Related tools

Why this one doesn't upload your file

There is no server to upload to. This page is a static file, and the work happens in your browser using the same graphics and WebAssembly code that renders every other site you visit. Your file is read from disk into memory, processed, and handed back as a download. Once the page has loaded you can disconnect from the network entirely and it keeps working. The longer explanation

Install the app