← All Tools

cURL to PowerShell

Paste a curl command and get an equivalent PowerShell Invoke-WebRequest or Invoke-RestMethod call. Handles method, headers, body (JSON or form), basic auth, cookies, and TLS-skip — and warns when a flag has no clean PowerShell equivalent.

method headers 0 body bytes 0 flags 0

Supported flags

-X / --request -H / --header -d / --data / --data-raw / --data-binary --data-urlencode -F / --form (best-effort) -u / --user -b / --cookie -A / --user-agent -e / --referer -I / --head -L / --location -k / --insecure --compressed --max-time / --connect-timeout -o / --output

PowerShell 7+ accepts -SkipCertificateCheck on Invoke-WebRequest and Invoke-RestMethod; for Windows PowerShell 5.1 we fall back to a ServerCertificateValidationCallback override. Both cmdlets also accept -Authentication Basic -Credential, which is what we generate from -u user:pass.