Handitab

cURL Builder

Build a cURL command from a URL, HTTP method, headers, and request body, with shell-safe single quotes and one option per line.

About cURL Builder

cURL is a command-line tool for sending HTTP requests, available on Linux, macOS, and Windows. This builder assembles a command from your inputs: -X for any method other than GET, one -H per header line, --data for the body, and optional -L and -i. Values are wrapped in single quotes with embedded quotes escaped, which suits bash and zsh. The Windows cmd.exe shell uses different quoting, so adjust the quotes there.

How to use cURL Builder

  1. Fill in "URL", "Method", "Headers" and "Body", and the other options.
  2. The result appears below and updates as you type.
  3. Copy the result with the copy button, or download it as a file where that is offered.

Questions about cURL Builder

Which method does curl use when I add a body but leave the method on GET?

With --data and no -X option, curl sends a POST. The builder adds -X only for methods other than GET, so leaving the method on GET while filling in a body produces a POST request.

Runs in your browser. Page last updated .

More developer tools

All 41 developer tools