curl to Code help

Paste a curl command and get the equivalent request in the language you want.

Steps

  1. Paste a curl command. Line breaks with \ and single, double, and $'…' quoting are understood.
  2. Pick an output: fetch(), HTTPie, or PowerShell.
  3. Copy the result.

Flags it reads

-X/--request, -H/--header, -d and its variants, -G, -u (becomes a Basic auth header), -A, -e, -b. The --flag=value form works. Options like -L, -s, -k, --compressed are ignored; -F is noted but not fully translated.

Notes

Everything runs in your browser. Nothing you enter or drop is uploaded.

Back to curl to Code