Case Conversion
Enter or paste English text, convert to uppercase, lowercase, capitalize words, sentence case, camelCase / snake_case / kebab-case and more with one click.
Input Text
Result

        

About Case Conversion: What You Need to Know

Case conversion is a fundamental text processing operation. This tool supports one-click conversion between uppercase, lowercase, capitalize words, sentence case, camelCase, snake_case, kebab-case and more formats. Below is a brief overview of each naming convention and best practices.

#01

Common Naming Conventions Explained: camelCase / snake_case / kebab-case

Different programming languages and scenarios have different text formatting requirements. Here are the four most commonly used naming conventions:

  • camelCase (lower camel): First word starts lowercase, subsequent words start uppercase. E.g., userName, getUserId. Widely used for variables and functions in JavaScript, Java, TypeScript.
  • PascalCase (upper camel): Every word starts with an uppercase letter. E.g., UserService, HttpClient. Commonly used for class names in C#, Java.
  • snake_case (snake): All words lowercase, connected by underscores. E.g., user_name, created_at. The dominant style in Python, Ruby, and database field names.
  • kebab-case (spinal): All words lowercase, connected by hyphens. E.g., user-name, font-size. Mainly used in HTML attributes, CSS class names, and URL paths.
#02

Naming Conventions by Language & Framework

Mastering the naming conventions of each language community is key to efficient collaboration:

  • JavaScript / TypeScript: Variables and functions use camelCase (myVariable), classes and constructors use PascalCase (MyClass).
  • Python: Variables and functions use snake_case (my_variable), classes use PascalCase (MyClass), constants use UPPER_SNAKE_CASE (MAX_RETRY).
  • Java / C#: Variables and methods use camelCase, classes and interfaces use PascalCase, constants use UPPER_SNAKE_CASE.
  • Ruby: Uniformly uses snake_case; symbols end with ? or ! for predicates or destructive methods (e.g., empty?, save!).
  • Go: Exported identifiers use PascalCase (uppercase first letter = public), non-exported use lowercase first letter.
  • HTML / CSS: Attribute names and CSS custom properties use kebab-case (data-user-id, --primary-color).
#03

Data Security & Privacy

All conversion operations of this tool are performed locally in the browser without network requests. Your input content will never be uploaded to any server. Text processing relies entirely on native JavaScript string methods (e.g., .toUpperCase(), .toLowerCase(), regex) ensuring zero data leakage. All data is cleared from memory immediately when the page is closed.

📖 Want to learn more?
Read the complete case conversion guide: deep comparison of naming conventions, regex implementation principles, batch processing tips (~8 min read)
Read Full Guide →