TC

Train-Case Converter — Free Online Tool

Last updated: January 2025

Your text is processed locally — we never store your data. Free forever, no signup.
0 characters
Your Train Case Converter result will appear here

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

  1. 1Paste your text
  2. 2Click 'Convert' to get Train-Case
  3. 3Copy for HTTP headers and config keys

Examples

InputOutput
hello worldHello-World
content type headerContent-Type-Header
accept encodingAccept-Encoding
x-api-keyX-Api-Key
background_colorBackground-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.