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.
| Style | Example | Typical use |
|---|---|---|
| Sentence case | The quick brown fox | Body text, buttons, many website headings |
| Title Case | The Quick Brown Fox | Titles of books, films, songs, some headings |
| UPPERCASE | THE QUICK BROWN FOX | Short labels and acronyms |
| lowercase | the quick brown fox | Tags, usernames, casual style |
| camelCase | theQuickBrownFox | Variables and functions in JavaScript and Java |
| PascalCase | TheQuickBrownFox | Class names in many languages |
| snake_case | the_quick_brown_fox | Variables in Python and Rust, database columns |
| kebab-case | the-quick-brown-fox | CSS properties, HTML attributes, URLs |
| CONSTANT_CASE | THE_QUICK_BROWN_FOX | Constants and environment variables |
| aLtErNaTiNg | tHe QuIcK bRoWn FoX | Jokes and mocking memes |
| iNVERSE | hELLO 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.
| Input | Result here |
|---|---|
| the lord of the rings: the return of the king | The Lord of the Rings: The Return of the King |
| a walk through the park | A Walk Through the Park |
| what are you looking at | What 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
- Title case of “a walk through the park with NASA” gives “A Walk Through the Park With Nasa”
- 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.
| Input | camelCase | snake_case | CONSTANT_CASE |
|---|---|---|---|
| total price | totalPrice | total_price | TOTAL_PRICE |
| userID count | userIdCount | user_id_count | USER_ID_COUNT |
| XMLHttpRequest | xmlhttpRequest | xmlhttp_request | XMLHTTP_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”.
| Input | Converted | What to check |
|---|---|---|
| straße (to uppercase) | STRASSE | One letter became two, which matters for character limits |
| istanbul (to uppercase) | ISTANBUL | Turkish spelling needs a dotted İ |
| İSTANBUL (to lowercase) | i with a separate combining dot | May look odd in some fonts; retype if needed |