cURL → PowerShell converter
Paste a curl command — including your browser's Copy as cURL (bash) — and get ready-to-paste PowerShell Invoke-RestMethod code. It all happens in your browser: nothing is uploaded.
Converts automatically as you type — nothing leaves your browser.
Your PowerShell code will appear here.
What it does
- Emits an Invoke-RestMethod call ready to paste
- Understands methods (-X), headers (-H), cookies, user-agent
- Maps Content-Type to -ContentType; bodies to here-strings
- Basic auth (-u) → an Authorization header
- Parses your browser's Copy as cURL (bash) output
Keep the request, not just the code
Code goes stale the moment the endpoint changes. Keep the request as a .http file you can re-run and diff — convert cURL → .http instead, or open it in Karve.
Need C# instead? cURL → C#Common questions
How do I convert a cURL command to PowerShell?
Paste the command above — it's parsed in your browser into ready-to-paste PowerShell that calls Invoke-RestMethod, with method, headers, and body filled in.
Does the output use Invoke-RestMethod?
Yes — it maps Content-Type to -ContentType and request bodies to single-quoted here-strings so JSON stays intact.
Will it run on Windows PowerShell and PowerShell 7?
Yes. Invoke-RestMethod ships with both Windows PowerShell 5.1 and PowerShell 7, so the command runs in either without extra modules.
Is my cURL command uploaded anywhere?
No. Conversion runs entirely in your browser — nothing you paste, including tokens, leaves your machine.
Keep the request as a .http file.
Generate PowerShell when you need it — but keep, re-run, and debug the request in Karve, the native Windows workspace for .http files.
15-day free trial · No account · No subscription · No metered requests
25% off until Sep 1