← All apps
cURL ↔ Fetch
Paste a cURL command to get fetch() code, or paste fetch-ish JSON to get cURL.
cURL → fetch
JSON → cURL
Copy
Input
curl -X POST 'https://httpbin.org/post' -H 'Content-Type: application/json' -d '{"ok":true}'
Output