HTTP Header Builder & cURL Generator
Compose request headers in a form and copy them as a raw HTTP header block — or as a one-line cURL command.
Quick answer: Compose request headers in a form and copy them as a raw HTTP header block — or as a one-line cURL command.
Last updated
Frequently asked questions
- Will the cURL command run as-is on macOS, Linux and WSL?
- Yes — we use POSIX shell single-quoting so embedded apostrophes and special characters are escaped correctly. Paste into any bash, zsh or fish shell.
- Does it work in Windows cmd or PowerShell?
- PowerShell handles single quotes differently — replace each <code>'</code> with <code>"</code> in the output, or use Git Bash / WSL. cmd.exe needs even more escaping; for Windows-native, prefer the Invoke-RestMethod cmdlet.
- What about authentication headers?
- Use the common-headers dropdown to insert an <code>Authorization</code> stub, then replace <code>YOUR_TOKEN</code> with your actual bearer token (or basic-auth base64). The token never leaves your browser.
- Are headers validated?
- Header names are passed through as-is — we don't enforce IANA-registered names, so you can build custom <code>X-</code> headers freely. Standard HTTP rules (no newlines in values, max length) are your responsibility.
- Can I send the request from this tool?
- No — this tool only builds the command. CORS would block most cross-origin requests from a browser anyway. Paste the cURL into your terminal to actually run it.
- Will it URL-encode the URL for me?
- No — we pass the URL through as you typed it. If your URL has spaces or special characters, encode them with our URL Encoder/Decoder first.
- Are my values uploaded?
- No — the builder runs entirely in your browser. Even auth tokens stay local.
- How do I add a body for POST requests?
- Pick POST (or PUT/PATCH) as the method and a body textarea appears. The cURL output automatically includes <code>--data</code> with shell-safe quoting.
- Will it generate <code>--data-binary</code> or <code>--form</code> instead of <code>--data</code>?
- Not in this tool — we emit <code>--data</code>, which is the most common form for JSON APIs. For file uploads, use <code>-F</code> manually after the generated command.
- Can I import an existing cURL command?
- Not yet — paste the raw header block and we'll fill in the form (planned). For now, type or paste headers one at a time using the form above.