Paste a cURL command and get JavaScript fetch() code.
}
What it handles
- GET, POST, PUT, DELETE, PATCH methods (
-X) - Headers (
-H) - Request body (
-d,--data,--data-raw) - Basic auth (
-u user:pass) - Multiline cURL commands (backslash continuation)
When to use this
API docs often give you cURL examples. This converts them to fetch() so you can use them in your JavaScript/TypeScript code without manual translation.