API: Generate utility
HTTP Header Builder
Validate and normalize an HTTP header block for a request.
● This tool runs entirely in your browser. Your input is never uploaded to our servers.
Output
Your result will appear here…
How to use HTTP Header Builder
- Enter one header per line using Name: value.
- Select Build Headers to validate and normalize the lines.
- Keep authorization values private and avoid storing them in shell history.
Example
Input / settings:
Content-Type: application/json Accept: application/json
Output:
Content-Type: application/json Accept: application/json
When to use
- Prepare headers for an API request.
- Check header name and value formatting.
- Create a clean header block for curl or documentation.
Overview
Validate and normalize an HTTP header block for a request.
Supported input
One or more Name: value lines, with one HTTP header per line.
Output details
Normalized header lines with surrounding whitespace removed.
Limitations
- Checks header-name syntax and selected control characters, not header-specific semantics, authentication validity, or protocol behavior.
- Duplicate fields are retained rather than combined. Line boundaries separate headers; this is not a wire-level HTTP message validator.
- This tool does not parse an OpenAPI specification or send a request.
Privacy and security
This tool runs entirely in your browser. Your input is never uploaded to our servers.
References
Frequently asked questions
Can I enter Authorization headers?
Yes, but the value remains visible in the output and should be treated as a secret.
Are duplicate headers allowed?
Yes. Multiple lines with the same header name are preserved.
Are headers transmitted?
No. This tool only formats text in your browser.