Text case styles explained: sentence case, title case, camelCase and snake_case
Capitalisation is style, and style is a decision. Here is a plain guide to each case, an example of each and which to pick for headings, names and code.
Cases for ordinary writing
There are four styles you will meet in everyday text. The example below uses the phrase the lord of the rings.
| Style | Rule | Example |
|---|---|---|
| UPPER CASE | Every letter is a capital | THE LORD OF THE RINGS |
| lower case | No capitals | the lord of the rings |
| Sentence case | First word of each sentence is capitalised, plus proper nouns | The lord of the rings |
| Title Case | Main words capitalised; short words like of and the stay lower case unless first or last | The Lord of the Rings |
A fifth, Capitalized Case, capitalises every word, so it gives The Lord Of The Rings. It is simple but is not how most style guides treat titles.
Which to use for headings and titles
Neither sentence case nor title case is correct in all situations. Pick one and apply it consistently across a document or site.
- Sentence case reads as friendly and modern, and is common for web page headings, interface labels and news headlines in many publications.
- Title Case reads as formal, and is common for book and film titles, and in some style guides for article titles.
- Upper case is for short labels or emphasis. A paragraph in capitals is harder to read, because the shapes of the words are lost.
Style guides disagree about which small words stay in lower case, so check yours for names, brand spellings and acronyms. The Case Converter applies a simple rule and does not know proper nouns, so it will turn London into london in sentence case unless it begins a sentence. Review its output once.
Cases for code and file names
Programming and file naming need names without spaces, so words are joined in a few standard ways. Using the words hello big world:
- camelCase: helloBigWorld. Words are joined and every later word is capitalised. Common for variables and functions in JavaScript and Java.
- PascalCase: HelloBigWorld. Every word is capitalised. Common for class and component names.
- snake_case: hello_big_world. Words are joined with underscores. Common in Python and for database columns.
- kebab-case: hello-big-world. Words are joined with hyphens. Common for web addresses and CSS classes.
- CONSTANT_CASE: HELLO_BIG_WORLD. Capitals with underscores, used for constants.
The convention is set by the language or team, not by taste, so follow the style already used in your project.
Cases in web addresses and file names
For URLs, lower-case words separated by hyphens is the safest choice. Some servers treat Page and page as different files, and hyphens are read as word separators, so merge-pdf is more readable than mergepdf. Avoid spaces and special characters in file names you plan to share, since they get turned into codes like %20 in links.
Fixing text typed in the wrong case
The usual cases are text typed with caps lock on, a list of names in capitals and a heading that must follow a style guide. Paste the text into the Case Converter, choose the style, check the result and copy it. Where text also has stray spaces or line breaks, clean those with Remove Extra Spaces first, and count the result with the Word Counter if there is a limit.
Not every script has capital letters. Latin, Greek and Cyrillic do, but Bangla and Hindi do not, so case conversion changes nothing in those scripts.
Title case in practice
Title Case follows a simple pattern, but the details vary between style guides, so it helps to know the common rules and where they differ.
- Capitalise the first and last word of the title.
- Capitalise nouns, verbs, adjectives and adverbs.
- Keep short articles, conjunctions and prepositions in lower case, such as a, an, the, and, but, or, of, in, on and to, unless they are first or last.
- Style guides differ on longer prepositions, so a word like between may be capitalised in some guides and not in others.
- Keep acronyms and brand names as the owners write them, for example PDF or iPhone. A converter cannot know these.
Some examples with the same rule applied: a guide to the best tools becomes A Guide to the Best Tools, and how to convert a PDF to Word becomes How to Convert a PDF to Word. Hyphenated words and words after a colon are where guides differ most, so choose one approach and use it throughout a website or document.
Because the Case Converter works from a simple rule, treat its Title Case output as a first draft and correct acronyms, product names and any word your style guide treats differently.
Frequently asked questions
What is the difference between sentence case and title case?
Sentence case capitalises only the first word of each sentence and proper nouns. Title Case capitalises the main words and leaves short words like of and the in lower case.
Which case is best for URLs?
Lower case with hyphens between words is the safest and most readable option.
What is the difference between camelCase and PascalCase?
In camelCase the first word starts with a lower-case letter, as in helloWorld. In PascalCase every word starts with a capital, as in HelloWorld.
Does case conversion work for Bangla?
No. Bangla and Hindi have no capital letters, so there is nothing to change.
More guides
- Word count and character limits: essays, SMS and meta descriptions
- How to compress an image to an exact size in KB
- Photo and signature size for online application forms: a checklist
- JPG, PNG, WebP, AVIF or HEIC: which image format should you use?
- All guides
Paul Digital guides are written from hands-on testing of the tools on this site and are reviewed when platforms or formats change. Requirements set by exam boards, governments and apps vary and change over time, so always check the official instructions for your case. Spotted an error? Email askpaulonline@gmail.com.