Case Converter

Change the case of any text: upper, lower, title, sentence, or programming styles like camelCase and snake_case.

110 characters · 19 words · 3 lines

Last reviewed:

Which case style to use where

Sentence case suits body text, buttons and most headings; Title Case suits names of books, films and songs; programming styles like camelCase and snake_case depend on the language you're writing in. Here's the same phrase in every style this converter offers.

StyleExampleTypical use
Sentence caseThe quick brown foxBody text, buttons, many website headings
Title CaseThe Quick Brown FoxTitles of books, films, songs, some headings
UPPERCASETHE QUICK BROWN FOXShort labels and acronyms
lowercasethe quick brown foxTags, usernames, casual style
camelCasetheQuickBrownFoxVariables and functions in JavaScript and Java
PascalCaseTheQuickBrownFoxClass names in many languages
snake_casethe_quick_brown_foxVariables in Python and Rust, database columns
kebab-casethe-quick-brown-foxCSS properties, HTML attributes, URLs
CONSTANT_CASETHE_QUICK_BROWN_FOXConstants and environment variables
aLtErNaTiNgtHe QuIcK bRoWn FoXJokes and mocking memes
iNVERSEhELLO wORLD (from Hello World)Fixing text typed with Caps Lock on

Title case rules differ between style guides

Every major guide capitalizes the first and last word and the “big” words: nouns, verbs, adjectives, adverbs and pronouns. They disagree about small words. AP style capitalizes any word of four or more letters, so “With” and “From” get capitals. Chicago style, since its 18th edition in 2024, capitalizes prepositions only when they have five or more letters, so “Through” and “Between” get capitals but “with” and “from” stay small. Earlier Chicago editions lowercased prepositions of any length. Neither guide is wrong; consistency within one document matters more.

This converter keeps a fixed list of short words lowercase (a, an, and, as, at, but, by, for, if, in, nor, of, on, or, per, the, to, vs and via) unless they start or end the title or follow a colon. Everything else gets a capital, which lands close to AP style.

InputResult here
the lord of the rings: the return of the kingThe Lord of the Rings: The Return of the King
a walk through the parkA Walk Through the Park
what are you looking atWhat Are You Looking At

If your school or publication follows Chicago, lowercase four-letter prepositions such as “with”, “from”, “into” and “over” by hand after converting.

Watch out for acronyms and proper nouns

Case conversion is mechanical. Title and sentence case lowercase everything first, then add capitals by rule, so the converter can't know that NASA is an acronym or that Sarah is a name. Give the result a quick read before you paste it anywhere public.

Example: Two conversions that need a human touch

  1. Title case of “a walk through the park with NASA” gives “A Walk Through the Park With Nasa”
  2. Sentence case of “i met Sarah in London. she said hi.” gives “I met sarah in london. She said hi.”

Put the capitals back on NASA, Sarah and London. For a long document, Find and Replace with Match case on fixes every “Nasa” at once.

Converting variable names between styles

For programming styles, the converter splits your text into words at spaces, underscores, hyphens, dots and slashes, and wherever a lowercase letter or digit is followed by a capital. That means you can paste an existing identifier and switch its style directly.

InputcamelCasesnake_caseCONSTANT_CASE
total pricetotalPricetotal_priceTOTAL_PRICE
userID countuserIdCountuser_id_countUSER_ID_COUNT
XMLHttpRequestxmlhttpRequestxmlhttp_requestXMLHTTP_REQUEST

The last row shows the catch: a run of capitals like XML has no lowercase-to-capital change inside it, so it stays glued to the next word. Codebases also disagree on acronyms (userId or userID), so follow whatever your project already does.

Turning a headline into a web address? The Slug Generator does more than kebab-case: it also strips accents, apostrophes and symbols.

Fixing text typed with Caps Lock on

Everyone has typed a whole sentence before noticing Caps Lock. The result looks like “tHIS IS mARIA”: capitals and lowercase exactly swapped. Inverse case flips every letter back, giving “This is Maria”, with the name's capital intact. That's better than lowercase or sentence case, which would also flatten the proper nouns.

For long passages in capitals, such as an old memo or a shouted email, sentence case is the quicker fix. Then restore names and acronyms, and run the Word Counter if the text has a length limit.

Writing a hashtag? Capitalizing each word (#ThrowbackThursday) makes it easier to read and helps screen readers pronounce the separate words. PascalCase does exactly that; just add the #.

Letters that don't convert one to one

A few letters change length or shape when their case changes, and conversion follows the general Unicode rules rather than any one language's. German ß has no traditional capital form, so uppercase turns “straße” into “STRASSE”, two letters where there was one. Turkish has both a dotted and a dotless i, so “istanbul” in uppercase becomes “ISTANBUL” rather than the Turkish “İSTANBUL”.

InputConvertedWhat to check
straße (to uppercase)STRASSEOne letter became two, which matters for character limits
istanbul (to uppercase)ISTANBULTurkish spelling needs a dotted İ
İSTANBUL (to lowercase)i with a separate combining dotMay look odd in some fonts; retype if needed

Sources and further reading

How to use it

  1. 1Paste your text.
  2. 2Pick a case style.
  3. 3Copy the result.

Questions

How does Title Case work?

Major words are capitalized; short words like 'of', 'and' and 'the' stay lowercase unless they come first or last. Acronyms and names with inner capitals, such as NASA or iPhone, are kept as typed. Capitalized Case capitalizes every word, small ones included.

Is my text uploaded anywhere?

No. Everything happens in your browser; your text never leaves your device.

Also handy: Text to QR Code, Shuffle a List