Advertisement

Header case converter

Convert any text to Header-Case, the capitalized hyphenated style used for HTTP headers and title-style labels.

Header Case

Paste text below and get Header-Case output instantly.

Advertisement

How Header-Case works

Header-Case, also called Train-Case, capitalizes every word and joins them with hyphens: content type header becomes Content-Type-Header. It matches the traditional capitalization of HTTP header names.

Handles any input format

snake_case, camelCase, spaced, and mixed input are split into words first. content_type becomes Content-Type, exactly the shape proxies and frameworks expect.

Header Case FAQs

What is Header-Case used for?
HTTP header names (Content-Type, X-Request-Id), display labels in admin panels, and anywhere a hyphenated but readable capitalized form is wanted.
Is Header-Case the same as Train-Case?
Yes. Train-Case is the general name for the style; Header-Case describes its most common use in HTTP headers.
How do I format a custom HTTP header name?
Paste the words, for example x request id, and you get X-Request-Id, which follows the conventional capitalization seen in real-world headers.
Does it handle acronyms?
Acronyms are normalized to single-capital form, so API key becomes Api-Key. If you need API-Key preserved, adjust that word manually after converting.
Is my text sent to a server?
No. The conversion runs entirely in your browser with JavaScript. Nothing you paste ever leaves your device.
Advertisement