camelCase, snake_case, and Title Case aren't interchangeable style preferences — each one is the expected convention in a specific context, and using the wrong one stands out immediately to anyone familiar with that context.
The Common Case Styles
| Style | Example | Where It's Used |
|---|---|---|
| camelCase | firstName | JavaScript/Java variable names |
| snake_case | first_name | Python variables, database columns |
| PascalCase | FirstName | Class names in many languages |
| kebab-case | first-name | URLs, HTML/CSS attributes |
| Title Case | First Name | Headings, titles |
| Sentence case | First name | Regular prose |
Why Programming Languages Care So Much
Title Case Has Real Rules
Proper title case capitalizes major words but typically lowercases short articles, conjunctions, and prepositions ("a," "the," "and," "of") unless they're the first or last word — "The Lord of the Rings," not "The Lord Of The Rings." Getting this wrong is a common, noticeable mistake in headlines and titles.
Where Kebab-Case Matters
URLs and HTML attributes conventionally use kebab-case rather than camelCase or spaces — "my-page-title" rather than "myPageTitle" or "my page title," partly because spaces and certain characters aren't safe in URLs without encoding.
Step-by-Step: Convert Text Case
- Paste in your text
- Choose the target case style
- Copy the converted result
Try It Yourself
Use our free Case Converter — camelCase, snake_case, Title Case and more
Open Case Converter →