🔤Text Case Converter
Instantly convert your text to UPPERCASE, lowercase, Title Case, Sentence case, or Capitalize Each Word with one click.
Frequently Asked Questions
🤔 What is a Text Case Converter?
A Text Case Converter allows you to quickly change your text into formats like uppercase, lowercase, title case, and sentence case without manual editing.
🤔 Is this Text Case Converter free?
"Yes, our Text Case Converter is 100% free, instant, and works on any browser or device.
🤔 Why would I need to convert text case?
"Converting text case is useful for writing, formatting documents, editing code, and ensuring consistency in articles, emails, and projects.
Understanding Common Text Cases
Text casing refers to the rules that govern which letters in a word or phrase are capitalized and which are lowercase. While everyday writing primarily uses uppercase and lowercase, the world of software development, design, and content creation has produced a rich set of naming conventions, each with its own purpose. The most familiar cases are UPPERCASE (every letter capitalized), lowercase (no capitals at all), and Title Case (the first letter of each major word capitalized). Sentence case capitalizes only the first letter of the first word and any proper nouns. These conventions help maintain consistency in documents, code, user interfaces, and branding, making text easier to read and process.
Complete Case Types Reference Table
The following table lists every major text case convention, with an example and the contexts where each is typically used.
| Case Name | Example | Typical Usage |
|---|---|---|
| UPPERCASE | MY VARIABLE NAME | Constants, acronyms, headings, environment variables |
| lowercase | my variable name | Email addresses, domain names, CSS properties |
| Title Case | My Variable Name | Article headlines, book titles, navigation menus |
| Sentence case | My variable name | Body text, subtitles, UI button labels |
| camelCase | myVariableName | JavaScript/Java variables and functions |
| PascalCase | MyVariableName | Class names, React components, C# methods |
| snake_case | my_variable_name | Python, Ruby, database columns, REST API params |
| kebab-case | my-variable-name | CSS class names, URL slugs, HTML attributes |
| SCREAMING_SNAKE_CASE | MY_VARIABLE_NAME | Constants in C, Java, Python, Rust |
| dot.case | my.variable.name | Java package names, property files, YAML keys |
Naming Conventions by Programming Language
Each programming language and its ecosystem has established conventions for how identifiers should be cased. Following these conventions is not just about aesthetics -- it makes code immediately recognizable to other developers and helps linters and formatters enforce consistency.
| Language | Variables/Functions | Classes/Types | Constants |
|---|---|---|---|
| JavaScript / TypeScript | camelCase | PascalCase | SCREAMING_SNAKE |
| Python | snake_case | PascalCase | SCREAMING_SNAKE |
| Java | camelCase | PascalCase | SCREAMING_SNAKE |
| C# / .NET | camelCase | PascalCase | PascalCase |
| Ruby | snake_case | PascalCase | SCREAMING_SNAKE |
| Go | camelCase | PascalCase (exported) | camelCase |
| Rust | snake_case | PascalCase | SCREAMING_SNAKE |
| CSS / HTML | kebab-case | kebab-case | --kebab-case |
Developer Naming Conventions: camelCase, PascalCase, snake_case, and kebab-case
In programming, naming conventions are not just stylistic preferences but are often enforced by language standards and community guidelines. camelCase starts with a lowercase letter and capitalizes the first letter of each subsequent word, such as getUserName. It is the standard for variables and functions in JavaScript, Java, and TypeScript. PascalCase (also called UpperCamelCase) capitalizes every word, including the first, as in UserProfile. It is typically used for class names, components in React, and type definitions. snake_case uses underscores to separate lowercase words, like user_name, and is the standard in Python, Ruby, and database column names. kebab-case replaces underscores with hyphens, producing patterns like user-name, and is widely used in CSS class names, URL slugs, and HTML attributes.
Worked Example: Converting Between Cases
Let us walk through converting the phrase "user profile settings" into every major developer case format. Understanding the transformation rules makes it easy to switch between contexts.
Input: "user profile settings"
Step 1 (camelCase): Lowercase first word, capitalize first letter of subsequent words, remove spaces: userProfileSettings
Step 2 (PascalCase): Capitalize first letter of every word, remove spaces: UserProfileSettings
Step 3 (snake_case): Lowercase all, replace spaces with underscores: user_profile_settings
Step 4 (kebab-case): Lowercase all, replace spaces with hyphens: user-profile-settings
Step 5 (SCREAMING_SNAKE): Uppercase all, replace spaces with underscores: USER_PROFILE_SETTINGS
Step 6 (dot.case): Lowercase all, replace spaces with dots: user.profile.settings
The key to converting between cases is always to first decompose the original text into individual words, then reassemble them using the target convention's rules. This is exactly the logic that automated case converters (including this tool) apply internally.
When to Use Each Case
Choosing the right text case depends on context. Use UPPERCASE for constants, acronyms, and headings that demand attention, such as environment variables like MAX_RETRIES. Use lowercase for email addresses, domain names, and file names on case-sensitive systems. Title Case is ideal for article headlines, book titles, and navigation menus. Sentence case provides a natural, readable feel for body text, subtitles, and button labels in modern user interfaces. In code, follow the conventions of your language and team: camelCase for JavaScript variables, PascalCase for React components, snake_case for Python functions, and kebab-case for CSS classes. Maintaining consistent casing across a project improves readability, reduces bugs caused by mismatched identifiers, and makes collaboration smoother. Our text case converter helps you switch between these formats instantly, saving time when reformatting text for different contexts.
Title Case Rules and Edge Cases
Title Case is not as simple as capitalizing the first letter of every word. Style guides like the Associated Press (AP), the Chicago Manual of Style, and APA each have specific rules about which words to capitalize. In general, the following rules apply:
- Always capitalize: The first and last word of the title, all nouns, pronouns, verbs, adjectives, and adverbs.
- Do not capitalize: Short prepositions (in, on, at, to, by), conjunctions (and, but, or, nor), and articles (a, an, the) unless they are the first or last word.
- Hyphenated words: Capitalize both parts of a hyphenated compound if both are major words (e.g., "Well-Known Method").
For example, "the art of computer programming" in strict Title Case becomes "The Art of Computer Programming" -- notice that "of" remains lowercase because it is a short preposition. Simple title-case converters capitalize every word, producing "The Art Of Computer Programming," which is technically incorrect under most style guides. If you need strict Title Case for publishing, consider a style-guide-aware tool.
Case Sensitivity in Different Contexts
Whether or not casing matters depends heavily on the system you are working with. Understanding case sensitivity prevents subtle bugs and broken references.
Case-Sensitive
- Linux/macOS file systems (default)
- Most programming language identifiers
- Git branch names
- Database table/column names (PostgreSQL default)
- JSON keys
Case-Insensitive
- Windows file system (NTFS default)
- HTML tag names and attributes
- CSS properties and selectors
- DNS / domain names
- Email addresses (local part varies)
A common pitfall: a developer creates a file called UserProfile.tsx on macOS, imports it as userprofile.tsx, and everything works locally because macOS is case-insensitive by default. But the same code fails on a Linux CI server because Linux is case-sensitive. Consistent casing in file names and imports prevents these environment-specific bugs.