HGEN

HTTP Header Generator

Generate HTTP request header blocks

API & HTTP
πŸ”’ 100% client-side β€” your data never leaves this page
Maintained by Evanβ€’Updated: November 1, 2026
Options
Header Fields

Fill the common request-header fields first to generate the header block.

Generated Headers
HTTP headers will appear here
πŸ”’ Processed locally in your browser
Page reading mode

About this tool

Format standard request header fields and custom Name: value lines into a copyable text block. Values after the first colon are retained, blank custom lines are ignored, and custom lines without a name and colon are skipped. The tool does not send a request, create a curl command, deduplicate header names or validate HTTP field syntax. The draft can contain Authorization values and is saved in this browser.

Examples

A colon inside a custom value is preserved

text

Input: X-Endpoint: https://api.example.com:8443/v1
Output: X-Endpoint: https://api.example.com:8443/v1

Only the first colon separates the name from its value. A separate Authorization entry is appended rather than replacing the standard field.

Frequently Asked Questions

What is the difference between Accept and Content-Type?

Accept describes response formats the client can receive. Content-Type describes the body being sent. Setting Content-Type does not convert a request body into that format.

Can custom lines replace an existing standard header?

No. They are appended, even when the same header name already exists. Remove unintended duplicates yourself, especially Authorization, Host and Content-Type.

Can I paste the whole result directly into curl or browser fetch?

The output is a plain header block. In curl, provide separately quoted -H arguments; it is not a ready-made shell command. Browser fetch restricts headers such as Host, so it cannot apply every generated field.

Are authorization values uploaded or retained?

Generation happens locally. This form saves its draft, including Authorization, in browser storage. Clear removes the saved input; clear sensitive values before leaving a shared device.

Keep browsing