How to Convert Text Case: Uppercase, Lowercase, Title Case
Text case conversion transforms text between different capitalization formats β uppercase, lowercase, title case, sentence case, and programming conventions like camelCase and snake_case. It's a daily task for content editors, developers, and anyone working with text data.
Case Types Explained
UPPERCASE β all letters capitalized. Used for headings, abbreviations, and emphasis.
lowercase β all letters uncapitalized. Used for CSS classes, URLs, and file names.
Title Case β first letter of each word capitalized. Used for headings and titles.
Sentence case β first letter of first word capitalized. Used for body text and descriptions.
camelCase β first word lowercase, subsequent words capitalized, no spaces. Used in JavaScript variable names.
snake_case β all lowercase with underscores. Used in Python and database columns.
kebab-case β all lowercase with hyphens. Used in CSS classes and URL slugs.
Using the Text Case Converter
Paste your text, pick the target case and copy the result. Title Case keeps acronyms (HTML, AI) and mixed-case names (iPhone, JavaScript) as written, keeps short words such as a, an, the, and, of and in lowercase unless they are the first or last word, and handles accented and non-Latin letters. Sentence case also keeps acronyms. Title-case style guides differ in the details β Chicago and AP disagree on prepositions of four or more letters, for example β so check a house style for headlines that matter.
Worked Example: A Bug This Guide Found
This guide used to promise that our Title Case kept acronyms and small words. When we tested it (Node.js and Chromium, script in our test folder, October 13, 2026), it did neither: it capitalized every word, lowercased the rest, and only recognized ASCII letters. We fixed the tool; here is the before and after:
| Input | Before | Now |
|---|---|---|
| the HTML and CSS guide for beginners | The Html And Css Guide For Beginners | The HTML and CSS Guide for Beginners |
| a tale of two cities | A Tale Of Two Cities | A Tale of Two Cities |
| Γ©lan vital in the age of AI | Γ©Lan Vital In The Age Of Ai | Γlan Vital in the Age of AI |
| how to use iPhone and JavaScript | How To Use Iphone And Javascript | How to Use iPhone and JavaScript |
| state-of-the-art tools | State-of-the-art Tools | State-of-the-Art Tools |
The third row shows why a naive /\w\S*/g pattern fails on accented text: in JavaScript \w only matches ASCII letters, so the match started at the l of Γ©lan. Unicode property escapes such as \p{L} with the u flag match letters in any script.
Programming Case Conventions
JavaScript uses camelCase for variables and PascalCase for classes. Python uses snake_case for functions and PascalCase for classes. CSS uses kebab-case for class names and custom properties. SQL uses UPPER_CASE for keywords and snake_case for columns. Consistency within a project matters more than which convention you choose.
Frequently Asked Questions
How do I convert text to title case?
What is camelCase?
What is the difference between kebab-case and snake_case?
Use the Text Case Converter β free, no signup required.
β‘ Open Text Case Converter