EasyUnitConverter.com

Case Converter

Convert text between different letter cases instantly. Transform any text to uppercase, lowercase, title case, sentence case, camelCase, PascalCase, snake_case, kebab-case, or CONSTANT_CASE. Useful for programming, writing, and formatting tasks.

How to Use the Case Converter

  1. Type or paste your text into the input field above.
  2. Click the Calculate button to convert your text to all available cases.
  3. Click the Copy button next to any result to copy it to your clipboard.
  4. Use the converted text in your code, documents, or other applications.

Case Conversion Rules

UPPERCASE: All letters converted to capital letters.

lowercase: All letters converted to small letters.

Title Case: First letter of each word capitalized.

Sentence case: First letter of each sentence capitalized.

camelCase: First word lowercase, subsequent words capitalized, no spaces.

PascalCase: Every word capitalized, no spaces (also called UpperCamelCase).

snake_case: All lowercase with underscores between words.

kebab-case: All lowercase with hyphens between words.

CONSTANT_CASE: All uppercase with underscores between words.

Example Conversions

Input: "hello world example"

UPPERCASE: HELLO WORLD EXAMPLE

Title Case: Hello World Example

camelCase: helloWorldExample

PascalCase: HelloWorldExample

snake_case: hello_world_example

kebab-case: hello-world-example

CONSTANT_CASE: HELLO_WORLD_EXAMPLE

Case Style Usage Reference

Case StyleCommon Usage
camelCaseJavaScript/TypeScript variables, function names
PascalCaseClass names, React components, C# methods
snake_casePython variables, Ruby, database columns
kebab-caseCSS classes, HTML attributes, URL slugs
CONSTANT_CASEConstants, environment variables, enums
Title CaseHeadings, titles, proper nouns
Sentence caseRegular text, UI labels, descriptions

Frequently Asked Questions

What is the difference between camelCase and PascalCase?

camelCase starts with a lowercase letter (myVariable), while PascalCase starts with an uppercase letter (MyVariable). PascalCase is sometimes called UpperCamelCase.

When should I use snake_case vs kebab-case?

Use snake_case for Python, Ruby, and database column names. Use kebab-case for CSS class names, HTML attributes, and URL slugs. The choice often depends on the language or framework conventions.

What is CONSTANT_CASE used for?

CONSTANT_CASE (also called SCREAMING_SNAKE_CASE) is used for constants, environment variables, and enum values in many programming languages.

Does title case capitalize every word?

This tool capitalizes the first letter of every word. In formal title case (AP or Chicago style), small words like "the," "and," "of" are not capitalized unless they start the title.

Can I convert code variable names between cases?

Yes. Paste a variable name like "myVariableName" and the tool will convert it to snake_case (my_variable_name), kebab-case (my-variable-name), and other formats.

Related Calculators