curl Converter
private · runs in your browser
~ $ devkit:curl-convert

curl Converter

Convert curl commands between bash, cmd.exe and PowerShell. Preserves literal arguments and rejects unsupported shell expressions. Review the source shell when auto-detection is ambiguous.

Input
Output

For literal curl commands. Shell variables, substitutions, pipelines and batch files are unsupported. PowerShell output targets 7.3+ with standard native argument passing. cmd output targets an interactive prompt with delayed expansion off; do not paste into a .bat file.

How to use curl Converter

  1. Paste one curl command and explicitly select its source shell when automatic detection is ambiguous.
  2. Choose Bash, interactive cmd.exe or PowerShell as the target, then Convert. Review the output before using it in your terminal.

Example

Bash: curl -H 'X-Name: Jane Doe' 'https://example.com'
PowerShell: curl.exe '-H' 'X-Name: Jane Doe' 'https://example.com'

Details and limitations

Converts literal arguments, quotes and line continuations; it does not run requests. Shell variables, command substitution and pipelines are rejected. The cmd target is for interactive use, not .bat files. PowerShell output assumes version 7.3+ with standard native argument passing. Windows outputs have parser regression coverage but have not been verified in a native Windows shell.