Most developers remember the broad idea of cURL syntax but lose time checking how to quote a JSON body or attach a bearer token. This tool turns a structured request — method, URL, headers, auth and body — into a readable, shell-safe cURL command, plus the PowerShell equivalent for Windows.
How to use
- Set the method and URL, then add query parameters, headers and a body if the request needs one.
- Choose an authentication type and paste a test token or credentials.
- Click Build command, then copy the cURL command (bash/zsh) or the PowerShell version and run it in your own terminal.
About this tool
Every value is shell-escaped before it is placed in the command: single quotes inside a value are closed, escaped and reopened ('\''), so a body containing quotes or special characters cannot break out of the quoting or run unintended commands. JSON bodies are sent with --data and a Content-Type: application/json header; form bodies use --data-urlencode per field. The PowerShell output uses Invoke-RestMethod with a hashtable of headers and a -Body string, with double quotes escaped as PowerShell expects.
How do I use this tool?
- Fill in the method, URL, headers, auth and body.
- Tick follow-redirects, verbose or timeout options if you need them.
- Press Build command and copy the version for your shell.
Where is this tool used?
Developers and QA engineers use it to reproduce an API call from a bug report, to test an endpoint before writing client code, and to share an exact, runnable request with a colleague instead of a screenshot. It is also the fastest way to turn a browser's "Copy as cURL" output into something readable — rebuild it here with only the parts you need.
What are the limitations?
The tool builds commands; it never runs them, so it cannot show you a response. It does not support multipart file uploads (-F with a file path) because there is no file to reference, and it cannot know an API's exact header or body requirements — check the API's documentation for those.
Frequently asked questions
What does the cURL command builder do?
It turns a form — method, URL, query parameters, headers, authentication and body — into a shell-safe cURL command, plus a PowerShell Invoke-RestMethod equivalent. Nothing is sent from this page.
Is the generated command safe to paste into my terminal?
Yes. Every value is single-quote escaped, so quotes and special characters in your headers or body cannot break out of the quoting. Still, review any command before running it, and never run one that contains a token you do not recognise.
Why is there a PowerShell version too?
Windows developers usually work in PowerShell, where cURL is an alias for Invoke-WebRequest with different syntax. The PowerShell output is a native Invoke-RestMethod command with the same method, headers and body.
Does the tool send my request?
No. It only builds the command as text. Your URL, headers and tokens never leave your browser — you run the command yourself in your own terminal.
Updated November 2026 · Built and tested by Sharjeel Tahir · How our tools are tested