Title Case, camelCase, snake_case: A Quick Reference

Different fields settled on different case conventions for different reasons. Here's a quick reference so you always use the right one.

For Writing

  • Title Case: Major Words Are Capitalized — used for headlines and titles. Example: "The Truth About BMI"
  • Sentence case: Only the first word is capitalized — standard for body text and most modern headlines online
  • UPPERCASE: reserved for emphasis or acronyms; using it for full sentences reads as shouting

For Coding

  • camelCase: firstWordLowercaseRestCapitalized — the convention in JavaScript and Java for variable and function names
  • PascalCase: EveryWordCapitalized — typically used for class and component names
  • snake_case: words_separated_by_underscores — the standard in Python and most database column names
  • kebab-case: words-separated-by-hyphens — used in URLs and CSS class names (hyphens aren't valid in most variable names, which is why this style is reserved for text rather than code identifiers)

Why Consistency Matters

Mixing conventions in the same codebase or document isn't just a style nitpick — in code, it can cause bugs, since userName and username are different variables to a computer even though they look almost identical to a human. In writing, inconsistent capitalization across headings looks unpolished even if no single instance is "wrong."

Convert Instantly

Switching a block of text between these styles by hand is slow and error-prone. Our Case Converter handles UPPERCASE, lowercase, Title Case, camelCase, snake_case, and more in one click.