About This Tool
Convert text between different cases: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, and dot.case. Essential for developers reformatting variable names and for writers adjusting text capitalization. Handles Unicode characters correctly.
Frequently Asked Questions
- What is the difference between camelCase and PascalCase?
- camelCase starts with a lowercase letter (myVariableName), PascalCase starts with uppercase (MyVariableName). JavaScript conventions use camelCase for variables/functions and PascalCase for classes/components.
- When should I use snake_case?
- snake_case is the standard naming convention in Python, Ruby, Rust, and PostgreSQL. It's also used for JSON keys in many REST APIs (user_name vs userName). Use it when working in these ecosystems.
- What is kebab-case used for?
- kebab-case (words-separated-by-hyphens) is used for CSS class names, URL slugs, HTML attributes, and CLI command names. It's also common in file names for web projects.
- Does Title Case capitalize every word?
- Title Case capitalizes the first letter of each word. Some style guides (AP, Chicago) keep articles (a, an, the) and short prepositions (in, of, to) lowercase unless they're the first word. This tool capitalizes all words.