Something wrong with this tool?
About Curl Command Builder Online
This tool builds curl commands visually from a form. Specify the URL, method (GET/POST/PUT/DELETE), headers, query parameters, body content (JSON, form, raw), authentication, and other options — and the tool outputs the equivalent curl command-line you can copy and run.
curl is the universal command-line tool for HTTP requests. It's invaluable for testing APIs, debugging integrations, automating workflows, and including in documentation as a portable example any developer can run.
The builder helps avoid quoting issues and complex header escaping. Output is shell-ready with proper quoting for special characters in URLs and request bodies.
How to use this tool
How to assemble a curl command from URL + method + headers + body
URL and method
"URL" is the full target (with scheme — `https://api.example.com/v1/users`). "Method" is the HTTP verb (GET, POST, PUT, PATCH, DELETE, …). Methods other than GET are emitted with `-X METHOD`.
Headers (one per line)
"Headers (Key: Value per line)" accepts standard `Key: Value` pairs, one per line. Each non-empty trimmed line becomes `-H 'Key: Value'`. Lines without a colon are silently skipped.
Body
"Body" (optional) is the raw request body — JSON, form-urlencoded, or anything you'd POST. Non-empty body becomes `--data '…'` with the body single-quoted (literal single quotes in the body aren't auto-escaped — watch out).
Press Run
Result is a single `command` field — `curl 'URL' [-X METHOD] [-H 'K: V']... [--data '…']`. Paste into a terminal that supports POSIX single-quoting (bash, zsh). For PowerShell or cmd.exe you'll need to re-quote.