Runs locally
$ devdesk curl--local
Format & documents

curl converter for Bash, PowerShell and Windows cmd

Convert literal curl arguments and quoting between Bash, PowerShell and Windows cmd. Inspect JSON body examples without running commands or sending requests.

Loading local tool…

How to use

Supports quoted literal arguments and line continuations. Variable expansion, command substitution, pipes, redirection and unsafe cmd characters are rejected. Commands are never executed.

Your input stays yours

Step by step

  1. Select the source shell and target shell.
  2. Paste a literal command beginning with curl or curl.exe and convert it.
  3. Review the URL, headers and body before running it in your own terminal.

Bash example: a JSON request body

curl 'https://example.com/api' -H 'Content-Type: application/json' --data '{"name":"demo"}'

Select Bash → PowerShell. The result uses curl.exe with PowerShell-compatible quoting. The converter does not contact example.com.

Frequently asked questions

Are variables and pipes supported?

No. Variable expansion, command substitution, pipes and redirection are rejected because conversion could change their meaning. Supply literal arguments without these shell operations.

Why does the output use curl.exe?

PowerShell and cmd targets use curl.exe to name the executable explicitly. Conversion does not install curl or verify that the destination version supports every option.

Can this tool debug a failed request?

This tool only transforms command text. Diagnose networking, authentication, certificates and server responses in the actual runtime. URL encoding and HTTP status lookup can help interpret the request.