Skip to main content
Aa

Case Converter

Convert text between all popular case formats instantly.

0 chars
Output: 0 chars

How to Convert Text Case

  1. Type or paste your text into the input box.
  2. Click any case format button to instantly convert the text.
  3. The result appears in the output box on the right.
  4. Click Copy to copy the output to your clipboard.

camelCase and PascalCase remove spaces and punctuation — ideal for variable names. snake_case and kebab-case are commonly used in URLs and code identifiers.

What is a Case Converter?

A case converter transforms text between different capitalization formats — from writing conventions like Title Case to programming naming conventions like camelCase, snake_case, and kebab-case. Instead of manually retyping text, you can paste any text and convert it instantly to whichever format you need. All processing happens in your browser — no data is sent to a server.

When to Use Each Case Format

  • UPPERCASE: Acronyms, constants in code (MAX_VALUE), emphasis in headings
  • lowercase: CSS class names, HTML attributes, email addresses, database values
  • Title Case: Book titles, article headings, page titles, menu items
  • camelCase: JavaScript/TypeScript variable and function names (myVariableName)
  • PascalCase: Class names and component names in most languages (MyComponent)
  • snake_case: Python variables, database column names, file names on Unix systems
  • kebab-case: URL slugs, CSS class names, HTML data attributes, file names

FAQ

What is camelCase?

camelCase joins multiple words into one string where each word after the first starts with a capital letter, with no spaces or punctuation. Example: "my variable name" becomes "myVariableName". It is the standard naming convention for variables and functions in JavaScript, Java, and Swift.

What is snake_case used for?

snake_case separates words with underscores, all in lowercase. Example: "my variable name" becomes "my_variable_name". It is the standard in Python for variables and functions, and is widely used for database column names and file naming in Unix/Linux environments.

What is kebab-case?

kebab-case separates words with hyphens (dashes), all in lowercase. Example: "my variable name" becomes "my-variable-name". It is used for URL slugs, CSS class names, HTML data attributes, and file names in many projects. Note that hyphens are not valid in most programming language identifiers.

When should I use Title Case?

Title Case capitalizes the first letter of each major word. Use it for blog post titles, book titles, page headings, menu items, and product names. Minor words like "a", "the", "in", and "of" are typically kept lowercase unless they are the first word.

What is PascalCase?

PascalCase (also called UpperCamelCase) is like camelCase but the very first letter is also capitalized. Example: "my class name" becomes "MyClassName". It is the convention for class names and constructor functions in most object-oriented languages including JavaScript, C#, and Java.

Related Tools