Last updated
Title Case Converter Examples
The Title Case Converter transforms text to title case according to AP, Chicago, APA, or MLA style guide rules. Below are practical examples showing the differences between styles and common edge cases.
Style Guide Comparison
// Input: "the quick brown fox jumps over the lazy dog"
// AP Style (capitalize prepositions 4+ letters):
The Quick Brown Fox Jumps Over the Lazy Dog
// Chicago Style (capitalize prepositions 5+ letters):
The Quick Brown Fox Jumps Over the Lazy Dog
// APA Style (capitalize words 4+ letters):
The Quick Brown Fox Jumps Over the Lazy Dog
// MLA Style (lowercase all prepositions and conjunctions):
The Quick Brown Fox Jumps over the Lazy Dog
// Sentence case (only first word + proper nouns):
The quick brown fox jumps over the lazy dog
Articles, Prepositions, and Conjunctions
// Words that are typically lowercase (not first/last word):
// Articles: a, an, the
// Conjunctions: and, but, or, nor, for, yet, so
// Short preps: at, by, in, of, on, to, up, as
// Examples:
"a tale of two cities"
→ AP/Chicago: A Tale of Two Cities
→ MLA: A Tale of Two Cities
"war and peace"
→ All styles: War and Peace
"the lord of the rings"
→ All styles: The Lord of the Rings
"pride and prejudice"
→ All styles: Pride and Prejudice
AP Style Examples
// AP: capitalize prepositions of 4+ letters (with, from, into, over, etc.)
"getting started with react"
→ Getting Started With React
"tips for building better apis"
→ Tips for Building Better APIs
"introduction to machine learning"
→ Introduction to Machine Learning
"how to deploy from github to aws"
→ How to Deploy From GitHub to AWS
"working with databases in node.js"
→ Working With Databases in Node.js
Chicago Style Examples
// Chicago: capitalize prepositions of 5+ letters (between, through, without)
"the art of war"
→ The Art of War
"between the world and me"
→ Between the World and Me
"through the looking glass"
→ Through the Looking Glass
"without a trace"
→ Without a Trace
"notes from underground"
→ Notes from Underground
Blog Post and Article Titles
// Input titles → AP Title Case output:
"10 tips for better javascript code"
→ 10 Tips for Better JavaScript Code
"how to build a rest api with node.js and express"
→ How to Build a REST API With Node.js and Express
"getting started with docker and kubernetes"
→ Getting Started With Docker and Kubernetes
"the complete guide to css grid layout"
→ The Complete Guide to CSS Grid Layout
"why typescript is better than javascript"
→ Why TypeScript Is Better Than JavaScript
Hyphenated Words
// Both parts of a hyphenated word are capitalized if they would be independently:
"self-aware systems" → Self-Aware Systems
"well-known algorithms" → Well-Known Algorithms
"state-of-the-art design" → State-of-the-Art Design
"e-commerce platform" → E-Commerce Platform
"full-stack developer" → Full-Stack Developer
"open-source software" → Open-Source Software
"real-time processing" → Real-Time Processing
Acronyms and Brand Names
// Acronyms stay in ALL CAPS:
"html css and javascript" → HTML, CSS, and JavaScript
"rest api design patterns" → REST API Design Patterns
"sql vs nosql databases" → SQL vs NoSQL Databases
"aws lambda functions" → AWS Lambda Functions
"nasa space exploration" → NASA Space Exploration
// Brand names with special capitalization:
"iphone development guide" → iPhone Development Guide
"ebay seller tips" → eBay Seller Tips
"youtube seo strategies" → YouTube SEO Strategies
"github actions tutorial" → GitHub Actions Tutorial
"linkedin profile tips" → LinkedIn Profile Tips
First and Last Word Always Capitalized
// The first and last word are ALWAYS capitalized regardless of word type:
"a" → A
"the end" → The End
"in and out" → In and Out
"up and at them" → Up and at Them
"from here to there" → From Here to There
"to be or not to be" → To Be or Not to Be
Batch Title Conversion
// Input (multiple titles, one per line):
the art of programming
introduction to algorithms
clean code: a handbook of agile software craftsmanship
design patterns: elements of reusable object-oriented software
the pragmatic programmer
// AP Title Case output:
The Art of Programming
Introduction to Algorithms
Clean Code: A Handbook of Agile Software Craftsmanship
Design Patterns: Elements of Reusable Object-Oriented Software
The Pragmatic Programmer
After a Colon
// The first word after a colon is capitalized in most styles:
"javascript: the good parts"
→ JavaScript: The Good Parts
"react: up and running"
→ React: Up and Running
"python: a comprehensive guide"
→ Python: A Comprehensive Guide
JavaScript Implementation
// Simple title case (capitalize all words)
const titleCase = (str) =>
str.replace(/\w\S*/g, word =>
word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()
);
// AP-style title case (simplified)
const apTitleCase = (str) => {
const lowercase = new Set(['a','an','the','and','but','or','nor',
'for','yet','so','at','by','in','of','on','to','up','as']);
return str.split(' ').map((word, i, arr) => {
if (i === 0 || i === arr.length - 1) return capitalize(word);
return lowercase.has(word.toLowerCase()) ? word.toLowerCase() : capitalize(word);
}).join(' ');
};
const capitalize = (word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase();
Style Guide Quick Reference
- AP: capitalize prepositions 4+ letters (with, from, into, over, upon)
- Chicago: capitalize prepositions 5+ letters (between, through, without)
- APA: capitalize words 4+ letters (including prepositions)
- MLA: lowercase all prepositions and coordinating conjunctions
- All styles: always capitalize first word, last word, and proper nouns
- All styles: always capitalize both parts of hyphenated major words
Enter your text in the Title Case Converter, choose your style guide, and get correctly capitalized titles instantly.