cURL Command Builder
Fill in the method, URL, headers, params, auth and body — get a correctly escaped curl command for Bash, Windows CMD or PowerShell.
curl 'https://api.example.com'
What is a cURL Command Builder?
A curl command builder assembles the flags, quoting and escaping for a curl request from a plain form — method, URL, query parameters, headers, authentication and body — so you don't have to remember flag syntax or hand-escape quotes. It's the reverse of pasting a curl command into a tool like Postman: here you build the request visually and copy the exact command line to run in your own terminal.
Why shell matters for curl quoting
The same curl command needs different quoting depending on where you paste it. Bash and Zsh use single quotes and a trailing backslash (\) for line continuation. Windows CMD uses double quotes and a caret (^). PowerShell uses single quotes and a backtick (`) — and PowerShell's built-in curl alias is actually Invoke-WebRequest, so this tool assumes you're calling curl.exe directly. Pick the right tab above and the generated command will use the correct escaping automatically.
How to use this tool
- Enter the request URL and pick an HTTP method.
- Add any query parameters or headers — each gets its own row with an enable checkbox.
- Choose an auth type if the API needs Basic credentials or a Bearer token.
- Pick a body type (JSON, form-encoded or raw text) and paste the payload.
- Select the shell tab that matches where you'll run the command, then hit Copy.
Frequently Asked Questions
What is a curl command builder?
It's a form-based tool that generates a correctly escaped curl command from a URL, HTTP method, headers, query parameters, authentication and request body — so you don't have to hand-write quoting and flags.
Why does curl quoting differ between Bash, CMD and PowerShell?
Each shell parses quotes, backslashes and line continuations differently before curl ever sees the arguments. Bash uses single quotes and a trailing backslash for line continuation, Windows CMD uses double quotes and a caret (^), and PowerShell uses single quotes and a backtick (`). Copying a Bash-formatted curl command into CMD often breaks for this reason.
Is my request data sent anywhere?
No. This tool only assembles a text string from the fields you fill in — nothing is sent over the network. The generated command runs only when you paste it into your own terminal.
Can I generate a curl command with a JSON body?
Yes. Choose JSON as the body type, paste your JSON payload, and the tool adds the correct --data-raw flag along with a Content-Type: application/json header.