Converters

cURL → Code

Paste a cURL command and get the equivalent in fetch, axios, Python requests, or Go, method, headers, body, and auth carried over. Runs in your browser.

cURL command
fetch

From a copied cURL to working code

Browser dev tools and API docs hand you requests as curl commands. This tool parses one, URL, method, every -H header, the request body (-d/--data/--data-raw), and basic auth (-u), and rewrites it as idiomatic code in the language you actually use. It handles quoted arguments and backslash line-continuations, so pasting a multi-line curl works as-is.

Targets

FAQ

Does it handle headers and JSON bodies?

Yes, every -H becomes a header, and a JSON body with a JSON content-type is emitted in the idiomatic way for each language (e.g. Python’s json=).

What about -u basic auth?

It’s converted to the right mechanism per language, an Authorization header or the client’s auth option.

Is my command uploaded?

No, parsing runs in your browser, so tokens and secrets in the command stay local and it works offline.

Related

Decode a bearer token with the JWT decoder; type a JSON response with JSON → TypeScript.