AbraCalc

Text Case Converters: Uppercase, Lowercase, Title Case, CamelCase & More

Text case refers to the capitalisation pattern applied to letters in a piece of text. Getting it right matters in every context: headlines must follow title-case style guides, code variables must conform to a naming convention, and database column names must be consistently cased to avoid runtime errors. The right converter does the job in one click — but understanding the underlying rules helps you choose the correct case for every situation.

The Main Text Case Types

Case StyleExamplePrimary Use
UPPERCASEHELLO WORLDAcronyms, emphasis, constants
lowercasehello worldURLs, email addresses, log messages
Title CaseHello WorldBook titles, article headings, proper nouns
Sentence caseHello worldNormal prose, UI labels, subtitles
camelCasehelloWorldJavaScript/Java variable and function names
PascalCaseHelloWorldClass names, React components, C# types
snake_casehello_worldPython variables, database columns, file names
kebab-casehello-worldCSS classes, URL slugs, HTML attributes
aLtErNaTiNg CaSehElLo WoRlDInformal/humour; mocking meme format

Uppercase and Lowercase

These are the simplest transformations: every letter is shifted to its capital or small-letter form. The Uppercase Converter and Lowercase Converter handle any language that has case distinctions, including accented characters (é → É). Use uppercase for abbreviations (NASA, HTML), constants in code (MAX_VALUE), and urgent signage. Use lowercase for URLs, email addresses, and casual text where capitals would feel shouted.

Title Case Rules

Title case capitalises the first letter of most words, but the rules vary by style guide:

  • AP Style: Capitalise all words except articles (a, an, the), coordinating conjunctions (and, but, or, nor, for, yet, so), and prepositions of fewer than four letters — unless they are the first or last word.
  • Chicago Style: Similar to AP but always capitalises prepositions of five or more letters (Through, About, Between).
  • APA Style: Capitalise all words of four letters or more.

The Title Case Converter applies general title case suitable for most purposes, while the Title Case for Headlines tool follows journalistic headline conventions. To capitalise only the first letter of each sentence (standard prose punctuation), use the Capitalize First Letter of Each Sentence converter.

Programming Case Conventions

camelCase starts with a lowercase letter and capitalises the first letter of each subsequent word — no separators. It is standard for variable and function names in JavaScript, Java, Swift, and many other languages. The CamelCase Converter transforms any phrase into proper camelCase.

snake_case uses underscores between words, all lowercase. It is the idiomatic style in Python (PEP 8), SQL column names, and many Linux file naming conventions. The Snake Case Converter converts text from any format.

kebab-case uses hyphens between words, all lowercase. It is the standard for CSS class names, HTML data attributes, and URL slugs. The Kebab Case Converter is especially useful when generating slugs for blog posts or product URLs.

Alternating Case

Alternating case switches between uppercase and lowercase on every character: hElLo WoRlD. It has no formal use in professional writing but is widely recognised as the "mocking SpongeBob" internet meme format. The Alternating Case Converter produces this pattern instantly.

Common Mistakes

  • Using title case for sentence-level headings in UI. App interfaces typically use sentence case for button labels and navigation items, not title case. Misapplying title case makes interfaces feel formal and inconsistent.
  • Mixing camelCase and snake_case in the same codebase. Choose one convention per language and stick to it. Most linters enforce this automatically.
  • Forgetting that kebab-case is invalid in most programming languages. Hyphens are subtraction operators in expressions, so my-variable parses as subtraction. Reserve kebab-case for CSS and URLs only.
  • Capitalising prepositions in title case when they are long. "Through", "Between", and "Without" should be capitalised in Chicago style but are sometimes left lowercase by mistake because they "feel" minor.

Frequently Asked Questions

What is the difference between title case and sentence case?

Title case capitalises the first letter of most words; sentence case capitalises only the first word of each sentence (and proper nouns). "The Quick Brown Fox" is title case; "The quick brown fox" is sentence case.

Is PascalCase the same as UpperCamelCase?

Yes — PascalCase and UpperCamelCase are two names for the same convention: every word starts with a capital letter, with no separators. It differs from camelCase only in that the very first letter is also capitalised.

Why do URLs use kebab-case instead of underscores?

Search engines have historically treated hyphens as word separators in URLs, making "hello-world" more SEO-friendly than "hello_world". Google now treats both similarly, but kebab-case remains the dominant convention.

Can I convert between cases programmatically?

Yes — most programming languages have string methods for upper/lowercase, and libraries like change-case (JavaScript) or inflection (Python) handle camelCase, snake_case, and kebab-case transformations.

Related calculators