The Complete Guide to Text Case Conversion
A comprehensive reference for writers, developers, and content creators.
Text case conversion is one of those everyday tasks that seems trivial until you realize how many distinct formats exist and how often you need to switch between them. Whether you are writing an article headline, naming a variable in your codebase, or formatting a URL slug for SEO, choosing the right case format matters for readability, consistency, and correctness.
This guide covers every major case format in use today across writing, software development, and content creation. For each format we explain what it looks like, when to use it, and where you will encounter it in the real world.
Writing and Content Formats
UPPER CASE
Upper case converts every letter to its capital form. It is the format you reach for when you need maximum emphasis or visibility. Common uses include acronyms (NASA, HTML, API), legal document headings, warning labels, and banner text. In digital communication, writing in all caps is often perceived as shouting, so use it deliberately rather than as a default.
Example: THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG
lower case
Lower case converts every letter to its small form. It is useful for normalizing text, especially when comparing strings programmatically or formatting email addresses. In branding and design, all-lowercase text conveys a modern, casual tone — many tech companies use lowercase in their logos and product names.
Example: the quick brown fox jumps over the lazy dog
Title Case
Title case capitalizes the first letter of each major word while leaving small words like “the,” “and,” “of,” and “in” in lowercase (unless they are the first word). This is the standard format for headlines, article titles, book titles, and section headings. Different style guides (AP, APA, Chicago, MLA) have slightly different rules about which words to capitalize, but the general principle is consistent.
Example: The Quick Brown Fox Jumps Over the Lazy Dog
Sentence case
Sentence case capitalizes only the first word of each sentence and any proper nouns. It reads naturally because it mirrors how we write ordinary prose. Sentence case is the default for body text, email subject lines in many organizations, and UI labels in modern design systems. Google’s Material Design guidelines, for example, recommend sentence case for buttons and menu items.
Example: The quick brown fox jumps over the lazy dog
Programming and Developer Formats
camelCase
camelCase removes all spaces and capitalizes the first letter of each word except the first. The resulting “humps” in the middle of the string give this format its name. It is the default naming convention for variables and functions in JavaScript, TypeScript, Java, Swift, and many other C-family languages.
Example: theQuickBrownFox
PascalCase
PascalCase is like camelCase but with the first letter also capitalized. It is the standard for class names in most object-oriented languages, React component names, C# methods and properties, and TypeScript interfaces and type aliases. Some style guides call this “UpperCamelCase” to distinguish it from regular (lower) camelCase.
Example: TheQuickBrownFox
snake_case
snake_case replaces spaces with underscores and converts everything to lowercase. It is the dominant convention in Python (PEP 8), Ruby, Rust, and SQL. Database column names are almost universally snake_case. The underscores provide clear word separation, making compound names highly readable even at a glance.
Example: the_quick_brown_fox
SCREAMING_SNAKE_CASE
SCREAMING_SNAKE_CASE combines snake_case formatting with all-uppercase letters. It is the universal convention for constants and environment variables across virtually every programming language. When you see MAX_RETRY_COUNT or DATABASE_URL in a codebase, the format itself signals that the value should not be changed at runtime.
Example: THE_QUICK_BROWN_FOX
kebab-case
kebab-case replaces spaces with hyphens and converts everything to lowercase. It is the standard for URL slugs, CSS class names, HTML custom attributes, and command-line flags. The name comes from the visual resemblance of the hyphenated words to items on a kebab skewer. kebab-case is arguably the most web-native naming convention.
Example: the-quick-brown-fox
Specialized Formats
TRAIN-CASE
TRAIN-CASE is like kebab-case but with all uppercase letters. It is used in certain HTTP headers (before HTTP/2 normalized lowercase headers), some configuration files, and the occasional CLI tool. It is less common than other formats but worth knowing when you encounter it in legacy systems.
Example: THE-QUICK-BROWN-FOX
dot.case
dot.case separates words with periods. You see it in Java package names (com.example.myapp), file extensions, property keys in configuration files, and some object path notations. It is a niche format but essential in the ecosystems where it appears.
Example: the.quick.brown.fox
path/case
path/case separates words with forward slashes, mimicking a file system path. It is useful for generating URL path segments, breadcrumb trails, and hierarchical categorization strings. While not a traditional “naming convention” in the programming sense, it is a practical transformation for content management and routing.
Example: the/quick/brown/fox
aLtErNaTiNg CaSe
Alternating case toggles between lowercase and uppercase for each letter. It rose to prominence as “mocking SpongeBob” text and is widely used in memes and social media for sarcastic or humorous effect. It has no technical application but is a popular cultural text transformation.
Example: tHe QuIcK bRoWn FoX
iNVERSE cASE
Inverse case swaps the case of every character — uppercase letters become lowercase and vice versa. It is useful for fixing text that was accidentally typed with Caps Lock on, or for creative styling in design work.
Example: tHE qUICK bROWN fOX (from “The Quick Brown Fox”)
Choosing the Right Format
The right case format depends on your context. In writing, follow your style guide — AP, APA, and Chicago each have specific rules for headlines. In code, follow the conventions of your language: camelCase for JavaScript, snake_case for Python, PascalCase for classes. For URLs, use kebab-case because hyphens are treated as word separators by search engines while underscores are not.
If you need to convert between any of these formats, our free case converter tool handles all 14 formats instantly in your browser with zero data sent to any server.