Back to Articles

Text Case Styles Explained: When to Use Each One

Text case is simply how you use capital letters. The right style makes writing look tidy and code easy to read. Here is what each style means and where it belongs.

Case styles for everyday writing

These are the styles you will use in documents, emails and websites:

  • Sentence case: only the first word is capitalized. Good for body text, buttons and most headings.
  • Title Case: the main words are capitalized. Good for book titles and formal headlines.
  • Capitalize Each Word: every word starts with a capital, including small ones like "of" and "the".
  • UPPERCASE: every letter is a capital. Good for short labels, but hard to read in long text.
  • lowercase: no capitals at all. Handy for fixing text that was typed with caps lock on.

Sentence case or Title Case for headings?

Both are correct, so the real rule is to pick one and use it everywhere. Mixed styles across a website or report look careless, even when each heading is fine by itself.

Many modern websites and apps prefer sentence case because it reads like normal speech: "Create a new account". Title Case feels more formal and suits books, reports and news headlines: "How to Create a New Account". For buttons and menus, sentence case is usually the easier choice. Whatever you choose, keep proper names capitalized, such as Google or London.

Try the free Case Converter

It runs in your browser, with no sign-up.

Open Case Converter

Title Case vs Capitalize Each Word

These two look alike, but they differ on small words. Title Case usually keeps short words such as "and", "of" and "the" in lowercase, so you get "The Lord of the Rings". Capitalize Each Word gives "The Lord Of The Rings".

Title Case rules differ between style guides

There is no single Title Case. The main style guides agree on the basics: capitalize the first word, the last word and all the important words, including short verbs like "Is". They disagree on longer small words. AP style capitalizes prepositions of four or more letters, so you get "A Walk Through the Park". Chicago style keeps prepositions lowercase whatever their length, giving "A Walk through the Park".

The Title Case option on Flash keeps common short words such as "and", "of", "the" and "to" in lowercase, unless they come first or last. If a publisher requires a specific style, read through the result and adjust any words it treats differently.

When to avoid all capitals

All capitals are harder to read in long text, because every word turns into a similar block shape. In emails and messages, they can also come across as shouting. Keep uppercase for a word or two, such as a short label or SALE on a sign. If you want a heading to look uppercase on a website, type it normally and style it with CSS, so that screen readers don't stumble over it.

Case styles for code and URLs

Spaces cause problems in code and web addresses, so programmers join words in other ways:

  • camelCase: words joined, with each new word capitalized, like userName. Common in JavaScript.
  • PascalCase: the same, but with a capital at the start too, like UserName. Common for class names.
  • snake_case: words joined by underscores, like user_name. Common in Python and databases.
  • SCREAMING_SNAKE_CASE: the same in capitals, like MAX_USERS. Common for fixed values.
  • kebab-case: words joined by hyphens, like user-name. Common in web addresses and CSS.

Which case should you use in code?

Follow the habits of the language and the project you are working in. JavaScript usually uses camelCase for variables and functions, and PascalCase for classes. Python's style guide uses snake_case for variables and functions, PascalCase for classes, and capitals for constants. CSS class names are usually kebab-case.

Case often matters in code, so userName and username can be two different things. A project that stays consistent avoids a whole type of small, annoying bug. If you are joining an existing project, copy what is already there, even if you would have chosen differently.

Which case is best for web addresses?

Use lowercase kebab-case for page addresses, as in /word-counter. Google's own guidance recommends hyphens to separate words in URLs, and they are easy for people to read.

Stick to lowercase as well. On many web servers, /About and /about are treated as different pages, which can lead to broken links and duplicate pages.

Naming files and folders

The same thinking helps with everyday files. A name like summer-sale-banner-2026.png is easy to search for, works well on the web and tells you what is inside. A name like IMG_4821 FINAL (2).png does not. Pick one lowercase style, use dates in the form 2026-10-31 so that files sort in order, and leave out spaces if the file will go on a website.

Fixing text quickly

If you pasted a heading in all capitals, or need to rename a list of items, you don't have to retype it. Paste it into a case converter, click the style you want, and copy the result.

A few common examples: turn a sheet of product names typed in capitals into Title Case, turn "Summer Sale Banner" into summer-sale-banner for a web address, or turn a list of database columns into camelCase. Sentence and Title Case can't know every proper name, so give the result a quick read and restore names and short forms such as NASA or iPhone.

Try the free Case Converter

It runs in your browser, with no sign-up.

Open Case Converter