Train-Case Converter — Free Online Tool
Last updated: January 2025
What is Train-Case Converter?
Train-Case capitalizes the first letter of each word and joins them with hyphens — like This-Is-Train-Case.
When to use Train-Case Converter?
Use Train-Case for HTTP header names (Content-Type, Accept-Encoding), and some configuration file conventions.
How to use this tool
- 1Paste your text
- 2Click 'Convert' to get Train-Case
- 3Copy for HTTP headers and config keys
Examples
| Input | Output |
|---|---|
| hello world | Hello-World |
| content type header | Content-Type-Header |
| accept encoding | Accept-Encoding |
| x-api-key | X-Api-Key |
| background_color | Background-Color |
Rules & Behavior
- First letter of each word is capitalized
- Words are joined by hyphens (-)
- Also known as Header-Case or Pascal-Kebab-Case
Related Tools
Frequently Asked Questions
What is Train-Case?
Train-Case capitalizes the first letter of each word and separates words with hyphens, like a train of capitalized wagons: Hello-World-Train.
When is Train-Case used?
HTTP/1.1 headers traditionally use Train-Case: Content-Type, Accept-Encoding, Cache-Control, X-Forwarded-For.
Is Train-Case the same as Header-Case?
Yes, they are the same convention. Header-Case is another name for the same pattern used in HTTP header names.
How is it different from kebab-case?
kebab-case is all lowercase (hello-world). Train-Case capitalizes each word (Hello-World).
Is Train-Case the same as Pascal-Kebab-Case?
Yes, Pascal-Kebab-Case is a more descriptive name for the same convention that combines Pascal capitalization with kebab-style hyphens.