In this article
Writing styles
| Style | Example | Use for |
|---|---|---|
| Sentence case | How to bake bread at home | Most headings on modern websites, buttons, emails |
| Title Case | How to Bake Bread at Home | Book, article and film titles; many blog headlines |
| UPPERCASE | HOW TO BAKE BREAD | Short labels, warnings, acronyms, use sparingly |
| lowercase | how to bake bread | Tags, casual brand styles |
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 case | Sentence case | |
|---|---|---|
| Example | The Best Way to Learn a New Language | The best way to learn a new language |
| Capitalised | First, last and all main words | First word and proper nouns only |
| Small words (a, the, of, to) | Lowercase unless first or last | Lowercase |
| Commonly used for | Book titles, Chicago and APA headings, many US news sites | AP style headlines, UK news sites, app buttons and most web interfaces |
| Feels | Formal and traditional | Friendly 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
| Style | Example | Common in |
|---|---|---|
| camelCase | userFirstName | JavaScript variables, JSON keys, Java |
| PascalCase | UserFirstName | Class names, React components, C# |
| snake_case | user_first_name | Python, Ruby, database columns |
| kebab-case | user-first-name | URLs, CSS classes, file names |
| CONSTANT_CASE | MAX_FILE_SIZE | Constants 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
- Paste your text into the Case Converter.
- Click the style you want, there are 12, from Title Case to CONSTANT_CASE.
- Copy the result.
Accented and non-English letters are handled correctly.
Related clean-up tools
- Making web addresses? The Slug Generator also removes accents and symbols.
- Messy spacing after converting? Use Remove Extra Spaces.
- Need to change one word everywhere? Try Find and Replace.
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.
| Style | Example | Where it is used |
|---|---|---|
| Title Case | How to Merge PDF Files | Headlines, book and article titles |
| Sentence case | How to merge PDF files | Website headings, buttons, emails |
| UPPERCASE | HOW TO MERGE PDF FILES | Short labels and warnings |
| lowercase | how to merge pdf files | Tags and some usernames |
| camelCase | howToMergePdfFiles | JavaScript and Java variables |
| PascalCase | HowToMergePdfFiles | Class and component names |
| snake_case | how_to_merge_pdf_files | Python variables, database columns |
| CONSTANT_CASE | HOW_TO_MERGE_PDF_FILES | Constants and settings |
| kebab-case | how-to-merge-pdf-files | Web 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.