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
- Paste a full cURL command, including URL and any -X/-H/-d flags.
- Toggle wrapping/pretty options if needed, then click Convert.
- 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).