cURL and Fetch converter
Turn a supported cURL request into a readable Fetch snippet without sending it.
Bookmark this page
Keep this page handy for next time.
- On a computer
- Press Ctrl + D, or Command + D on a Mac.
- On a phone or tablet
- Open your browser's menu or Share menu and look for Add Bookmark, Bookmark or Add to favourites.
A bookmark saves the page link. Save any tool results separately.
How to use this tool
- Turn a supported cURL request into a readable Fetch snippet without sending it.
- Adjust the labelled settings, then run the tool. Copy the result or download it as a file.
Things to know
- Processing is local. Supplied code and network requests are never executed. Input and text settings are limited to 5 MiB combined; text settings alone are limited to 1 MiB.
- Supports URL, -X/--request, -H/--header, -d/--data/--data-raw and --get. Other flags are rejected.
- cURL input: 256 KiB, 20,000 lexical tokens and 96 nesting levels. Only the documented literal request options are parsed; no command is run.
You might also need
More in web developmentHTTP header inspector
Inspect pasted HTTP headers and identify duplicate or malformed fields.
JavaScript formatter and minifier
Format or minify JavaScript source without running the program.
Regex tester
Find matches, inspect capture groups and test replacements using JavaScript regular expressions.
Chmod calculator
Convert Unix permission modes into readable permissions and a ready-to-copy command.
HTML to plain text
Extract readable text from HTML while retaining useful line breaks.
CIDR range combiner
Combine overlapping or adjacent address ranges into the smallest equivalent CIDR list.
Content Security Policy builder
Build a policy from explicit directives and check common unsafe settings.
Cron builder and explainer
Preview the next occurrences of a five-field cron expression.
CSS formatter and minifier
Format or minify CSS without executing it.