Title Case vs Capitalise Each Word
These two look similar and are not the same. Capitalise Each Word raises the first letter of every word without exception. Title Case follows editorial style: small words — articles, short prepositions and conjunctions — stay lowercase unless they begin or end the title.
- Capitalise Each Word → The Rise Of The Machines
- Title Case → The Rise of the Machines
Use Title Case for headlines, article titles and page headings. It is what publications use and it reads as more considered.
The programming cases
The bottom row exists for code and file naming. Each convention belongs to particular languages and contexts:
| Case | Looks like | Used for |
|---|---|---|
| camelCase | userFirstName | JavaScript and Java variables |
| PascalCase | UserFirstName | Class names, React components |
| snake_case | user_first_name | Python, Ruby, SQL columns |
| kebab-case | user-first-name | URLs, CSS classes, file names |
| CONSTANT_CASE | USER_FIRST_NAME | Environment variables, constants |
kebab-case is the one to use for page URLs — search engines treat hyphens as word separators
and underscores as joiners, so word-counter reads as two words and
word_counter reads as one.
When you would reach for this
- A heading arrived in ALL CAPS and needs to become a readable title.
- Data was pasted from a spreadsheet with inconsistent capitalisation.
- You are converting a page title into a URL slug.
- Names or addresses were typed in lowercase and need cleaning up.
- You are renaming variables to match a project convention.
- Caps Lock was on and you would rather not retype the paragraph.