cURL and Fetch converter

Turn a supported cURL request into a readable Fetch snippet without sending it.

Processed on your device

Input

Open a local UTF-8 text file5 MiB maximum. The file opens in the text box above.Or drop a file here.

How to use this tool

  1. Turn a supported cURL request into a readable Fetch snippet without sending it.
  2. 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 development