ETEvoraTools
HTTP & API Tools

HTTP Header Formatter

HTTP Header Formatter trims header names and values around the first colon and emits one normalized “Name: value” line per non-empty input line. It improves readability without sending a request. It does not parse full HTTP messages, validate field names, combine duplicate fields, unfold legacy lines, or protect secrets.

Runs locally — files stay on your device
Quick answer

What does the formatter change?

It removes blank lines and normalizes whitespace around the first colon; it leaves the remaining value text intact.

A header field has a name, colon, and field value

HTTP field lines conventionally place the field name before the first colon and the value after it. Meaning, repeatability, and value grammar depend on the specific header.

How it works

Paste one field per line. Blank lines are removed; lines containing a colon get trimmed name and value spacing, while lines without a usable colon remain unchanged.

Key concepts

Only the first colon separates name and value

Later colons may legitimately belong to timestamps, URLs, or other value syntax.

Formatting is not validation

Unknown, forbidden, or malformed header values can still be emitted.

When to use it

  • Clean copied request or response fields for notes.
  • Normalize a short header block before review.
  • Separate the first field-name colon from colons inside a value.

When not to use it

  • Do not paste live credentials or session cookies.
  • Do not expect semantic validation.
  • Do not use it to parse a full request line, status line, or body.

Worked examples

Spacing cleanup

Input
Content-Type:application/json
Expected output
Content-Type: application/json

One space is inserted after the separator.

Colon in value

Input
Location: https://example.com/a
Expected output
Location: https://example.com/a

The URL colon remains part of the value.

Blank line

Input
Accept: text/plain\n\nCache-Control:no-cache
Expected output
Two non-empty normalized lines

Empty lines are discarded.

Common mistakes

Pasting Authorization secrets

Formatting does not make credentials safe. Correction: Redact bearer tokens, cookies, and API keys.

Expecting duplicate consolidation

Lines are preserved individually. Correction: Apply header-specific combination rules only when permitted.

Assuming capitalization changes meaning

HTTP field names are case-insensitive, but this tool preserves entered casing. Correction: Do not rely on cosmetic casing for semantics.

Best practices

  • Redact sensitive values first.
  • Keep one field line per input line.
  • Validate field-specific grammar separately.

Related operations and differences

IPv6 Compressor

Choose IPv6 Compressor when you need to compress zero groups in an IPv6 address.; use HTTP Header Formatter specifically for headers format.

IPv6 Expander

Choose IPv6 Expander when you need to expand an IPv6 address into eight groups.; use HTTP Header Formatter specifically for headers format.

CIDR to Range

Choose CIDR to Range when you need to calculate an IPv4 network and broadcast address.; use HTTP Header Formatter specifically for headers format.

cURL Command Builder

Choose cURL Command Builder when you need to build a basic cURL command from manual fields.; use HTTP Header Formatter specifically for headers format.

DMARC Record Generator

Choose DMARC Record Generator when you need to generate a basic DMARC policy record.; use HTTP Header Formatter specifically for headers format.

Fetch Request Builder

Choose Fetch Request Builder when you need to build a browser fetch request snippet.; use HTTP Header Formatter specifically for headers format.

Limitations and privacy

  • No full HTTP parsing or semantic validation.
  • Blank lines are removed.
  • Lines without a usable colon are returned unchanged.

The entered network data is processed locally in this browser.

Frequently asked questions

Does it send an HTTP request?

No.

Does it validate header names?

No.

Are duplicate headers merged?

No.

Can a value contain a colon?

Yes; only the first colon is treated as the separator.