🔤 Writing & Coding Guide

Case Converter Guide: UPPERCASE, lowercase, Title Case, camelCase & More (2026)

📅 June 2026⏱ 8 min read✍️ ToolLoom Editorial

Text case is one of those details that separates polished writing and clean code from sloppy work. Using UPPERCASE in a blog title or camelCase where snake_case belongs can undermine your credibility — whether you're a developer, content writer, or student. This guide covers every major text case type, when to use each, and the rules that govern them in writing, SEO, coding, and design.

📋 In This Article
  1. All text case types — at a glance
  2. Title Case — rules & common mistakes
  3. Sentence case — the UI standard
  4. camelCase, PascalCase, snake_case & kebab-case
  5. Text case in SEO & content writing
  6. Which case for which situation — quick reference
  7. 5 common case mistakes writers and developers make
  8. Frequently asked questions

All Text Case Types — At a Glance

There are more text cases than most people realise. Here is every major one with an example using the same phrase — "the quick brown fox":

UPPERCASE
THE QUICK BROWN FOX
Acronyms, constants in code, strong emphasis, legal headings
lowercase
the quick brown fox
URLs, filenames, CSS class names, informal digital communication
Title Case
The Quick Brown Fox
Blog titles, article headlines, book & movie names, product names
Sentence case
The quick brown fox
UI buttons, form labels, subheadings, body text, Google style
camelCase
theQuickBrownFox
JavaScript variables, Java methods, JSON keys, Dart variables
PascalCase
TheQuickBrownFox
Class names, React components, C# methods, TypeScript interfaces
snake_case
the_quick_brown_fox
Python variables & functions, database columns, Ruby, file names
kebab-case
the-quick-brown-fox
URL slugs, CSS classes, HTML file names, CLI flags
SCREAMING_SNAKE_CASE
THE_QUICK_BROWN_FOX
Constants in Python, environment variables, macros in C/C++

Title Case — Rules & Common Mistakes

Title case is more nuanced than simply capitalising every word. Different style guides (AP, Chicago, APA, MLA) have slightly different rules — but the core principles are consistent:

💡

The universal Title Case rule: Capitalise all "major" words — nouns, verbs, adjectives, adverbs, and pronouns. Leave "minor" words lowercase — articles (a, an, the), coordinating conjunctions (and, but, or, nor, for, so, yet), and short prepositions (in, on, at, to, by, of, up) — UNLESS they are the first or last word of the title.

Word TypeTitle Case RuleExamples
NounsAlways capitaliseIndia, Calculator, Income, Tax
VerbsAlways capitaliseCalculate, Build, Is, Are, Was
Adjectives & AdverbsAlways capitaliseFree, Better, Quickly, Best
PronounsAlways capitaliseYou, Your, It, They, We
Articles (a, an, the)Lowercase (unless first/last word)"A Guide to the Best Tools"
Short prepositions (in, on, at, of…)Lowercase (unless first/last word)"How to Save on Income Tax"
Coordinating conjunctions (and, but, or…)Lowercase (unless first/last word)"Buying and Selling in India"

Common Title Case mistakes

Sentence Case — The UI Standard

Sentence case capitalises only the first word of the sentence and any proper nouns. It reads exactly like a normal sentence — and it is increasingly the standard in modern digital product design.

Google's Material Design guidelines, Apple's Human Interface Guidelines, and Microsoft's Fluent Design system all recommend sentence case for UI elements — buttons, labels, menu items, and error messages. The reason: sentence case is easier to scan and feels less formal, which reduces cognitive load in interfaces.

📱
UI & App Design
Buttons: "Save changes" not "Save Changes". Labels: "Email address" not "Email Address". Google, Apple, Microsoft all use sentence case.
📧
Email Subject Lines
Many modern email marketers prefer sentence case for a less promotional feel: "Your invoice is ready" vs "Your Invoice Is Ready".
📝
Subheadings in Articles
Within body text, subheadings (H3, H4) often use sentence case for a calmer, less hierarchical feel than all-title-case headings.
💬
Social Media Captions
Instagram and LinkedIn captions read more naturally in sentence case — title case can feel stiff and overly formal in casual contexts.

camelCase, PascalCase, snake_case & kebab-case in Programming

In code, the choice of naming convention is not aesthetic — it is often enforced by language style guides and linters. Using the wrong case in code causes readability issues and fails code reviews.

Case TypeLanguage / ContextExampleStandard Guide
camelCaseJavaScript variables & functionsgetUserById()Airbnb / Google JS Style
camelCaseJava variables & methodscalculateEmi()Oracle Java Conventions
camelCaseDart / Flutter variablestotalAmountDart Style Guide
PascalCaseReact componentsEmiCalculatorReact Official Docs
PascalCasePython classesUserProfilePEP 8
PascalCaseC# all methods & classesCalculateTax()Microsoft .NET Guide
snake_casePython variables & functionstotal_tax_amountPEP 8
snake_caseDatabase column namesuser_id, created_atSQL conventions
kebab-caseCSS class names.nav-bar, .hero-sectionBEM / general CSS
kebab-caseURL slugs & HTML filenamesemi-calculator.htmlW3C / SEO best practice
SCREAMING_SNAKEConstants in Python & JSMAX_RETRY_COUNTPEP 8 / JS conventions
SCREAMING_SNAKEEnvironment variablesDATABASE_URL12-Factor App standard
⚠️

Mixing conventions is a code smell. If a codebase uses getUserData in one file and get_user_data in another, it signals inconsistency. Most teams enforce conventions via linters (ESLint for JS, pylint for Python, dartfmt for Dart) — check your project's linting config before naming new variables.

Text Case in SEO & Content Writing

Text case choices affect not just readability but SEO performance, CTR from search results, and brand perception.

URL Slugs — Always kebab-case, always lowercase

Google treats URLs as case-sensitive — toolloom.in/EMI-Calculator and toolloom.in/emi-calculator are technically different URLs. Lowercase kebab-case is the universal standard: readable, safe, and consistent. Never use spaces or underscores in URLs — spaces encode as %20 and underscores make Google treat the words as one unit.

Meta Titles & Blog Titles

Title case performs slightly better for blog post titles in search results — it signals a polished, intentional headline. The ToolLoom convention: Title Case for H1 and meta title, sentence case for H2s and below. This balances authority (title case headline) with readability (sentence case subheadings).

💡

Indian content writing tip: When writing for Indian audiences, avoid ALL CAPS headings — they read as aggressive in Indian digital communication norms. Title case or sentence case headings are warmer and more trustworthy for finance, health, and educational content.

Which Case for Which Situation — Quick Reference

SituationRecommended CaseExample
Blog / article H1 titleTitle CaseHow to Calculate Your Income Tax in India
H2 and H3 subheadingsSentence caseWhy your credit score matters
UI button labelsSentence caseSave changes · Get started · Learn more
URL slugskebab-case/tools/emi-calculator
JavaScript variablecamelCasetotalLoanAmount
Python variable / functionsnake_casetotal_loan_amount
React / class namePascalCaseEmiCalculator
CSS class namekebab-case.nav-bar, .hero-section
Constant / env variableSCREAMING_SNAKEMAX_LOAN_AMOUNT, API_KEY
Acronym within sentenceUPPERCASEGST, EMI, UPSC, NPS, CIBIL
Email subject lineSentence case or Title CaseYour invoice is ready · How to Reduce Your EMI
Product / brand nameTitle Case or PascalCaseToolLoom, SBI YONO, PhonePe

🔤 Convert Text Case Instantly — Free

ToolLoom's Case Converter handles UPPERCASE, lowercase, Title Case, sentence case, camelCase, PascalCase, snake_case, kebab-case and more — paste your text, pick your format, done.

Open Case Converter →

5 Common Case Mistakes Writers and Developers Make

MistakeWhy It's WrongFix
Capitalising every word in subheadingsOver-formatted; Google style guides specifically recommend sentence case for subheadings in contentUse sentence case for H2, H3: "How to use the calculator" not "How To Use The Calculator"
Using underscores in URLsGoogle treats underscored words as a single compound word — "emi_calculator" = "emicalculator" in indexAlways use hyphens in URLs: /emi-calculator not /emi_calculator
ALL CAPS for long text passagesALL CAPS is 10–20% slower to read than mixed case; perceived as shouting in digital communicationReserve CAPS for acronyms, constants, and critical single-word warnings only
Using Title Case for UI button labels"Save Changes", "Get Started" feel corporate and stiff; Google, Apple, and Material Design all mandate sentence caseUse sentence case: "Save changes", "Get started", "Try it free"
Mixing camelCase and snake_case in one codebaseInconsistency signals poor code hygiene; fails linting checks; confuses team membersAgree on one convention per language at project start; enforce with a linter

Frequently Asked Questions

Title Case capitalises the first letter of major words — nouns, verbs, adjectives, and adverbs — while leaving minor words (articles, conjunctions, prepositions under 4 letters) lowercase unless they are the first or last word. Use Title Case for: blog post titles, article headlines, book titles, movie names, product names, and email subject lines.
camelCase starts with a lowercase letter and capitalises each subsequent word — example: myVariableName, getUserData, calculateEmi. PascalCase (also called UpperCamelCase) starts with an uppercase letter — example: MyVariableName, GetUserData, CalculateEmi. In programming: camelCase is used for variables and functions in JavaScript, Java, and Dart. PascalCase is used for class names, component names in React, and constructor functions.
snake_case uses lowercase letters with words separated by underscores. It is the standard naming convention in Python (PEP 8 style guide) for variables, functions, and file names. It is also used in database column names, URL slugs in some frameworks, and Ruby on Rails conventions. Snake case is highly readable because word boundaries are clear even without capitalisation.
Sentence case capitalises only the first letter of the first word and any proper nouns — exactly like a normal sentence. Title case capitalises the first letter of all major words. Sentence case is preferred for: UI button labels, form field labels, error messages, subheadings in long articles, and most Google and Apple UI guidelines.
UPPERCASE is appropriate for: acronyms (GST, EMI, UPSC, NPS), keyboard shortcut labels (CTRL+C), legal document section headings, strong warnings, and constant variable names in programming (MAX_VALUE, API_KEY). Avoid using ALL CAPS for long passages — it is harder to read and can come across as shouting in digital communication.
kebab-case uses lowercase letters with words separated by hyphens. It is the standard for: URL slugs (toolloom.in/tools/emi-calculator), CSS class names (.nav-bar, .hero-section), HTML file names (age-calculator.html), and some command-line tools. Kebab-case is URL-safe, human-readable, and SEO-friendly — making it the preferred choice for web URLs and file naming.

More from ToolLoom

About ToolLoom

ToolLoom builds free writing, coding, and financial tools for Indian students, professionals, and creators. Found an error or want a new case format added? Email us at contact@toolloom.in