About Case Converter
Paste your text, choose a style in the Convert to menu and the converted text appears underneath, ready to copy or download as converted.txt. There are four writing styles (UPPERCASE, lowercase, Title Case, Sentence case), five naming styles for code (camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE) and two novelty styles (aLtErNaTiNg and iNVERSE cASE). The sample sentence "the quick brown fox jumps over the lazy dog" becomes "The Quick Brown Fox Jumps Over the Lazy Dog" in Title Case and the_quick_brown_fox_jumps_over_the_lazy_dog in snake_case. Conversion happens in your browser as you type.
All 11 case styles with example output
Each result is the converter's output for the same input: hello world. THIS is a TEST! is it working? yes
| Convert to | Result | Typical use |
|---|---|---|
| UPPERCASE | HELLO WORLD. THIS IS A TEST! IS IT WORKING? YES | Labels, acronyms, warnings |
| lowercase | hello world. this is a test! is it working? yes | Email addresses, tags, cleanup |
| Title Case | Hello World. This Is a Test! Is It Working? Yes | Headlines, book and film titles |
| Sentence case | Hello world. This is a test! Is it working? Yes | Body text, subject lines |
| camelCase | helloWorldThisIsATest!IsItWorking?Yes | JavaScript and Java variables |
| PascalCase | HelloWorldThisIsATest!IsItWorking?Yes | Class and component names |
| snake_case | hello_world_this_is_a_test!_is_it_working?_yes | Python names, database columns |
| kebab-case | hello-world-this-is-a-test!-is-it-working?-yes | CSS classes, URL paths |
| CONSTANT_CASE | HELLO_WORLD_THIS_IS_A_TEST!_IS_IT_WORKING?_YES | Constants, environment variables |
| aLtErNaTiNg | hElLo wOrLd. ThIs iS A TeSt! Is iT WoRkInG? yEs | Mocking or joke text |
| iNVERSE cASE | HELLO WORLD. this IS A test! IS IT WORKING? YES | Undoing Caps Lock |
The five code styles keep punctuation such as ! and ? in place, as the rows above show. Remove punctuation first if you need a valid identifier.
Converting variable names between camelCase, snake_case and kebab-case
The code styles split words on spaces, underscores, hyphens, periods and on any lowercase-to-capital boundary, so they work in both directions.
snake_case to camelCase
created_at, Convert to: camelCase
createdAt
camelCase to snake_case
getUserName, Convert to: snake_case
get_user_name
CSS property to camelCase
background-color, Convert to: camelCase
backgroundColor
PascalCase to kebab-case
TotalOrderCount, Convert to: kebab-case
total-order-count
Words to CONSTANT_CASE
Max Retry Count, Convert to: CONSTANT_CASE
MAX_RETRY_COUNT
CONSTANT_CASE to camelCase
TOTAL_ORDER_COUNT, Convert to: camelCase
totalOrderCount
Dotted path to camelCase
user.first.name, Convert to: camelCase
userFirstName
Acronyms run together
userIDNumber, Convert to: snake_case
user_idnumber
Consecutive capitals have no lowercase letter between them, so ID and Number are not separated. XMLHttpRequest becomes xmlhttp_request. Type a space or underscore inside the name first, for example user ID Number.
Several names at once
first_name, last_name and created_at on three lines, Convert to: camelCase
firstNameLastNameCreatedAt
A line break counts as a word separator, so a list is merged into one long name. Convert names one by one.
Title Case examples and where it needs a manual fix
Title Case lowercases each word, capitalizes its first letter, and keeps the 13 small words down unless they start the text.
| Input | Title Case result | Comment |
|---|---|---|
| a tale of two cities | A Tale of Two Cities | First word is always capitalized |
| the cat in the hat | The Cat in the Hat | in and the stay lowercase |
| gone with the wind | Gone with the Wind | with is on the small-word list |
| THE QUICK BROWN FOX | The Quick Brown Fox | All-caps input is normalized |
| don't stop me now | Don't Stop Me Now | Apostrophes do not split a word |
| state-of-the-art design | State-of-the-Art Design | Each hyphenated part is treated as a word |
| what is this thing for | What Is This Thing for | A small word in last place stays lowercase; most style guides capitalize it |
| the lord of the rings: the return of the king | The Lord of the Rings: the Return of the King | The word after a colon is not capitalized; fix by hand |
| iPhone and macOS | Iphone and Macos | Brand capitalization is lost; fix by hand |
Style guides disagree on title capitalization. AP and APA capitalize every word of four letters or more, prepositions included, while Chicago keeps short prepositions lowercase. All three capitalize the last word of a title. This tool applies one fixed short-word list rather than any of those rule sets in full.
What Sentence case does and does not handle
- It lowercases the whole text, then capitalizes the first letter and the first letter after a period, exclamation mark or question mark followed by a space or line break.
- Proper nouns are lowered: i went to paris with john. it was great becomes I went to paris with john. It was great. Restore names by hand.
- The pronoun I is only capitalized at the start of a sentence: i think i can. can i? becomes I think i can. Can i?
- Abbreviations with periods trigger a capital: e.g. this becomes E.g. This.
- A new line that does not follow closing punctuation is not capitalized, so lists of short lines keep a lowercase first letter after line one.
- A sentence that opens with an accented letter or a quotation mark is not capitalized: élan vital. école stays as typed. Capitalize those first letters by hand.
Change case in Word, Excel and Google Docs
If the text is already in a document, the built-in commands may be quicker than copying it out.
| App | How to change case | Styles available |
|---|---|---|
| Microsoft Word | Select the text and press Shift+F3 to cycle, or use the Change Case (Aa) button on the Home tab | lowercase, UPPERCASE, Capitalize Each Word, Sentence case, tOGGLE cASE |
| Microsoft Excel | Use a formula in a new column: =UPPER(A1), =LOWER(A1) or =PROPER(A1) | UPPERCASE, lowercase, first letter of each word |
| Google Docs | Select the text, then Format > Text > Capitalization | lowercase, UPPERCASE, Title Case |
| Google Sheets | Use =UPPER(A1), =LOWER(A1) or =PROPER(A1) | UPPERCASE, lowercase, first letter of each word |
None of these offer camelCase, snake_case, kebab-case or CONSTANT_CASE, and PROPER capitalizes every word including a, of and the.
Using Case Converter
- 1
Paste or type your text into the Your text box.
- 2
Open the Convert to menu and pick a style, from UPPERCASE down to iNVERSE cASE.
- 3
Read the Converted text panel, which updates straight away.
- 4
Press the copy button, or download the result as converted.txt.