Understanding Text Cases
Different programming languages and contexts have their own conventions for naming. Using the right case improves code readability and follows best practices.
Case Convention Guide
- camelCase: JavaScript, Java, TypeScript (variables, functions)
- PascalCase: JavaScript/TypeScript (classes, components), C#
- snake_case: Python, Ruby, Rust, SQL, file names
- kebab-case: URLs, CSS classes, HTML attributes, npm packages
- CONSTANT_CASE: Constants in most languages
Frequently Asked Questions
What text cases are supported?
This tool supports lowercase, UPPERCASE, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, aLtErNaTiNg CaSe, and iNVERSE cASE.
When should I use camelCase vs snake_case?
camelCase is common in JavaScript, Java, and TypeScript. snake_case is preferred in Python, Ruby, and SQL. kebab-case is used for URLs, CSS classes, and HTML attributes.
What's the difference between Title Case and Sentence case?
Title Case capitalizes the first letter of each word (The Quick Brown Fox). Sentence case only capitalizes the first letter of sentences (The quick brown fox).
Is my data secure?
Yes! This tool runs entirely in your browser. Your text is never sent to any server - all processing happens locally on your device.