Support
Headers
Authentication
Options
Generated curl Command
curl \
  -H 'Accept: application/json' \
  'https://api.example.com/endpoint'

Build curl commands visually — method, headers, auth, body

Compose complete curl commands without memorizing flags: choose the HTTP method, add headers and authentication, set the request body, and copy a ready-to-paste command for your terminal, docs, or bug reports.

Frequently Asked Questions

Which curl flags does the generated command use?
Typically -X for the method, -H for each header, and -d for the request body. The generator assembles and quotes them correctly so the command runs as-is.
How do I send JSON with curl?
Set a Content-Type: application/json header and pass the JSON with -d. This tool builds exactly that, with proper shell quoting around the payload.
How do I add Bearer token authentication?
Add an Authorization header with the value Bearer <your-token>. The generator includes it as -H "Authorization: Bearer …" in the output.
Why use curl instead of a GUI client?
curl commands are portable and shareable — they run on any machine, paste into docs and issues, and translate directly into CI scripts, unlike GUI-client collections.

Found this useful? Hexabench is free and ad-free. If it saved you time, you can support it.

Buy me a coffee →