cURL Command Builder
Choose an HTTP method, URL, headers and text body to generate cURL. Review the request and copy or download the shell command locally.
Enter one header per line as Name: value. Blank values create empty headers.
The tool generates text. It keeps the request on this device.
cURL Command Builder: how to use it
- Choose a method and enter an HTTP or HTTPS URL. Use Load example to start with a JSON status request.
- Add headers and choose whether to include a text body or follow redirects. Build the command and review the method and URL.
- Copy the command or download curl-command.sh. Use the command only for the request you intend to make.
Limits and notes
Builds one HTTP(S) request with up to 40 ASCII headers and a 16 KiB UTF-8 text body. Uses POSIX shell quoting, disables cURL configuration-file defaults and URL globbing, and supports seven common HTTP methods. Input stays on this device.
How your privacy works →cURL Command Builder: common questions
How does it quote apostrophes?
It joins POSIX single-quoted text with an escaped literal apostrophe so the shell passes the original value as one argument.
How do I send JSON?
Enable Include a request body, enter the JSON as text and add Content-Type: application/json. The tool leaves your JSON text as entered.
What happens if I select Follow redirects?
The command includes --location. When using a custom request method, review the notice about cURL reusing that method on a redirect.