⤳
cURL to Code
Turn a cURL command copied from DevTools into fetch / axios / Python / Go code — shell tokenising, faithful request semantics, every judgement call spelled out; conversion only, never a request, and your URL and credentials stay in the browser.
Runs in browserHTTPCodegen
Loading tool…
How to use
- Paste the result of DevTools → Network → “Copy as cURL” into the left pane; backslash and Windows ^ continuations both work.
- Read “Parsed request” first: method, URL, header count, body type. If the method was inferred, it tells you why.
- “Decisions we made” lists every judgement call. Code that runs is not the same as code that does what the original command did — this pane is the difference.
- Anything we cannot read faithfully is an error, not a guess: `-F` uploads, `-d @file`, command substitution — dropping them would make the code do something else.
- The generated code keeps Authorization and Cookie verbatim; swap them for environment variables before committing.