Text Case Converter: Guide to Every Case Format
Every Case Type Explained
| Case | Example | Used for |
|---|---|---|
| UPPER CASE | HELLO WORLD | Constants, SQL keywords, emphasis |
| lower case | hello world | Normalization, comparisons |
| Title Case | Hello World | Headings, names, titles |
| Sentence case | Hello world | Normal prose, descriptions |
| camelCase | helloWorld | JavaScript variables, JSON keys |
| PascalCase | HelloWorld | Class names, React components |
| snake_case | hello_world | Python, SQL columns, file names |
| kebab-case | hello-world | CSS classes, URL slugs, HTML attributes |
| SCREAMING_SNAKE | HELLO_WORLD | Python/Java constants, env variables |
Programming Naming Conventions
Naming conventions vary by language and context. Following them matters for code readability and team consistency:
- JavaScript/TypeScript:
camelCasefor variables and functions,PascalCasefor classes and React components,SCREAMING_SNAKEfor constants - Python:
snake_casefor variables and functions,PascalCasefor classes,SCREAMING_SNAKEfor constants - CSS:
kebab-casefor class names and custom properties - SQL:
snake_casefor column and table names (most style guides) - URLs:
kebab-case— search engines and browsers prefer lowercase hyphenated slugs - C#/.NET:
PascalCasefor public members,camelCasefor local variables and private fields
How to Use the Tool
Type or paste any text into the input box. The tool works on any length of text — a single word, a phrase, a list of identifiers, or multiple paragraphs.
Click the button for the case format you want. The conversion appears instantly in the output panel.
Click Copy to copy the converted text to your clipboard.
Common Use Cases
Renaming database columns
Convert a list of spreadsheet column headers like "First Name", "Last Name", "Date of Birth" into snake_case for SQL column names: first_name, last_name, date_of_birth.
Generating URL slugs
Convert a blog post title like "10 Tips for Better SQL Performance" into a kebab-case URL slug: 10-tips-for-better-sql-performance.
Generating variable names from labels
Copy field labels from a design mockup and convert them to camelCase variable names for your JavaScript code.
Normalizing data
Convert a mixed-case column of user-entered names or status values to lowercase for consistent comparison and deduplication.
Tips
- Multiple words — camelCase, PascalCase, snake_case, and kebab-case conversions automatically split on spaces, existing case boundaries, underscores, and hyphens.
- Numbers — numbers are treated as word boundaries in most cases:
version2Beta→version_2_beta. - Acronyms — Title Case preserves all-caps words like "SQL" and "API" intact; camelCase and snake_case lowercase them.
CSS text-transform vs Manual Conversion
CSS offers a text-transform property that can change text appearance visually: uppercase, lowercase, and capitalize (title case). This is useful for headings and UI labels, but it only affects rendering — the underlying text stays unchanged. That matters for accessibility (screen readers read the original text), copy-paste behaviour (users copy the original casing), and search engines (which index the source HTML, not the visual display).
Use CSS text-transform when you want visual consistency across a design system — for instance, styling all navigation links as uppercase. Use a manual converter when the actual text value needs to change, such as generating variable names, normalising database entries, or creating URL slugs. The distinction is display versus data: CSS handles the first, conversion tools handle the second.
Locale-Aware Case Conversion
Case conversion is not always as simple as mapping A–Z to a–z. Some languages have locale-specific rules that standard toLowerCase() gets wrong. The most famous example is Turkish: the lowercase of "I" is "ı" (dotless i), not "i", and the uppercase of "i" is "İ" (dotted I), not "I". German has "ß" which uppercases to "SS". If your data includes names or text in multiple languages, use locale-aware functions like JavaScript's toLocaleLowerCase('tr') or Python's str.casefold() for comparisons. For English-only identifiers and code, standard case conversion is fine.
