DevCalcHub

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:

Input: hello world example
Output: helloWorldExample

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

Converting "user account id"
StyleResultCommonly used for
camelCaseuserAccountIdJavaScript and Java variables and functions
PascalCaseUserAccountIdClass names, React components, C# methods
snake_caseuser_account_idPython variables, database columns
kebab-caseuser-account-idURLs, CSS classes, file names
CONSTANT_CASEUSER_ACCOUNT_IDConstants and environment variables
Title CaseUser Account IdHeadings and titles
lower caseuser account idGeneral text
UPPER CASEUSER ACCOUNT IDEmphasis, 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