Case Converter – Uppercase, Lowercase, camelCase & More
Use this case converter to change text to UPPERCASE, lowercase, Title Case, camelCase, PascalCase, snake_case, kebab-case or CONSTANT_CASE instantly — for writing, variable names, file names and URLs.
By DevCalcHub Editorial Team · Last updated:
How it works
The input is first split into individual words — breaking on spaces, hyphens, underscores, and camelCase boundaries — then rejoined using the target case style's own rules.
Example
Converting to camelCase:
How to use the case converter
- Paste your text.
- Pick the target case.
- Copy the converted output. Mixed input like "my-variable_Name" is split into words correctly.
Case styles with examples
| Style | Result | Commonly used for |
|---|---|---|
| camelCase | userAccountId | JavaScript and Java variables and functions |
| PascalCase | UserAccountId | Class names, React components, C# methods |
| snake_case | user_account_id | Python variables, database columns |
| kebab-case | user-account-id | URLs, CSS classes, file names |
| CONSTANT_CASE | USER_ACCOUNT_ID | Constants and environment variables |
| Title Case | User Account Id | Headings and titles |
| lower case | user account id | General text |
| UPPER CASE | USER ACCOUNT ID | Emphasis, labels, acronyms |
Why kebab-case is best for URLs
Search engines treat hyphens as word separators, so "income-tax-calculator" is read as three words, while underscores may join words together. Lowercase kebab-case URLs are also easier to read and share. Count characters in your titles and descriptions with the Word Counter.
Frequently asked questions
Which case style should I use for variable names?
This depends on your language's convention: camelCase for JavaScript/Java variables, snake_case for Python, PascalCase for class names in most languages, and CONSTANT_CASE for constants.
Does this handle mixed input like 'my-variable_Name'?
Yes — the tool splits on spaces, hyphens, underscores and camelCase word boundaries all at once, so mixed-style input converts correctly.
How do I convert uppercase to lowercase?
Paste your text, choose "lower case" and copy the result. Choose "UPPER CASE" to do the opposite.
What is the difference between camelCase and PascalCase?
Both join words without spaces and capitalise each word, but camelCase starts with a lowercase letter (userName) while PascalCase starts with a capital (UserName).
What is snake_case?
snake_case writes words in lowercase separated by underscores, like user_account_id. It is the standard style for variables in Python and for many database column names.
Related tools
Input
Converted
helloWorldExample