Skip to content

Case Converter and Text Case Changer

Paste text, pick one of 11 case styles and copy the result. Covers everyday writing cases and the naming styles used in code.

Runs in your browserFree, no sign-upLast reviewed

Settings

Results update automatically as you type.

Converted text

The Quick Brown Fox Jumps Over the Lazy Dog

Quick answers

How do I change uppercase to lowercase without retyping?
Paste the capitalized text and choose lowercase in the Convert to menu. If you want normal sentences back rather than all small letters, choose Sentence case: I WAS TYPING WITH CAPS LOCK ON. SORRY ABOUT THAT. becomes I was typing with caps lock on. Sorry about that.
What is the difference between Title Case and Sentence case?
Title Case capitalizes the main words, as in The Quick Brown Fox Jumps Over the Lazy Dog. Sentence case capitalizes only the first word of each sentence, as in The quick brown fox jumps over the lazy dog. Headlines usually use the first, body text the second.
How do I convert camelCase to snake_case?
Paste the name and choose snake_case. The converter splits wherever a lowercase letter or digit meets a capital, so getUserName becomes get_user_name and maxRetryCount becomes max_retry_count. Convert one name at a time, because line breaks are treated as word separators.
What is camelCase vs PascalCase?
Both join words with no separator and capitalize each word. camelCase leaves the first word lowercase (helloWorld); PascalCase capitalizes it too (HelloWorld). JavaScript and Java use camelCase for variables and PascalCase for class names.
Which words stay lowercase in Title Case?
This converter keeps 13 short words lowercase unless they are the very first word: a, an, the, and, or, but, of, in, on, at, to, for and with. Every other word is capitalized, including longer prepositions such as over, through and between.
How do I fix text typed with Caps Lock on?
Use iNVERSE cASE, which swaps every letter's case. Text typed with Caps Lock on, such as i WAS TYPING WITH CAPS LOCK ON. sORRY ABOUT THAT., comes out as I was typing with caps lock on. Sorry about that. with the capitals back where you meant them.

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 toResultTypical use
UPPERCASEHELLO WORLD. THIS IS A TEST! IS IT WORKING? YESLabels, acronyms, warnings
lowercasehello world. this is a test! is it working? yesEmail addresses, tags, cleanup
Title CaseHello World. This Is a Test! Is It Working? YesHeadlines, book and film titles
Sentence caseHello world. This is a test! Is it working? YesBody text, subject lines
camelCasehelloWorldThisIsATest!IsItWorking?YesJavaScript and Java variables
PascalCaseHelloWorldThisIsATest!IsItWorking?YesClass and component names
snake_casehello_world_this_is_a_test!_is_it_working?_yesPython names, database columns
kebab-casehello-world-this-is-a-test!-is-it-working?-yesCSS classes, URL paths
CONSTANT_CASEHELLO_WORLD_THIS_IS_A_TEST!_IS_IT_WORKING?_YESConstants, environment variables
aLtErNaTiNghElLo wOrLd. ThIs iS A TeSt! Is iT WoRkInG? yEsMocking or joke text
iNVERSE cASEHELLO WORLD. this IS A test! IS IT WORKING? YESUndoing 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.

InputTitle Case resultComment
a tale of two citiesA Tale of Two CitiesFirst word is always capitalized
the cat in the hatThe Cat in the Hatin and the stay lowercase
gone with the windGone with the Windwith is on the small-word list
THE QUICK BROWN FOXThe Quick Brown FoxAll-caps input is normalized
don't stop me nowDon't Stop Me NowApostrophes do not split a word
state-of-the-art designState-of-the-Art DesignEach hyphenated part is treated as a word
what is this thing forWhat Is This Thing forA small word in last place stays lowercase; most style guides capitalize it
the lord of the rings: the return of the kingThe Lord of the Rings: the Return of the KingThe word after a colon is not capitalized; fix by hand
iPhone and macOSIphone and MacosBrand 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.

AppHow to change caseStyles available
Microsoft WordSelect the text and press Shift+F3 to cycle, or use the Change Case (Aa) button on the Home tablowercase, UPPERCASE, Capitalize Each Word, Sentence case, tOGGLE cASE
Microsoft ExcelUse a formula in a new column: =UPPER(A1), =LOWER(A1) or =PROPER(A1)UPPERCASE, lowercase, first letter of each word
Google DocsSelect the text, then Format > Text > Capitalizationlowercase, UPPERCASE, Title Case
Google SheetsUse =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. 1

    Paste or type your text into the Your text box.

  2. 2

    Open the Convert to menu and pick a style, from UPPERCASE down to iNVERSE cASE.

  3. 3

    Read the Converted text panel, which updates straight away.

  4. 4

    Press the copy button, or download the result as converted.txt.

Questions people ask

Which case should I use for variable names?
Follow the language's convention. JavaScript, TypeScript and Java use camelCase for variables and functions and PascalCase for classes. Python and Ruby use snake_case. CSS classes and URL slugs use kebab-case. Constants and environment variables in most languages use CONSTANT_CASE.
What is the difference between aLtErNaTiNg and iNVERSE cASE?
Alternating ignores the original capitals and makes characters lowercase and uppercase in turn, starting with lowercase and counting spaces as positions, so hello world becomes hElLo wOrLd. Inverse flips each letter's existing case, so Hello World becomes hELLO wORLD.
Does kebab-case output work as a URL slug?
Only for simple text. kebab-case lowercases words and joins them with hyphens, so My Blog Post Title becomes my-blog-post-title, but it keeps punctuation and accented letters. For a clean URL, use the slug generator, which strips those characters.
Does it work with accented and non-English letters?
Partly. UPPERCASE, lowercase and the two novelty styles use standard Unicode case mapping, so accented letters convert correctly and the German ß becomes SS in uppercase. Title Case and Sentence case only recognize unaccented letters and digits as the start of a word, so über comes out as üBer in Title Case and a sentence starting with é is left lowercase in Sentence case.
Is there a limit on how much text I can convert?
There is no set limit. The conversion runs in your browser, so very long documents depend on your device's memory. For long results, the download button saves the output as converted.txt instead of relying on the clipboard.
Can I capitalize the first letter of every word, including small words?
There is no separate capitalize-each-word style. Title Case is the closest, but it keeps 13 short words lowercase. If you need every word capitalized, convert with Title Case and fix the few small words, or use PROPER in a spreadsheet.
Is my text uploaded when I convert it?
No. The text is processed by JavaScript in your browser and is not sent to a server, so it is safe to paste drafts, code and internal names.

Looking for something else? Browse all text tools or see every tool.