Skip to content
DeviceCheckHub

Case Converter

Change text between uppercase, lowercase, sentence case and proper title case in one click, such as switching all caps to lowercase.

For code, one name per line

Type or paste text, then choose a case. Select part of the text to change only that part.

How to use the case converter

  1. Type or paste your text into the box.
  2. Press the case you want, such as Sentence case or Title Case (AP). The text changes in place.
  3. To change only some words, select them first; the rest of the text is left alone.
  4. Press Undo if you change your mind, then Copy or Download the result.

A common use is fixing text that was typed with Caps Lock on: press lowercase or Sentence case instead of typing it all again.

The cases explained

Cases for code: camelCase, snake_case and more

Programming languages and file systems don’t allow spaces in names, so programmers join the words in a few standard ways. The buttons under “For code” turn each line into one name, so you can paste a list of field names, headings or phrases and convert them all at once. Words are found at spaces, punctuation and changes from small to capital letters, so user ID number, user_id_number and UserIdNumber all become the same words, and an acronym such as XMLHttpRequest splits into XML, Http and Request.

Case, and “first name” in itWhere it is used
camelCase
firstName
Variables and functions in JavaScript, Java and Swift; JSON keys
PascalCase
FirstName
Classes and types in most languages; C# methods; React components
snake_case
first_name
Python variables and functions, Ruby, database columns
CONSTANT_CASE
FIRST_NAME
Constants and environment variables
kebab-case
first-name
Web addresses, CSS classes, HTML attributes, file names
dot.case
first.name
Configuration keys and some logging and property files
path/case
first/name
Folder paths and routes

Follow the style guide of the language or project you are working in, such as PEP 8 for Python, which asks for snake_case functions and PascalCase classes. Accented letters are kept, and numbers count as words of their own, so version 2 notes becomes version2Notes in camelCase and version_2_notes in snake_case.

Title case rules: AP and Chicago

Both styles capitalize the first and last word of a title and every “major” word: nouns, pronouns, verbs, adjectives and adverbs. They differ in the small words.

In both styles the converter also capitalizes the first word after a colon or dash, capitalizes each part of a hyphenated word (except minor words in the middle, as in Step-by-Step), and keeps words that already mix capitals, such as iPhone or YouTube, and short acronyms such as NASA exactly as you typed them.

Example: “the lord of the rings: the return of the king” becomes “The Lord of the Rings: The Return of the King” in both styles, while “a walk through the park” becomes “A Walk Through the Park” in AP style and “A Walk through the Park” in Chicago style.

One heading in every case

Here is how the converter changes the heading “a beginner’s guide to working from home: tips that actually work”:

The two title case styles differ only in “from”: AP capitalizes prepositions of four or more letters, while Chicago keeps every preposition lowercase. Notice also that “to” stays lowercase in both styles but not in Capitalize Each Word, and that the apostrophe in “beginner’s” doesn’t start a new word. Sentence case leaves the word after the colon lowercase, as most style guides do when what follows isn’t a full sentence.

What a computer can’t decide

Some words change their role with the meaning of a sentence. In “Log In to Your Account” the word “in” is part of the verb and is capitalized by both guides, but the converter can’t tell that from “Life in the City”, so it treats “in” as a preposition. The same goes for on, over and through. The words up and off are always capitalized, because in titles they are nearly always part of a verb, as in “How to Set Up a Printer”. Sentence case keeps words with unusual capitals and short acronyms, but it can’t recognize ordinary names, so “Visit New York” becomes “Visit new york”. Glance over the result and adjust these by hand; the converter does the slow part for you.

Which case to use where

Changing case in Word, Google Docs and Excel

In Microsoft Word, select the text and press Shift+F3 (on a Mac, fn+Shift+F3) to cycle between lowercase, UPPERCASE and Capitalize Each Word, or use the Change Case button on the Home tab for sentence case too. Word has no AP or Chicago title case, so short words such as “of” and “the” end up capitalized.

In Google Docs, choose Format › Text › Capitalization. Its title case option capitalizes every word, so minor words need fixing by hand. In Excel and Google Sheets, the formulas =UPPER(A1), =LOWER(A1) and =PROPER(A1) change the case of a cell; note that PROPER capitalizes any letter after an apostrophe, turning “don’t” into “Don’T”. This converter avoids that and handles contractions correctly, so pasting text here and back is often quicker.

Tips

For more text tools, count words with the word counter, check limits with the character counter, or make decorative text with the font generator.

Frequently asked questions

What is the difference between Title Case and Capitalize Each Word?

Capitalize Each Word puts a capital at the start of every word. Title Case follows a style guide: short words such as a, the, and, of and in stay lowercase unless they come first or last, which is how headlines and book titles are normally written.

Should I use AP or Chicago style?

Use the one your publication or teacher asks for. AP style is common for news and many websites; Chicago style is common for books and academic writing. The main difference is that Chicago keeps all prepositions lowercase, even long ones like between and through, while AP capitalizes prepositions of four letters or more.

Why did Sentence case change my names to lowercase?

Sentence case lowercases every word except the first word of each sentence and the word I. It keeps words with unusual capitals, such as iPhone, and short acronyms, such as NASA, but a computer can’t reliably tell that words like New York are names. Check names and places afterwards and fix them by hand.

Can I change only part of my text?

Yes. Select the words you want to change, then press a case button; only the selection is converted. Press Undo to step back through up to 20 changes.

Is my text saved or uploaded?

Your text stays in your browser and is never uploaded. The page keeps your latest text on this device so it’s still there if you reload; press Clear to remove it.

Last updated · About DeviceCheckHub