Loading tool…
Paste a cURL command and instantly get equivalent code in Python (requests), browser JavaScript (fetch) or Node.js. Great for turning API docs and DevTools "Copy as cURL" into working code.
Loading tool…
curl command (for example from your browser's Copy as cURL) into the Input box.Privacy: this tool runs entirely in your browser. Your input is never sent to, received by, or stored on any server — there are no uploads and no tracking of what you enter.
The converter parses the URL, method, headers and body from your cURL command and rebuilds them as an HTTP request in your chosen language — no more hand-translating flags.
Common options are understood: -X/--request, -H/--header, -d/--data, -u/--user (basic auth), -A (user agent) and -b (cookies).
In Chrome or Firefox DevTools, right-click any network request and choose "Copy as cURL", then paste it here to reproduce the call in your code.
-d body is carried through as the request body; set a Content-Type header for JSON APIs.-u user:pass becomes an Authorization: Basic header.