Case Converter (Lowercase ↔ Uppercase)

Convert text between uppercase, lowercase, title case, sentence case, toggle case, and programming naming conventions like camelCase and snake_case.

Case Converter

HELLO WORLD EXAMPLE TEXT
Characters
24.00
Total characters
No Spaces
21.00
Characters without spaces
Words
4.00
Space-separated words
Lines
1.00
Number of lines
Uppercase
0.00
A-Z characters in input
Lowercase
21.00
a-z characters in input
Digits
0.00
0-9 characters in input

All Case Variations

StyleResult
UPPERCASEHELLO WORLD EXAMPLE TEXT
lowercasehello world example text
Title CaseHello World Example Text
Sentence caseHello world example text
tOGGLEHELLO WORLD EXAMPLE TEXT
kebab-casehello-world-example-text
snake_casehello_world_example_text
CONSTANT_CASEHELLO_WORLD_EXAMPLE_TEXT
Planning notes, formulas, and examples

About the Case Converter (Lowercase ↔ Uppercase)

Converting text between uppercase, lowercase, and other case formats is a common need for writers, programmers, data entry professionals, and content creators. Whether you accidentally typed with Caps Lock on, need to reformat a heading to title case, or want to convert a phrase to camelCase for a variable name, a reliable case converter saves time and eliminates errors.

This Case Converter handles six text case modes: UPPERCASE, lowercase, Title Case, Sentence case, tOGGLE cASE, and Capitalize Each Word. Beyond basic case conversion, it supports programmer-friendly naming conventions including kebab-case, snake_case, camelCase, PascalCase, dot.case, and even custom separators.

The converter provides a live preview of the converted text with a one-click copy button, along with detailed text statistics including character count, word count, line count, and breakdowns of uppercase, lowercase, and digit characters. A comparison table shows your input text in all case variations simultaneously, making it easy to pick the format you need.

When This Page Helps

Text case conversion is needed constantly: reformatting titles, preparing database entries, creating CSS class names, fixing Caps Lock mistakes, and standardizing data imports. Doing it manually is tedious and error-prone, especially for large blocks of text.

This converter handles both natural-language case formats and programming naming conventions in one place, with live preview, copy button, and a multi-format comparison table.

How to Use the Inputs

  1. Enter or paste your text in the input area, or use a preset example.
  2. Select the desired case conversion mode from the dropdown.
  3. Optionally choose a naming convention separator (kebab-case, snake_case, camelCase, etc.).
  4. For custom separators, type your separator character in the field that appears.
  5. Copy the converted text using the Copy button in the output area.
  6. Scroll down to see all case variations of your text in the comparison table.
Formula used
Case rules: UPPERCASE: every letter → capital lowercase: every letter → small Title Case: first letter of each word → capital, rest → small Sentence case: first letter after sentence end → capital tOGGLE: swap each letter's case

Example Calculation

Result: Hello World Example

Title Case capitalizes the first letter of each word and lowercases the rest. "hello" → "Hello", "world" → "World", "example" → "Example".

Tips & Best Practices

  • Use kebab-case for CSS classes and URL slugs.
  • Use camelCase for JavaScript/TypeScript variables and functions.
  • Use PascalCase for class names in most programming languages.
  • Use CONSTANT_CASE (snake_case table row) for environment variables and constants.
  • The comparison table lets you preview all formats at once before choosing.
  • For large text blocks, the copy button is faster than selecting and copying manually.

Case Conventions in Programming

Programming languages have strong conventions about case usage. Python uses snake_case for functions and variables, PascalCase for classes. JavaScript uses camelCase for variables and functions, PascalCase for classes and React components. CSS uses kebab-case for class names. Violating these conventions makes code harder to read and can cause issues with case-sensitive file systems and APIs.

Natural Language Case Rules

English has specific rules for capitalization: sentence case capitalizes the first word of each sentence, title case capitalizes major words (with style guides differing on which small words to capitalize), and all-caps is reserved for acronyms and emphasis. Getting case right matters for professional writing, headlines, and data consistency.

Data Normalization and Case

In databases and data processing, inconsistent casing causes matching failures and duplicates. "New York," "new york," and "NEW YORK" are logically the same but computationally different. Normalizing to a consistent case before processing or storing data eliminates these issues. This converter is useful for cleaning up data exports and imports.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Title case capitalizes the first letter of every word. Strict AP/Chicago title case also lowercases articles and prepositions (the, of, in), but this converter capitalizes all words for simplicity.