Skip to content

Capital Case Converter

Capitalize the first letter of every word, or convert text to UPPERCASE, lowercase, sentence case, camelCase, snake_case and other naming conventions as you type.

What is Capital Case?

Capital case, also called start case, capitalizes the first letter of every word and lowercases the rest: "the lord of the rings" becomes "The Lord Of The Rings". It applies one rule to every word, which makes it predictable. That's why it's common for button labels, product names and spreadsheet headers.

This converter handles a few cases that a simple "capitalize each word" rule gets wrong:

  • Acronyms stay in capitals. "NASA launches a probe" becomes "NASA Launches A Probe", not "Nasa". If your whole input is in capitals, it's treated as shouting and converted normally.
  • Apostrophes don't start new words. "don't stop" becomes "Don't Stop" and dont_stop, not don_t_stop.
  • Accented letters work. "élan vital" becomes "Élan Vital", and "café menu" becomes café_menu rather than losing the é.
  • Numbers aren't capitalized. "2nd place" stays "2nd Place", not "2Nd Place".

For the code naming conventions (camelCase, snake_case and so on), the tool first splits your text into words on spaces, punctuation and capital-letter boundaries, so pasting XMLHttpRequest gives you xml_http_request. It then rejoins those words using each convention's rules.

Capital Case vs Title Case vs Sentence Case

Capital case and title case are often confused. Capital case capitalizes every word. Title case follows a style guide that keeps short "minor" words lowercase, and the style guides disagree on which words count as minor. Here's the same headline under each rule:

The phrase "a walk through the park without fear" in capital case, title case and sentence case
StyleRuleResult
Capital caseCapitalize the first letter of every wordA Walk Through The Park Without Fear
Title case (AP, APA)Capitalize major words and any word of four or more letters; lowercase short articles, conjunctions and prepositionsA Walk Through the Park Without Fear
Title case (Chicago, MLA)Lowercase articles, prepositions and coordinating conjunctions regardless of lengthA Walk through the Park without Fear
Sentence caseCapitalize only the first word and proper nounsA walk through the park without fear

"Through" and "without" are prepositions of four or more letters, so AP and APA capitalize them while Chicago and MLA don't. This tool produces capital case and sentence case. For a published headline, check which style guide your publication follows.

Every Case, Side by Side

The same two phrases run through all nine conventions, with where each one is typically used.

Two example phrases in nine letter-case conventions
Convention"dark mode toggle""annual revenue report 2025"Typical use
Capital CaseDark Mode ToggleAnnual Revenue Report 2025Headings, button labels, names
UPPERCASEDARK MODE TOGGLEANNUAL REVENUE REPORT 2025Acronyms, warnings, emphasis
lowercasedark mode toggleannual revenue report 2025Tags, email addresses, normalizing input
Sentence caseDark mode toggleAnnual revenue report 2025Body text, UI messages, many style guides
camelCasedarkModeToggleannualRevenueReport2025JavaScript and Java variables and functions
PascalCaseDarkModeToggleAnnualRevenueReport2025Classes, types, React components
snake_casedark_mode_toggleannual_revenue_report_2025Python, Ruby, SQL column names
kebab-casedark-mode-toggleannual-revenue-report-2025URLs, CSS classes, file names
CONSTANT_CASEDARK_MODE_TOGGLEANNUAL_REVENUE_REPORT_2025Constants and environment variables

Notice the number in the second phrase stays attached to the word before it rather than moving to the end. It becomes its own segment in snake_case and kebab-case (report_2025, report-2025), and it's absorbed straight into the preceding word in camelCase and PascalCase (Report2025).

Practical Usage Examples

Spreadsheet Column Headers

Cleaning up headers exported in mixed or all-lowercase text:

Input:"customer id, order date, SKU"
Capital Case:Customer Id, Order Date, SKU

JavaScript Variables

Converting a descriptive phrase to proper JavaScript naming:

Input:"user login status"
camelCase:userLoginStatus
Usage:const userLoginStatus = true;

Python Functions

Converting to Python's preferred naming convention:

Input:"Calculate Total Price"
snake_case:calculate_total_price
Usage:def calculate_total_price():

URL Slugs

Creating readable URLs:

Input:"How To Build A Website"
kebab-case:how-to-build-a-website
URL:example.com/blog/how-to-build-a-website

Frequently Asked Questions

Is capital case the same as title case?

No. Capital case capitalizes every word, including 'a', 'of' and 'the'. Title case follows a style guide (AP, APA, Chicago or MLA) that keeps minor words like articles and short prepositions lowercase unless they start the title. See the comparison table above.

Why did my acronym stay in capitals?

Words that are already entirely in capitals, such as NASA, HTML or SKU, are treated as acronyms and left alone. If your whole input is in capitals, the tool assumes it's shouted text and converts every word normally.

Which case should I use for JavaScript?

Use camelCase for variables and functions (myVariable, getUserData), PascalCase for classes and components (MyComponent, UserModel), and CONSTANT_CASE for constants (MAX_SIZE, API_KEY).

What's the difference between camelCase and PascalCase?

camelCase starts with a lowercase letter (myVariable), while PascalCase starts with an uppercase letter (MyClass). PascalCase is also called UpperCamelCase.

Why use snake_case in Python?

Python's style guide, PEP 8, recommends lowercase words separated by underscores for function and variable names, and CapWords (PascalCase) for class names.

Should URLs use hyphens or underscores?

Hyphens. Google's URL guidelines recommend hyphens rather than underscores to separate words, so kebab-case is the usual choice for slugs.

How should acronyms be written in camelCase?

Style guides disagree. Google's Java and JavaScript guides treat acronyms as ordinary words (XmlHttpRequest, userId), while .NET keeps two-letter acronyms in capitals (IOStream). The browser's own XMLHttpRequest API keeps 'XML' in capitals. Pick one rule and apply it consistently in a codebase.

Should database columns use snake_case?

Usually, yes. Unquoted SQL identifiers are case-insensitive in most databases, and PostgreSQL folds them to lowercase, so camelCase names lose their humps unless you quote them every time. Hyphens aren't allowed in unquoted names either, which leaves snake_case (user_id, created_at) as the readable option.

How do I handle numbers in case conversions?

Numbers stay where they are. When a number is separated by a space it becomes its own word: 'user 2 profile' becomes user2Profile in camelCase and user_2_profile in snake_case. Most programming languages don't allow an identifier to start with a digit, so avoid leading numbers even though this tool won't stop you.

Sources