Curl to Fetch
Turn a literal curl command into browser Fetch code.
Reading Command
Open a Command File
UTF-8 .txt or .curl up to 512 KiB. You can also paste a command.
Supported Syntax
- One absolute HTTP or HTTPS URL, as an argument or with
--url. A long option may take a separate value or use--name=value. -Xor--requestfor an uppercase GET, HEAD, POST, PUT, PATCH, DELETE or OPTIONS method.-Hor--headerfor distinct literalName: valueheaders.- One literal body with
-d,--data,--data-ascii,--data-rawor--data-binary. - POSIX-style quotes and backslash line continuations. Use single quotes for literal dollar signs.
Shell substitutions, uploads, file-backed flags, duplicate headers, redirects and multiple requests are outside this profile.
Paste a single curl command or open a file.
Output Browser Fetch · JavaScript
Fetch JavaScript
Browser Request Behavior
The snippet omits automatic credentials and referrer, and uses manual redirects. Browser CORS rules, caching, default headers, and access policies still apply when the snippet runs elsewhere.