How to Change the Case of Text
- Paste or type your text in the box.
- The case converter shows your text in 12 cases below the box, and they update as you type.
- Tap Copy next to the one you want, and a "Copied" message confirms it. Tap ❤️ to keep a case in Favorites, and find your last copies under Recently used.
Until you type, a sample is shown so you can see each case.
The 12 Cases
Here is "a walk in the Park" in each case:
| Case | Result | What it does |
|---|---|---|
| UPPERCASE | A WALK IN THE PARK | Every letter capital |
| lowercase | a walk in the park | Every letter small |
| Sentence case | A walk in the park | Only the first letter of each sentence is capital |
| Capitalize Each Word | A Walk In The Park | The first letter of every word is capital |
| Title Case (AP) | A Walk in the Park | Main words are capital, short words stay small |
| aLtErNaTiNg | a wAlK In tHe pArK | Letters switch between small and capital |
| iNVERSE | A WALK IN THE pARK | Each capital becomes small, and each small becomes capital |
| camelCase | aWalkInThePark | Words joined, each new word starts with a capital |
| PascalCase | AWalkInThePark | Words joined, every word starts with a capital |
| snake_case | a_walk_in_the_park | Small letters joined with underscores |
| CONSTANT_CASE | A_WALK_IN_THE_PARK | Capital letters joined with underscores |
| kebab-case | a-walk-in-the-park | Small letters joined with hyphens |
How Each One Works
- UPPERCASE and lowercase change every letter. They're the quickest way to go from uppercase to lowercase, or lowercase to uppercase (ALL CAPS).
- Sentence case capitalizes the first letter of the text and the first letter of each sentence, which starts after a period, question mark, or exclamation mark.
- Capitalize Each Word capitalizes the first letter of every word, including short words like "and" and "of." It's also called proper case.
- Title Case (AP) follows Associated Press rules for titles of books, movies, and articles. Short words stay small unless they start or end the title.
- Alternating switches by position in the text, and the spaces count as positions.
- Inverse flips each letter: capitals become small and small become capital.
- camelCase, PascalCase, snake_case, CONSTANT_CASE, and kebab-case remove the spaces and join the words, which is how programmers write names in code.
Title Case Rules: Which Words Stay Lowercase
In title case, the important words get a capital, and the small connecting words don't. AP style keeps these lowercase unless they're the first or last word:
- Articles: a, an, the
- Short conjunctions: and, but, or, for, nor
- Prepositions of three letters or fewer: in, of, on, at, to, by
Every other word gets a capital, including short verbs like "is," "are," and "be." So the title is "What Is Title Case," not "What is Title Case."
Style guides don't all agree. AP capitalizes prepositions of four or more letters, like "With" and "From." Chicago style keeps every preposition lowercase, so it writes "with" and "from" in small letters. If you follow a school or company guide, check its rules.
Title Case or Sentence Case?
Use Title Case for titles of books, movies, songs, and many blog headlines. Use Sentence case for normal writing, emails, and captions, where only the first word and names get a capital.
Many websites and apps now use Sentence case for headings, since it reads more like normal text. Either is fine, as long as you use the same one across a page.
When to Use Each Case
| Need | Use |
|---|---|
| Fix text typed with Caps Lock on | lowercase or Sentence case |
| A blog title or a book title | Title Case (AP) |
| A name, label, or list item where every word counts | Capitalize Each Word |
| A paragraph typed in all capitals | Sentence case |
| A strong heading or a label | UPPERCASE |
| A joke or a meme caption | aLtErNaTiNg |
| Variable names in JavaScript | camelCase |
| Class and component names | PascalCase |
| Python variables and file names | snake_case |
| Constants and settings in code | CONSTANT_CASE |
| Web addresses and CSS class names | kebab-case |
How to Change Case in Word, Excel, and Google Docs
You can also change case inside the apps you already use:
| App | How to change case |
|---|---|
| Microsoft Word | Select the text and press Shift+F3 to cycle through cases. On a Mac, you may need fn+Shift+F3. You can also use the Change Case button (Aa) on the Home tab. |
| Microsoft Excel | Use a formula in a new cell: =UPPER(A1), =LOWER(A1), or =PROPER(A1) for a capital at the start of each word. |
| Google Sheets | The same formulas work: =UPPER(A1), =LOWER(A1), and =PROPER(A1). |
| Google Docs | Select the text, then go to Format › Text › Capitalization and pick lowercase, UPPERCASE, or Title Case. |
These apps don't offer every case. For Sentence case, Title Case (AP), or code styles, paste the text into the case converter above.
Changing Case in Code
If you're writing code, most languages have built-in ways to change case:
| Language | Uppercase | Lowercase | Capital at the start of each word |
|---|---|---|---|
| JavaScript | text.toUpperCase() | text.toLowerCase() | No built-in method |
| Python | text.upper() | text.lower() | text.title() |
| CSS | text-transform: uppercase | text-transform: lowercase | text-transform: capitalize |
| SQL | UPPER(name) | LOWER(name) | INITCAP(name) in PostgreSQL and Oracle |
CSS changes only how text looks on the screen, not the text itself. For converting variable names between camel case and snake case, the case converter is a quick option.
Good to Know
- The converter follows standard Unicode rules for upper and lower case, so accented letters, such as é and ñ, convert normally.
- Some languages have special rules, such as the dotted and dotless i in Turkish. If you write in one of them, read the result before you use it.
- Names like "iPhone" or "McDonald" will be changed by the capital-letter cases, so correct them by hand.
- The case converter changes the case only. It doesn't fix spelling or punctuation.
Related Tools
For different letter shapes instead of different cases, try the fancy text generator, the bold text generator, or the small caps generator. To repeat text, use the text repeater, and to add a line under your words, try the underline text generator.
Common Problems and Fixes
A title capitalized "and" and "of"
Capitalize Each Word capitalizes every word. Use Title Case (AP) instead, which keeps short words small.
A brand name came out wrong
Case rules don't know about brand names. Fix them after converting.
A sentence didn't get a capital
Add a period, question mark, or exclamation mark where each sentence ends, then convert again. Without them, the whole text counts as one sentence.