Case Converter

Convert your text to any case format instantly.

How to Use the Case Converter

Type or paste your text into the input field, then click any of the case format buttons to convert it instantly. The converted text appears in the output area below, ready to copy. Click "Copy" to copy the result to your clipboard.

Understanding Text Cases

UPPERCASE

All letters are capitalized. UPPERCASE text is commonly used for acronyms, emphasis, headings, and constants in programming. In digital communication, writing in all caps is often perceived as shouting.

lowercase

All letters are converted to lowercase. This is useful for normalizing text, creating uniform data entries, and preparing text for case-insensitive comparisons in programming.

Title Case

The first letter of each word is capitalized while the rest remain lowercase. Title Case is the standard format for book titles, article headlines, and formal headings. Style guides vary on whether small words like "the," "and," and "of" should be capitalized.

Sentence case

Only the first letter of the first word is capitalized, with the rest in lowercase. This is the most natural format for regular sentences and paragraph text.

Programming Case Conventions

camelCase

Starts with a lowercase letter, with each subsequent word capitalized and no separators. This is the dominant convention for variables and functions in JavaScript, TypeScript, Java, and C#. Example: getUserProfile, totalItemCount.

PascalCase

Similar to camelCase but starts with an uppercase letter. PascalCase is used for class names in most languages and component names in React and Angular. Example: UserProfile, ShoppingCart.

snake_case

All lowercase with words separated by underscores. This is the standard in Python and Ruby, and is commonly used for database column names, API parameters, and file names. Example: user_profile, total_count.

kebab-case

All lowercase with words separated by hyphens. kebab-case is used in CSS class names, URL slugs, and HTML attributes. Example: user-profile, nav-bar.

CONSTANT_CASE

All uppercase with words separated by underscores. Used for constants and environment variables in most programming languages. Example: MAX_RETRY_COUNT, API_BASE_URL.

When to Use Each Case

  • Writing headlines: Use Title Case for formal headlines or Sentence case for a modern, casual feel.
  • JavaScript variables: Use camelCase for variables and functions, PascalCase for classes and components.
  • Python code: Use snake_case for variables, functions, and modules; CONSTANT_CASE for constants.
  • CSS classes: Use kebab-case for all class names and custom properties.
  • Database columns: Use snake_case for column and table names.
  • Environment variables: Use CONSTANT_CASE for all environment variables.

Tips for Consistent Naming

  • Follow your project's existing conventions — consistency is more important than any single convention.
  • Use a linter or formatter to automatically enforce naming conventions in your codebase.
  • When converting between cases, be mindful of acronyms (e.g., HTML, API) which may need special handling.
  • Bookmark this tool for quick conversions when switching between languages or file types.

Frequently Asked Questions

What text cases are supported?
The tool supports UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, and CONSTANT_CASE. Each format has its own conventions and common use cases in programming and writing.
What is camelCase?
camelCase starts with a lowercase letter and capitalizes the first letter of each subsequent word, with no spaces or separators. It is the standard naming convention for variables and functions in JavaScript, Java, and many other languages.
What is snake_case?
snake_case uses all lowercase letters with words separated by underscores. It is the standard naming convention in Python, Ruby, and is commonly used for database column names and file names.
What is the difference between Title Case and Sentence case?
Title Case capitalizes the first letter of every word (e.g., "The Quick Brown Fox"). Sentence case capitalizes only the first letter of the first word (e.g., "The quick brown fox"). Title Case is used for headings, while Sentence case is used for regular sentences.
Is my text stored or sent anywhere?
No. All text conversion happens locally in your browser using JavaScript. Your text is never sent to any server or stored anywhere.

Related Tools