Case Converter

This case converter transforms text between different letter cases with one click. Convert to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, and more. Paste your text and select the desired case format for instant conversion.

0 characters · 0 words

Frequently Asked Questions

How do you convert text to uppercase?

To convert text to uppercase, select or paste your text and apply the UPPERCASE transformation. Every lowercase letter (a-z) is replaced with its uppercase equivalent (A-Z). In programming, most languages provide a built-in method such as toUpperCase() in JavaScript, upper() in Python, or strtoupper() in PHP. Numbers, symbols, and punctuation remain unchanged during the conversion.

What is Title Case?

Title Case capitalizes the first letter of each major word while keeping minor words (such as 'a', 'an', 'the', 'and', 'but', 'or', 'in', 'on', 'at') in lowercase, unless they are the first or last word. For example, 'the lord of the rings' becomes 'The Lord of the Rings'. Different style guides (APA, Chicago, AP) have slightly different rules about which words to capitalize, but the general principle is the same.

What is the difference between camelCase and PascalCase?

In camelCase, the first word starts with a lowercase letter and each subsequent word starts with an uppercase letter (e.g., 'myVariableName'). In PascalCase (also called UpperCamelCase), every word starts with an uppercase letter, including the first (e.g., 'MyVariableName'). CamelCase is conventionally used for variables and function names in JavaScript and Java, while PascalCase is used for class names and React component names.

How do you convert to sentence case?

Sentence case capitalizes only the first letter of the first word in a sentence, plus any proper nouns. All other letters are lowercase. For example, 'THIS IS A SAMPLE SENTENCE' becomes 'This is a sample sentence'. Automated tools capitalize the first letter after each sentence-ending punctuation (period, question mark, exclamation mark), though they typically cannot detect proper nouns automatically.

What is snake_case?

Snake_case replaces spaces between words with underscores and converts all letters to lowercase. For example, 'Hello World Example' becomes 'hello_world_example'. It is widely used in Python for variable and function names (PEP 8 convention), in database column names, and in file naming. A variant called SCREAMING_SNAKE_CASE uses all uppercase letters and is commonly used for constants in many programming languages.

When should you use each text case?

UPPERCASE is used for acronyms, headings, and emphasis. lowercase is used for body text and URLs. Title Case is used for headlines and book titles. Sentence case is used for regular sentences and UI labels. camelCase is standard for JavaScript/Java variables. PascalCase is used for class names and React components. snake_case is standard in Python and SQL. kebab-case is used in CSS classes, URLs, and file names.

How do you convert between kebab-case and camelCase?

To convert kebab-case to camelCase, remove each hyphen and capitalize the letter that follows it. For example, 'my-variable-name' becomes 'myVariableName'. To convert camelCase to kebab-case, insert a hyphen before each uppercase letter and convert everything to lowercase. For example, 'myVariableName' becomes 'my-variable-name'. This conversion is common when moving between CSS property names (kebab-case) and JavaScript property names (camelCase).

Case Converter

What Is a Case Converter?

A Case Converter is a text transformation tool that instantly converts your text into various letter case formats. Whether you need to change text to uppercase, lowercase, title case, or programming-specific formats like camelCase and snake_case, this tool handles it all in real time as you type. All conversions are displayed simultaneously so you can quickly copy the format you need.

Supported Case Types

UPPERCASE

Converts all letters to capital letters. Example: "hello world" becomes "HELLO WORLD".

lowercase

Converts all letters to small letters. Example: "Hello World" becomes "hello world".

Title Case

Capitalizes the first letter of every word. Example: "hello world" becomes "Hello World".

Sentence case

Capitalizes only the first letter of each sentence. Example: "hello world. goodbye world" becomes "Hello world. Goodbye world".

camelCase

Removes spaces and capitalizes the first letter of each word except the first. Example: "hello world" becomes "helloWorld". Commonly used in JavaScript and Java variable naming.

PascalCase

Like camelCase but the first letter is also capitalized. Example: "hello world" becomes "HelloWorld". Used for class names in many programming languages.

snake_case

Replaces spaces with underscores and lowercases all letters. Example: "Hello World" becomes "hello_world". Popular in Python and Ruby.

kebab-case

Replaces spaces with hyphens and lowercases all letters. Example: "Hello World" becomes "hello-world". Used in URLs and CSS class names.

CONSTANT_CASE

Like snake_case but all uppercase. Example: "hello world" becomes "HELLO_WORLD". Used for constants in many programming languages.

dot.case

Replaces spaces with dots and lowercases all letters. Example: "Hello World" becomes "hello.world". Used in configuration keys and package names.

How to Use

  1. Type or paste your text into the input field
  2. All case conversions are displayed simultaneously in real time
  3. Click the copy button next to any result to copy it to your clipboard
  4. The character count and word count are shown above the input

Examples

Input: "the quick brown fox"

CaseResult
UPPERCASETHE QUICK BROWN FOX
lowercasethe quick brown fox
Title CaseThe Quick Brown Fox
camelCasetheQuickBrownFox
PascalCaseTheQuickBrownFox
snake_casethe_quick_brown_fox
kebab-casethe-quick-brown-fox
CONSTANT_CASETHE_QUICK_BROWN_FOX
dot.casethe.quick.brown.fox

Common Use Cases

  • Converting titles and headings to the correct case format
  • Transforming variable names between different programming conventions
  • Fixing text that was accidentally typed in the wrong case
  • Preparing text for URLs, file names, or database fields
  • Standardizing text formatting in documents and spreadsheets
  • Converting between naming conventions when switching programming languages

Case Conventions in Programming

LanguageVariablesClassesConstants
JavaScriptcamelCasePascalCaseCONSTANT_CASE
Pythonsnake_casePascalCaseCONSTANT_CASE
CSSkebab-case--
Rubysnake_casePascalCaseCONSTANT_CASE
GocamelCasePascalCasePascalCase

Tips

  • Use camelCase for JavaScript/TypeScript variables and PascalCase for React components
  • Use snake_case when working with Python, Ruby, or database column names
  • Use kebab-case for CSS classes, URLs, and HTML attributes
  • CONSTANT_CASE is standard for environment variables and constant values across most languages
  • dot.case is commonly used in Java package names and configuration file keys