Et
EditText.app

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.

🔒 Your text stays in your browser — nothing is sent to our servers
Input
0Characters
0No spaces
0Words
0Sentences
0Lines
< 1 minRead time
Result
How to Use

Three steps to get started

1

Paste your text

Enter any text, phrase, camelCase, snake_case, or other format into the input.

2

Converts to Train-Case

Each word is capitalized and joined with hyphens — like This-Is-Train-Case.

3

Copy the result

Click Copy and paste into your HTTP headers, config files, or code.

About This Tool

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.

FAQ

Frequently Asked Questions

Related Tools