Case Converter

Case Converter

Convert text between different cases

UPPERCASE
lowercase
Title Case
Sentence case
camelCase
snake_case
kebab-case
PascalCase

Text Case Conventions Explained

Different text cases serve different purposes in programming, design, and writing. Choosing the right convention improves readability and maintains consistency across your projects. Here is a guide to when each case is appropriate.

When to Use Each Case

  • UPPERCASE — Used for acronyms (NASA, HTML), constant values in programming (MAX_SIZE), and emphasis in writing. Avoid long passages in uppercase as it is perceived as shouting.
  • lowercase — Standard for most informal writing, email addresses, and URLs. Domain names and file paths are typically lowercase for consistency.
  • Title Case — The standard format for book titles, article headings, and movie titles. Major words are capitalized while minor words (and, the, in) remain lowercase unless they start the title.
  • Sentence case — Used in standard prose writing. Only the first word and proper nouns are capitalized. This is the most common format for body text.
  • camelCase — Widely used in JavaScript and Java for variable names and function names. The first word is lowercase, and subsequent words start with a capital letter (e.g., getUserData).
  • snake_case — Common in Python, Ruby, and database column names. Words are separated by underscores and all lowercase (e.g., user_full_name).
  • kebab-case — Used in URL slugs, CSS class names, and HTML data attributes. Words are separated by hyphens (e.g., main-container).
  • PascalCase — Standard for class names and component names in many programming languages including C#, TypeScript, and Python. Every word starts with a capital letter (e.g., UserProfile).

Tips for Consistent Naming

  • Follow your project's existing naming convention — consistency matters more than which style you choose.
  • For API design, camelCase is common in JavaScript ecosystems while snake_case is preferred in Python and Ruby.
  • Database schemas traditionally use snake_case for column names as it remains readable in uppercase queries.
  • CSS classes almost exclusively use kebab-case for compatibility and readability.