Awaiting input

cURL → fetch

Transform a cURL command into a JavaScript fetch snippet. Runs locally for quick API testing and code migration.

Samples:

Awaiting input

fetch (browser) snippet

Your fetch snippet will appear here after conversion.

Parsed

Run conversion to preview parsed details.

How to use

  1. Paste a full cURL command, including URL and any -X/-H/-d flags.
  2. Toggle wrapping/pretty options if needed, then click Convert.
  3. Copy or download the generated fetch snippet for your app or tests.

Notes & privacy

Processing happens locally in your browser. Unsupported flags are ignored safely.

Keep Content-Type aligned with your body format (e.g., application/json for JSON payloads).