This case converter shows your text in eight letter-case formats at once: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case and kebab-case. Writers use it to fix text typed with Caps Lock on or to change capital letters in a heading, and developers use it to rename variables and other identifiers. The conversion runs in your browser, so nothing you paste is sent anywhere.
How to use the case converter
- Type or paste your text into the Input Text box. A counter under it shows the number of characters.
- The eight converted versions appear below, each in its own box, and update as you type. Convert All refreshes them by hand.
- Find the format you need by its label, for example UPPERCASE, Title Case or snake_case.
- Press the Copy button beside that box and paste the result wherever you need it.
- Press Clear to empty the input and start again.
What each format does to the same sentence
All eight boxes for the input the lord of the rings (extended edition):
| Format | Result |
|---|---|
| UPPERCASE | THE LORD OF THE RINGS (EXTENDED EDITION) |
| lowercase | the lord of the rings (extended edition) |
| Title Case | The Lord Of The Rings (extended Edition) |
| Sentence case | The lord of the rings (extended edition) |
| camelCase | theLordOfTheRings(extendedEdition) |
| PascalCase | TheLordOfTheRings(extendedEdition) |
| snake_case | the_lord_of_the_rings_(extended_edition) |
| kebab-case | the-lord-of-the-rings-(extended-edition) |
Two things show up here. Title Case capitalizes the first character of each word, and for "(extended" that character is the bracket, so the word stays lowercase. The code formats keep punctuation, so remove brackets and commas first if you need a clean identifier.
Uppercase converter and lowercase converter
UPPERCASE turns every letter into a capital, which suits short labels, acronyms and headings in designs that call for all caps. lowercase does the reverse and is the quickest fix for a paragraph typed with Caps Lock on: convert it to lowercase, then use Sentence case to bring back the capital letter at the start of each sentence. Both work on accented letters too, so "café" becomes "CAFÉ".
Title case converter rules
Title Case here capitalizes every word, short ones such as "of" and "the" included, and lowercases the rest of each word, so iPhone becomes Iphone. Most style guides keep small words lowercase unless they start the title, so you may need to lower a few by hand. For example, "a tale of two cities" comes out as "A Tale Of Two Cities", and a style guide would write "A Tale of Two Cities". The guide to title case vs sentence case covers those rules and which style suits headlines, and writing title tags explains how capitalization reads in search results.
Sentence case lowercases everything, then capitalizes the first letter of the text and the first letter after each full stop, question mark or exclamation mark. Names, places and the word "I" in the middle of a sentence stay lowercase and need fixing by hand.
Convert case for code
The camelCase, PascalCase, snake_case and kebab-case boxes treat spaces, hyphens and underscores as word breaks, and also break where a capital letter follows a lowercase one. That lets you convert case between naming styles in one paste:
user account id -> userAccountId, UserAccountId, user_account_id, user-account-id
background-color -> backgroundColor
getHTTPResponse -> get_httpresponse
The last line shows a limit: a run of capitals such as HTTP is not split into its own word. kebab-case output is also the start of a URL slug, and the slug generator finishes the job by removing punctuation and accents. For counting the result, the word counter and other writing tools work on the same pasted text.
Limits
- Sentence case only capitalizes the letters A to Z, so a sentence that starts with an accented letter, such as "élan", stays lowercase.
- Abbreviations confuse it. "e.g. this" becomes "E.G. This", because every full stop counts as the end of a sentence.
- Title Case and Sentence case also lowercase acronyms, so "visit NASA" becomes "Visit Nasa" in Title Case and "Visit nasa" in Sentence case.