Text Case Types Explained: Upper, Lower, Title & More

calendar_today June 14, 2026 schedule 5 MIN READ

The Eight Text Case Types You Need to Know

Text case refers to whether letters in a word are uppercase (capitals) or lowercase. Different writing contexts, coding languages, and style guides require different case conventions. Here's a complete breakdown of every common case type and when to use each.

1. UPPERCASE

Every letter is capitalized: THIS IS UPPERCASE TEXT

Used for: acronyms (NASA, FBI, HTML), strong warnings or emphasis, some logo treatments, column headers in spreadsheets. Use sparingly in running text — all caps is hard to read at length and can read as shouting in digital communication.

2. lowercase

Every letter is lowercase: this is lowercase text

Used for: informal digital communication, some modern brand names (reddit, discord, figma), URL slugs, HTML attributes, CSS class names. Many tech companies intentionally use lowercase branding for a casual, accessible feel.

3. Title Case

The first letter of each major word is capitalized: The Quick Brown Fox Jumps Over

Used for: blog post titles, book titles, movie names, news headlines, H1 and H2 headings in some style guides. The nuance: "minor words" like articles (a, an, the), coordinating conjunctions (and, but, or), and short prepositions (in, on, at) are typically not capitalized unless they're the first or last word of the title. Different style guides (Chicago, APA, AP) disagree on exactly which words to capitalize.

4. Sentence case

Only the first word and proper nouns are capitalized: The quick brown fox jumps over the lazy dog

Used for: body text, email subject lines, subheadings in product interfaces, most conversational writing. Sentence case is easier to read and feels more natural than title case for text longer than a headline.

5. camelCase

No spaces; first word lowercase, subsequent words capitalized: quickBrownFox

Used for: JavaScript and Java variable names, JSON property keys, Swift method names. camelCase (also called lowerCamelCase) is the standard for most variable naming in object-oriented programming languages. The name comes from the "humps" created by the capital letters mid-word.

6. PascalCase (UpperCamelCase)

No spaces; every word capitalized including the first: QuickBrownFox

Used for: class names in most OOP languages (JavaScript, TypeScript, C#, Java), React component names, C# method names. PascalCase is the standard convention for types and constructors. The distinction from camelCase is subtle but significant in code: const myVariable = new MyClass() — the variable is camelCase, the class is PascalCase.

7. snake_case

Words separated by underscores, all lowercase: quick_brown_fox

Used for: Python variable and function names, Ruby methods, database column names, file names in many Linux/Unix systems. Snake_case is highly readable because the underscore creates a clear visual separation between words without the mental overhead of reading capitalization changes.

8. kebab-case

Words separated by hyphens, all lowercase: quick-brown-fox

Used for: CSS class names and IDs, HTML custom attributes, URL slugs, file names in web projects, CLI flags. Kebab-case is the standard for anything that appears in a URL or CSS, since underscores in URLs can cause issues with some search engine parsers and older systems. The URL you're reading right now likely uses kebab-case slugs.

Two More You'll Encounter in Code

SCREAMING_SNAKE_CASE

All caps with underscores: QUICK_BROWN_FOX

Used for: environment variables (DATABASE_URL, API_KEY), constants in many languages (Python, C, Java), Makefile variables. The all-caps signals "this is a fixed value that doesn't change at runtime."

Train-Case (HTTP-Header-Case)

Title case with hyphens: Quick-Brown-Fox

Used for: HTTP headers (Content-Type, Accept-Encoding, X-Request-ID). You'll encounter this case when working with APIs and web server configuration.

Which Case Should You Use When?

  • Writing prose or headings: Sentence case (subheadings) or Title Case (major headings and titles)
  • JavaScript variables: camelCase
  • JavaScript/TypeScript classes and React components: PascalCase
  • Python functions and variables: snake_case
  • CSS classes and URL slugs: kebab-case
  • Environment variables and constants: SCREAMING_SNAKE_CASE

Try the Free Text Case Converter

Paste any text and instantly convert it to uppercase, lowercase, title case, sentence case, camelCase, snake_case, kebab-case, and more.

Open Case Converter →