Switching between uppercase, lowercase, title case, and programming naming conventions by hand is tedious and error-prone. A case converter does it in one click.
Common text cases
Everyday cases
- UPPERCASE — All capital letters. Used for acronyms, headings, emphasis
- lowercase — All small letters. Standard for body text, URLs
- Title Case — First Letter Of Each Word Capitalized. Used for titles, headings
- Sentence case — First letter of each sentence capitalized. Standard for body text
Programming cases
- camelCase — First word lowercase, subsequent words capitalized. Used in JavaScript, Java variables
- PascalCase — Every word capitalized, no separators. Used for class names
- snake_case — Words separated by underscores, all lowercase. Used in Python, Ruby, database columns
- kebab-case — Words separated by hyphens, all lowercase. Used in URLs, CSS class names
- CONSTANT_CASE — Snake case but uppercase. Used for constants and environment variables
When you need case conversion
- Formatting headings — Convert body text to Title Case for section headers
- Cleaning data — Normalize inconsistent capitalization in spreadsheets
- Code refactoring — Convert variable names between naming conventions
- Content migration — Adjust text formatting when moving between platforms
- SEO optimization — Ensure consistent title formatting
Naming conventions in programming
| Language | Variables | Constants | Classes | Functions |
|---|---|---|---|---|
| JavaScript | camelCase | UPPER_SNAKE | PascalCase | camelCase |
| Python | snake_case | UPPER_SNAKE | PascalCase | snake_case |
| CSS | kebab-case | — | — | — |
| Ruby | snake_case | UPPER_SNAKE | PascalCase | snake_case |
| Go | camelCase | PascalCase | PascalCase | camelCase |
Following the right convention makes your code more readable and consistent with the ecosystem. A case converter handles the transformation without manual editing.
Tips
- Don’t title-case small words — Words like “a”, “an”, “the”, “in”, “on”, “at” are typically lowercase in titles (unless they’re the first word)
- Acronyms in camelCase —
htmlParseris preferred overHTMLParserin most style guides - Be consistent — Pick one convention and stick with it across your project