Apps / Text & Developer Tools / curl ↔ fetch() Converter

🔁 curl ↔ fetch() Converter

Paste a curl command to get equivalent JavaScript fetch() code, or paste a fetch() call to get the equivalent curl command. Parsing and generation both happen locally — nothing is ever sent anywhere, and no request is actually made.

This is a hand-rolled parser covering the common curl flags and typical fetch() shapes — it does not execute your code or shell it out. Anything it can't confidently translate is listed under "Notes" instead of being silently dropped.

1. Input

2. Output

3. Notes

Flags or options that were recognized but can't be translated 1:1 — or that a browser wouldn't honor even if generated — are listed here rather than silently dropped.