You typed a whole paragraph before noticing Caps Lock was on. A colleague sent a product list in shouty capitals. Your style guide says headings should be in sentence case, but half the team writes them in title case. Or you are a developer who needs to turn "Customer Order Total" into customerOrderTotal for a variable name.
All of these are the same job: changing the case of text without retyping it. This guide explains the common case styles, where each one belongs, the traps that automatic conversion can fall into, and how to convert text in a browser, in Word, in Google Docs and in a spreadsheet.
The case styles, side by side
Here is the same phrase, "quarterly sales report for the north region", in each style:
| Style | Example | Typical use |
|---|---|---|
| UPPERCASE | QUARTERLY SALES REPORT FOR THE NORTH REGION | Short labels, warnings, acronyms |
| lowercase | quarterly sales report for the north region | Tags, email addresses, normalising data |
| Title Case | Quarterly Sales Report for the North Region | Headlines, book and film titles |
| Capitalized Case | Quarterly Sales Report For The North Region | Some video titles, buttons and labels |
| Sentence case | Quarterly sales report for the north region | Body text, UI labels, many modern headings |
| camelCase | quarterlySalesReportForTheNorthRegion | JavaScript and Java variable names |
| snake_case | quarterly_sales_report_for_the_north_region | Python variables, database columns |
| kebab-case | quarterly-sales-report-for-the-north-region | URLs, CSS classes, file names |
| CONSTANT_CASE | QUARTERLY_SALES_REPORT_FOR_THE_NORTH_REGION | Constants and environment variables |
Title case versus sentence case
These two cause the most debate. Title case capitalises the main words of a heading. Sentence case capitalises only the first word and proper nouns, exactly like a normal sentence.
Sentence case has become common on websites and in apps because it is easier to scan and feels less formal. Title case remains standard for book titles, and many publications still use it for headlines. Neither is correct in general; what matters is consistency within one document or site.
Formal title case is more subtle than "capitalise every word". Style guides such as AP, Chicago, APA and MLA keep short words like "a", "of", "the" and "for" in lowercase unless they start the title, and they disagree with each other about details such as four-letter prepositions.
Programming cases
In code, spaces are not allowed in names, so words are joined in other ways. The choice is usually dictated by the language or project convention: camelCase in JavaScript, snake_case in Python and SQL, kebab-case in URLs and CSS, CONSTANT_CASE for values that never change. Mixing them in one codebase makes names harder to search for.
Convert case in your browser
Our Case Converter handles all nine styles above with one click each.
- Open the Case Converter.
- Type or paste your text into the box on the left.
- Click one of the buttons: UPPERCASE, lowercase, Title Case, Capitalized Case, Sentence case, camelCase, snake_case, kebab-case or CONSTANT_CASE.
- Check the output in the Result panel.
- Click Copy Result and paste it where you need it.
You can click different buttons one after another to compare styles; the original text on the left is never changed.
What each button does exactly
It helps to know the rules the tool applies, so you can check the result:
- Title Case capitalises the first letter of each word and lowercases the rest, except for a fixed list of small words that stay lowercase: a, an, the, and, but, or, for, nor, on, at, to, by, in and of. Those are still capitalised when they are the first or last word of a line or follow a colon, so "star wars: the empire strikes back" becomes "Star Wars: The Empire Strikes Back". Each line is treated as a separate title. Longer prepositions such as "with", "from" and "about" are capitalised. If you need the exact AP, Chicago, APA or MLA rules, use the Title Case Converter, which applies each style guide's own word lists.
- Capitalized Case capitalises the first letter of every word, small words included, and lowercases the rest. Use it when a platform or brand style wants every word capitalised.
- Sentence case lowercases everything, then capitalises the first letter of the text and the first letter after each full stop, question mark or exclamation mark. Proper nouns are lowercased too, so "london" and "excel" need fixing by hand.
- camelCase lowercases the text and joins words, capitalising the letter after each space or symbol.
- snake_case and kebab-case lowercase the text, replace spaces with underscores or hyphens, and remove other punctuation.
For web addresses specifically, the Slug Generator goes further: it strips accents, handles symbols like "&" and can drop stop words.
Other ways to change case
Microsoft Word
Select the text and press Shift+F3 on Windows to cycle between lowercase, UPPERCASE and capitalising each word. The Change Case button (Aa) on the Home tab also offers "Sentence case." and "tOGGLE cASE". Toggle case is the quickest fix for text typed with Caps Lock on.
Google Docs
Select the text, then choose Format → Text → Capitalization and pick lowercase, UPPERCASE or Title Case.
Excel and Google Sheets
Spreadsheets have three functions that work on a cell:
=UPPER(A2)
=LOWER(A2)
=PROPER(A2)
PROPER is the spreadsheet version of title case. It capitalises every word, and it also capitalises letters after apostrophes and some symbols, so "o'neil's" may become "O'Neil'S". Check names carefully.
Code editors
Many code editors have commands to transform selected text to upper or lower case, and some extensions add camelCase or snake_case conversion. If you rename variables often, that keeps you in one window.
Built-in methods are the better choice when the text is already in that app and you only need upper, lower or title case. An online converter is faster for programming cases, which office apps do not offer, and for text coming from email, chat or forms.
Pitfalls to watch for
Acronyms and brand names
Automatic conversion does not know that "NASA", "iPhone", "eBay" or "SQL" have fixed spellings. After converting to title or sentence case, scan for names that should keep their own capitalisation.
Accented and non-Latin letters
Upper and lower case exist in Latin, Greek, Cyrillic and a few other scripts, but not in Chinese, Japanese, Arabic or Hindi. Text in those scripts passes through unchanged. For programming cases, our converter keeps only a–z and 0–9 in snake_case and kebab-case, so accented letters are removed rather than converted; strip accents first with Remove Accents if you want "café" to become "cafe".
All-caps text in documents
Writing whole sentences in capitals is harder to read and is often perceived as shouting. It can also be read letter by letter by some screen readers when a word looks like an acronym. For emphasis, use bold instead.
Changing case in data
Converting email addresses or usernames to lowercase is a common clean-up step, because most systems treat them case-insensitively. Passwords, codes and IDs are the opposite: never change their case, because they are often case-sensitive.
Frequently asked questions
What is the difference between title case and sentence case?
Title case capitalises the main words of a heading ("Annual Budget Review"), while sentence case capitalises only the first word and proper nouns ("Annual budget review"). Sentence case is common on websites and apps; title case is traditional for book titles and many headlines.
How do I fix text typed with Caps Lock on?
Paste it into a case converter and click lowercase or Sentence case, then correct any names. In Word, the Change Case menu's "tOGGLE cASE" option reverses the capitalisation directly.
What is camelCase used for?
camelCase joins words without spaces and capitalises each word after the first, as in invoiceTotal. It is the usual naming style for variables and functions in JavaScript, Java and several other languages.
Should URLs use kebab-case or snake_case?
Hyphens (kebab-case) are the common choice for URLs, and Google's own URL guidance recommends hyphens to separate words. Underscores work technically but are less conventional.
Does changing case affect my original text?
No. The converter shows the result in a separate panel and leaves the text you pasted untouched, so you can try several styles.