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.

Quick answer: in title case most words start with a capital (“How to Write a Great Headline”); in sentence case only the first word and names do (“How to write a great headline”). To switch any text between them, paste it into the Case Converter.

In this article
  1. Writing styles
  2. Title Case rules for small words
  3. Title case vs sentence case side by side
  4. Sentence case is winning
  5. Headings on one website should match
  6. Fixing text typed in CAPS
  7. Coding styles
  8. How to convert
  9. 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.

Title case vs sentence case side by side

Title caseSentence case
ExampleThe Best Way to Learn a New LanguageThe best way to learn a new language
CapitalisedFirst, last and all main wordsFirst word and proper nouns only
Small words (a, the, of, to)Lowercase unless first or lastLowercase
Commonly used forBook titles, Chicago and APA headings, many US news sitesAP style headlines, UK news sites, app buttons and most web interfaces
FeelsFormal and traditionalFriendly and easy to read

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.

Every case style at a glance

The same phrase written in each style. You can switch between all of them instantly with the Case Converter.

StyleExampleWhere it is used
Title CaseHow to Merge PDF FilesHeadlines, book and article titles
Sentence caseHow to merge PDF filesWebsite headings, buttons, emails
UPPERCASEHOW TO MERGE PDF FILESShort labels and warnings
lowercasehow to merge pdf filesTags and some usernames
camelCasehowToMergePdfFilesJavaScript and Java variables
PascalCaseHowToMergePdfFilesClass and component names
snake_casehow_to_merge_pdf_filesPython variables, database columns
CONSTANT_CASEHOW_TO_MERGE_PDF_FILESConstants and settings
kebab-casehow-to-merge-pdf-filesWeb addresses and CSS class names

Quick rules that avoid most mistakes

  • Pick one heading style for a whole website and keep it. Mixing Title Case and Sentence case on one page looks careless.
  • Keep brand names and acronyms as they are, such as iPhone, PDF and YouTube, whatever the style.
  • In code, follow the language's convention so other people can read it easily.
  • For web addresses, kebab-case in lowercase is the safest choice because it is easy to read and type.

Frequently asked questions

What is title case?

Most words start with a capital letter, while small words such as and, of and the usually stay lowercase.

What is sentence case?

Only the first word and proper names start with a capital letter, like a normal sentence.

What is camelCase?

Words are joined without spaces, and each word after the first starts with a capital letter, as in userName.

When is snake_case used?

It is common in Python and databases, with words joined by underscores.

Which case is best for headings?

Both title case and sentence case work. Pick one style and use it consistently.

What is sentence case?

Sentence case capitalises only the first word and proper nouns, exactly like a normal sentence, for example “Our new office opens in March”.

What is title case?

Title case capitalises the first and last word and every main word in between, while short words such as a, and, of and to stay lowercase, for example “Our New Office Opens in March”.

Should headings be in title case or sentence case?

Either is fine if you use one style everywhere. Sentence case is easier to read and is now used by most apps and many websites; title case is still standard for book titles and many style guides.

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