Case Converter
Convert text to UPPERCASE, lowercase, Title Case, Sentence case, or tOGGLE cASE. Just paste your text and click a button.
About Case Converter
What Is It?
A case converter transforms the capitalization of text — changing "hello world" to "HELLO WORLD" (uppercase), "Hello World" (title case), "Hello world" (sentence case), or any of several other standard capitalization schemes. It's a deceptively simple tool that solves dozens of everyday text formatting problems. Have you ever copied text that was ACCIDENTALLY IN ALL CAPS? Pasted a list of names in all lowercase that need proper capitalization? Written code and needed to convert between camelCase and snake_case? This tool handles all those scenarios instantly. Unlike manually retyping text or trying to fix capitalization with find-and-replace, a case converter is deterministic, consistent, and doesn't introduce typos.
How Does It Work?
The conversions use JavaScript's native string methods combined with regular expressions. Uppercase and lowercase are straightforward — toUpperCase() and toLowerCase() map each character to its corresponding Unicode case form. Title case is more nuanced: the tool first lowercases everything, then capitalizes the first letter of every word using a word boundary regex /\b\w/g. This correctly handles hyphenated words ("State-Of-The-Art") and apostrophes ("O'Brien" becomes "O'brien" — a limitation, since true title case rules for names would capitalize after certain prefixes). Sentence case lowercases everything, then capitalizes the first letter after sentence-ending punctuation (period, exclamation mark, question mark). Toggle case inverts every character's case — useful for fun or for testing case sensitivity.
Common Use Cases
Fixing ALL CAPS text: People write in all caps for emphasis, system-generated messages arrive in uppercase, and legacy data is often stored in all caps — converting to sentence case or lowercase makes it readable. Title formatting: Converting blog post titles, book titles, and headlines to proper title case (capitalizing major words) for consistent formatting. Programming conventions: Converting between variable naming conventions — firstName (camelCase) vs. first_name (snake_case) vs. FIRST_NAME (SCREAMING_SNAKE_CASE for constants). Database cleanup: Normalizing user-entered data like names and addresses — converting "JOHN DOE" to "John Doe" for a professional appearance in emails and reports. Social media: Converting tweets or posts between casual lower-case and more formal sentence case depending on the platform and audience.
Tips and Best Practices
Know when title case is appropriate: AP style (news) uses title case for headlines but sentence case for subheadings. Chicago style (books) is stricter about which words to capitalize. Most online title case converters follow APA style, capitalizing all words of 4+ letters plus the first and last words. Beware of proper nouns: Title case and sentence case will lowercase proper nouns like "iPhone", "eBay", and "McDonald" — you'll need to manually fix these. Programming case conventions: camelCase is standard in JavaScript, Java, and Swift for variables and functions. snake_case is standard in Python, Ruby, and Rust. PascalCase (like TitleCase but no spaces) is used for class names in most languages. SCREAMING_SNAKE_CASE is the universal convention for constants. Unicode support: This tool uses JavaScript's built-in case conversion, which correctly handles most Latin-script languages and many non-Latin scripts. Accented characters like é, ñ, and ü convert correctly in both directions.
Frequently Asked Questions
Does title case handle "a", "an", "the" correctly? This tool capitalizes every word's first letter, including articles. For AP-style title case where short words remain lowercase, use a specialized title case tool that references a stop-word list. What's the difference between title case and proper case? They're often used interchangeably, but "proper case" sometimes implies also handling names correctly (McDonald, O'Brien). This generic tool does not handle name-specific capitalization rules. Can I convert a CSV column at once? Yes — paste the entire column, apply the conversion, and copy the result back. Each line is processed independently.