ToolRun
🔤

Case Converter

Convert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case, and more.

Case Converter

Convert text between different letter cases instantly.

About the Case Converter Tool

The Case Converter is a free online utility that transforms text between different letter cases instantly. Whether you need to convert a title to uppercase for a heading, format a variable name in camelCase, or clean up text that was accidentally typed with caps lock on, this tool handles it all.

Supported Case Conversions

  • UPPERCASE: Converts all letters to capital letters. Example: "hello world" becomes "HELLO WORLD". Commonly used for headings, acronyms, and emphasis.
  • lowercase: Converts all letters to small letters. Example: "HELLO WORLD" becomes "hello world". Useful for normalizing text and email addresses.
  • Title Case: Capitalizes the first letter of each word. Example: "hello world" becomes "Hello World". Standard for titles, headings, and proper nouns.
  • Sentence case: Capitalizes only the first letter of each sentence. Example: "hello world. goodbye world." becomes "Hello world. Goodbye world." Used for general body text.
  • camelCase: Joins words with the first word lowercase and subsequent words capitalized. Example: "hello world" becomes "helloWorld". Standard convention in JavaScript and Java variable naming.
  • snake_case: Joins words with underscores, all lowercase. Example: "Hello World" becomes "hello_world". Common in Python and Ruby variable naming and database column names.
  • kebab-case: Joins words with hyphens, all lowercase. Example: "Hello World" becomes "hello-world". Used in URLs, CSS class names, and file names.

When to Use Each Case

Different programming languages and contexts have conventions for text casing. JavaScript developers typically use camelCase for variables and PascalCase for classes. Python developers prefer snake_case. CSS frameworks use kebab-case for class names. URLs are almost always lowercase with hyphens. Understanding these conventions leads to more readable, maintainable code.

Common Use Cases

Writers use case conversion to fix text typed with caps lock accidentally enabled. Developers use it to convert between naming conventions when porting code between languages. Marketers use it to format headlines consistently. Data analysts use it to normalize column names in datasets.

Frequently Asked Questions

What is Title Case?
Title Case capitalizes the first letter of every word in a sentence. For example, "the quick brown fox" becomes "The Quick Brown Fox". It is commonly used for book titles, article headlines, and headings.
What is the difference between camelCase and PascalCase?
In camelCase, the first word starts with a lowercase letter (e.g., "myVariableName"). In PascalCase, the first word also starts with an uppercase letter (e.g., "MyClassName"). camelCase is typically used for variable and function names, while PascalCase is used for class and component names.
When should I use snake_case vs kebab-case?
snake_case uses underscores and is the convention in Python, Ruby, and SQL database columns. kebab-case uses hyphens and is standard for URLs, CSS class names, and HTML attributes. Choose based on the language or context you are working in.
Does the case converter preserve special characters?
Yes, special characters, numbers, and punctuation marks are preserved during conversion. Only alphabetic characters are affected by the case transformation.

Related Tools