All Tools Blog About Contact Try a tool

Train Case Converter

Convert text to Train-Case format. Create professional dash-separated titles with intelligent capitalization, customizable minor word handling, and multiple related format options.

Output Format

Minor Words (keep lowercase in Train-Case)

Click a word to toggle whether it stays lowercase or gets capitalized in the output.

Converted Output

Train-Case
The-Quick-Brown-Fox-Jumps-Over-the-Lazy-Dog-and-Runs-Into-the-Forest

Format Comparison

📝

0

Words Processed

📄

0

Output Characters

🔤

0

Capitalized Words

📉

0

Lowercase Words

What Is Train Case?

Train case capitalizes each word and connects them with hyphens. Think of each word as a train car connected by a coupler—hence the name.

Input

the quick brown fox

Train-Case Output

The-Quick-Brown-Fox

Minor words like "the", "a", "and" typically stay lowercase, but you can customize which words are treated as minor.

Where Train Case Is Used

SEO Page Titles — Clean, readable format for search results

Blog Post Headings — Professional appearance in CMS platforms

Email Subject Lines — Stands out in crowded inboxes

Landing Page Headers — Clear visual hierarchy for visitors

Document Section Titles — Consistent formatting in reports

What Is Train Case?

Train case is a text formatting style where each word begins with a capital letter and words are connected by hyphens, like the cars of a train linked together. The visual metaphor is apt—each capitalized word stands out like a train car, and the hyphens act as the couplers between them. For example, "content marketing strategy tips" becomes Content-Marketing-Strategy-Tips when converted to train case.

This format goes by several names depending on the context. Some call it header case with dashes, others refer to it as title dash case. The train case name has become the most widely recognized term in text formatting and programming communities because of the memorable visual analogy. It's related to but distinct from kebab case (which uses all lowercase) and title case (which uses spaces instead of hyphens).

Like its cousin title case, train case traditionally keeps short function words lowercase—articles like "the" and "a," prepositions like "in" and "on," and conjunctions like "and" and "but." This creates a more polished, newspaper-headline appearance compared to capitalizing every single word.

Understanding Minor Words in Train Case

The distinction between major and minor words is what gives train case its professional, editorial quality. Major words—nouns, verbs, adjectives, adverbs, and pronouns—get capitalized. Minor words—short articles, prepositions, and conjunctions—stay lowercase unless they appear as the first or last word in the phrase.

This tool gives you complete control over which words are treated as minor. The default set includes the most common English function words: a, an, the, in, on, at, to, for, of, and, or, but, nor, by, as, is, if, my, no, so, up, and go. You can click any word in the minor words panel to toggle whether it stays lowercase or gets capitalized. If you're writing a title where every word should stand out equally, simply remove all minor words and every word will be capitalized.

Professional style guides vary on exactly which words should remain lowercase. The Associated Press recommends capitalizing words with four or more letters regardless of their grammatical role. Other guides are more flexible. This tool's customizable approach lets you follow whichever convention your project requires.

How the Converter Works

When you paste text into this tool, it first identifies the individual words by detecting the input format. Whether your text uses spaces, underscores, hyphens, camelCase, or a mix of formats, the intelligent parser extracts each word. It then applies the train case rules: each word is capitalized unless it's in your minor words list, and hyphens connect everything together.

The optional first-and-last-word capitalization override ensures that titles always begin and end with a capital letter, which is a standard convention in English typography. So even if "the" is marked as a minor word, it would still appear as "The" if it's the first word of your title.

When to Use Train Case

Train case excels in situations where you want your text to look polished and professional while also being URL-friendly and easy to read:

  • SEO page titles: Search engines display title tags in search results. Train case makes them visually appealing and easy to scan.
  • Blog post headings: Many content management systems use train case formatting for permalinks and article titles.
  • Email subject lines: A well-formatted train case subject line catches attention in crowded inboxes.
  • Landing page headers: Clear, capitalized headings create visual hierarchy and guide visitors through your content.
  • Document section titles: Reports, proposals, and documentation benefit from consistent heading formats.

Who Uses Train Case Formatting?

  • Content marketers: Format blog titles and landing page headings for maximum visual impact.
  • SEO specialists: Create optimized page titles that look professional in search results.
  • Email marketers: Craft subject lines that stand out and improve open rates.
  • Technical writers: Format documentation section headers consistently across projects.
  • Web developers: Convert between naming conventions when integrating content with different systems.
  • Graphic designers: Prepare text for headers, banners, and visual layouts.

Key Features

  • Customizable minor words: Click any word to toggle whether it stays lowercase in the output.
  • Intelligent input detection: Parses spaces, underscores, hyphens, camelCase, and mixed formats automatically.
  • Four output formats: Train-Case, Header-Case, kebab-case, and snake_case from one tool.
  • First/last word override: Option to always capitalize the first and last words of your text.
  • Format comparison panel: See how your text looks in all available formats side by side.
  • Sample presets: Quick-load SEO titles, blog headings, email subjects, and landing page headers.
  • 100% private: All conversion happens in your browser.
  • Completely free: No signup, no limits, no watermarks.

Conversion Examples

Here's how the same phrase looks in each available format:

Input: "The Quick Brown Fox Jumps Over The Lazy Dog"

  • Train-Case: The-Quick-Brown-Fox-Jumps-Over-the-Lazy-Dog
  • Header-Case: The-Quick-Brown-Fox-Jumps-Over-The-Lazy-Dog (all words capped)
  • kebab-case: the-quick-brown-fox-jumps-over-the-lazy-dog
  • snake_case: the_quick_brown_fox_jumps_over_the_lazy_dog

How Train Case Compares to Other Formats

Each text format serves a different purpose. Train case and header case create professional-looking titles with clear visual separation between words. Kebab case (all lowercase with hyphens) is the web standard for CSS classes and URL paths. Snake case (all lowercase with underscores) dominates in Python programming and SQL databases. Our Snake Case Converter handles all these programming-oriented formats if you need to work across different coding conventions.

The key difference between train case and header case is how they handle minor words. Train case respects the distinction between major and minor words, while header case capitalizes everything—similar to how some style guides recommend capitalizing every word in a title regardless of length. Both are valid; the choice depends on your style preferences. For situations where you need to switch between multiple case formats quickly, our Uppercase Converter provides additional transformation options beyond the dash-separated family.

Frequently Asked Questions

What is train case used for?+

Train case is used for SEO page titles, blog post headings, email subject lines, landing page headers, and document section titles. It provides a clean, professional appearance with clear visual word separation.

What's the difference between train case and kebab case?+

Train case capitalizes each word (Train-Case-Example). Kebab case uses all lowercase (kebab-case-example). Train case is for titles; kebab case is for CSS and URLs.

Which words stay lowercase in train case?+

Short articles (a, an, the), prepositions (in, on, at), and conjunctions (and, or, but) typically stay lowercase unless they're the first or last word. You can customize this list.

Can I convert between train case and snake case?+

Yes. The converter detects your input format and can output snake_case, kebab-case, or other formats. The comparison panel shows all formats at once.

What's the difference between train case and header case?+

Train case keeps minor words lowercase. Header case capitalizes every single word regardless of length or grammatical role. Both use hyphens between words.

Is my text stored or shared?+

No. All conversion happens in your browser. Nothing is ever uploaded to any server.

Is this train case converter free?+

Yes, completely free. No signup, no limits, no watermarks.