FTFreeTools
⤳

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

Last changed in v0.10.3

Loading tool…

How to use

  1. Paste the result of DevTools → Network → “Copy as cURL” into the left pane; backslash and Windows ^ continuations both work.
  2. Read “Parsed request” first: method, URL, header count, body type. If the method was inferred, it tells you why.
  3. “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.
  4. 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.
  5. The generated code keeps Authorization and Cookie verbatim; swap them for environment variables before committing.

Related tools