Train-Case Converter
Convert text to Train-Case online. Perfect for HTTP headers like Content-Type and X-Custom-Header. Free train case converter, no signup.
Three steps to get started
Paste your text
Enter any text, phrase, camelCase, snake_case, or other format into the input.
Converts to Train-Case
Each word is capitalized and joined with hyphens — like This-Is-Train-Case.
Copy the result
Click Copy and paste into your HTTP headers, config files, or code.
Train-Case: the format of HTTP headers
Train-Case capitalizes the first letter of each word and separates words with hyphens. It is most commonly associated with HTTP header names, where it has been the de facto standard since the early web.
Common examples:
- HTTP headers:
Content-Type,Accept-Language,Cache-Control - Custom headers:
X-Request-Id,X-Api-Key,X-Forwarded-For - Some config keys:
Max-Age,Keep-Alive
While HTTP/2 technically lowercases all header names internally, HTTP/1.1 (still widely used) and developer tooling conventionally display headers in Train-Case. Many frameworks and middleware components expect or output Train-Case header names.
All conversion runs in your browser — no server, no tracking, no limits.