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.
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.
requests library, with json= used automatically when the body is JSON.net/http with the body and headers set up for you.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=).
-u basic auth?It’s converted to the right mechanism per language, an Authorization header or the client’s auth option.
No, parsing runs in your browser, so tokens and secrets in the command stay local and it works offline.
Decode a bearer token with the JWT decoder; type a JSON response with JSON → TypeScript.