Case Converter — UPPER, lower, camelCase, snake_case, kebab-case & 10 modes

UPPER CASE, lower case, Title Case, Capitalize, camelCase, PascalCase, snake_case, kebab-case and case toggle

Input text
Result

About This Case Converter

This tool offers 10 English case-conversion modes: UPPER CASE — all letters uppercase; lower case — all letters lowercase; Title Case — capitalize each word; Sentence case — capitalize only the first letter of the sentence; Capitalize — uppercase the first letter and leave the rest; camelCase — first word lowercase, later words capitalized; PascalCase — every word capitalized with no separators; snake_case — all lowercase joined by underscores; kebab-case — all lowercase joined by hyphens; tOGGLE cASE — swap uppercase and lowercase.

Common Use Cases

Code naming: convert identifier formats to language conventions — camelCase for JavaScript variables/functions, snake_case for Python functions/constants, PascalCase for Java classes, UPPER_SNAKE_CASE for constants. Database naming: tables and columns usually use snake_case (e.g. user_name, create_time); convert camelCase code identifiers into DB naming in bulk. URL slugs: turn titles or product names into kebab-case for SEO-friendly URLs (e.g. /how-to-use-markdown). Copy consistency: normalize article titles, category names and tags to a uniform style. When cleaning up identifiers and English titles you can pair this with the regex tester for bulk matching, or the find & replace tool to unify naming.

Naming Convention Cheat Sheet

JavaScript / TypeScript: variables and functions camelCase (e.g. getUserName), classes and components PascalCase (e.g. UserProfile), constants UPPER_SNAKE_CASE (e.g. MAX_SIZE). Python: variables and functions snake_case (e.g. get_user_name), classes PascalCase (e.g. UserProfile), constants UPPER_SNAKE_CASE. Java: variables and methods camelCase (e.g. getUserName), classes PascalCase (e.g. UserProfile), constants UPPER_SNAKE_CASE. CSS: class names and IDs use kebab-case (e.g. .user-profile). SQL: table and column names use snake_case (e.g. user_profile). REST API: URL paths and query params use kebab-case or snake_case.

FAQ

Q: What is the difference between camelCase and PascalCase?

A: camelCase lowercases the first word and capitalizes later words, e.g. helloWorld — common for JavaScript/Java variables and methods. PascalCase capitalizes every word, e.g. HelloWorld — common for Java/C# class names and React components. A simple mnemonic: camelCase starts low then rises, PascalCase is all high.

Q: What are snake_case and kebab-case used for?

A: snake_case joins words with underscores (hello_world) and is mainly used for Python variables and functions, C identifiers, and database tables/columns. kebab-case joins words with hyphens (hello-world) and is mainly used for URL slugs, CSS class names and HTML attribute names. Both are all lowercase; only the separator differs.

Q: What are the naming conventions for different languages?

A: Java: classes PascalCase, variables/methods camelCase, constants UPPER_SNAKE_CASE. Python: variables/functions snake_case, classes PascalCase, constants UPPER_SNAKE_CASE. JavaScript: variables/functions camelCase, classes/components PascalCase, constants UPPER_SNAKE_CASE. CSS: class names kebab-case. SQL: tables/columns snake_case.

Q: Does case conversion support Chinese and special characters?

A: Chinese characters, digits and punctuation are unaffected by case conversion and are output as-is. Only the English letters A–Z and a–z are converted. If the input mixes Chinese and English, the English part is converted normally and the Chinese part is preserved.