Text Tools

Title Case, Sentence Case, camelCase and More – When to Use Each

Capital letters change how professional text looks, and in code they can break things. Here is a practical guide to every common case style.

In this article
  1. Writing styles
  2. Title Case rules for small words
  3. Sentence case is winning
  4. Headings on one website should match
  5. Fixing text typed in CAPS
  6. Coding styles
  7. How to convert
  8. Related clean-up tools

Writing styles

StyleExampleUse for
Sentence caseHow to bake bread at homeMost headings on modern websites, buttons, emails
Title CaseHow to Bake Bread at HomeBook, article and film titles; many blog headlines
UPPERCASEHOW TO BAKE BREADShort labels, warnings, acronyms – use sparingly
lowercasehow to bake breadTags, casual brand styles
Case ConverterChange text to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case and more in one click. Fix caps-lock text instantly. Free.
Open the free tool

Title Case rules for small words

In Title Case, major words are capitalised but short “minor” words usually are not – unless they are the first or last word. Typical lowercase words are articles (a, an, the), short conjunctions (and, but, or, nor) and short prepositions (of, in, on, at, to, for, by). Style guides differ on details: AP style capitalises prepositions of four letters or more, while Chicago keeps all prepositions lowercase. Pick one and be consistent.

The Case Converter keeps common small words lowercase in Title Case and always capitalises the first word.

Sentence case is winning

Many large organisations – including Google’s and Microsoft’s style guides for interfaces – recommend sentence case for headings and buttons because it is easier to read and feels less shouty. If you are designing a website or app, sentence case is a safe default.

Headings on one website should match

Whichever style you choose, apply it everywhere: page titles, menu items, buttons and email subject lines. A site that mixes “Contact Us”, “About us” and “OUR SERVICES” looks unplanned. Write the rule into a short style note – for example, “sentence case for everything except product names” – and share it with anyone who writes for you.

Fixing text typed in CAPS

Someone sent a whole paragraph in capitals? Choose Sentence case: it lowercases everything, capitalises the first letter after each full stop, question mark or exclamation mark, and fixes a lone “i”. Then check names and places by hand – no tool can know that “karachi” should be “Karachi”.

Coding styles

StyleExampleCommon in
camelCaseuserFirstNameJavaScript variables, JSON keys, Java
PascalCaseUserFirstNameClass names, React components, C#
snake_caseuser_first_namePython, Ruby, database columns
kebab-caseuser-first-nameURLs, CSS classes, file names
CONSTANT_CASEMAX_FILE_SIZEConstants and environment variables

Programming languages treat “userName” and “username” as different names, so consistent casing prevents bugs. Converting a list of database columns to camelCase for an API, or headings to kebab-case for URLs, is a few seconds’ work with the converter.

How to convert

  1. Paste your text into the Case Converter.
  2. Click the style you want – there are 12, from Title Case to CONSTANT_CASE.
  3. Copy the result.

Accented and non-English letters are handled correctly.

Case ConverterChange text to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case and more in one click. Fix caps-lock text instantly. Free.
Open the free tool
Keep reading

Related articles

All articles
Text

What Is a URL Slug – and How to Write SEO-Friendly URLs

The slug is the readable end of a web address. A clean one helps people trust and remember your link, and helps search engines understand the page.

3 min read
Text

How Long Should It Be? Word Counts for Essays, Articles, Speeches and Posts

“Write 1,500 words” is easy to say and hard to judge as you type. Here are typical lengths for common writing jobs and practical ways to hit a target.

3 min read
Text

How to Fix Messy Text Copied from PDFs and Websites

Paste text from a PDF and every line breaks in the wrong place; paste from a website and odd gaps appear. Here is what causes the mess and how to clean it fast.

3 min read