Caps Converter

Select a case, paste your text, get the result instantly.

Copied!
Characters: 0  Words: 0  Lines: 0

Understanding Text Case Styles

Text case refers to the convention used for capitalizing letters in a word, sentence, or identifier. Different fields rely on different case conventions: writers and editors use sentence case and title case for prose and headlines, while programmers rely on camelCase, PascalCase, snake_case, and kebab-case to name variables, functions, files, and URLs in a way that is both readable and compatible with the rules of a given programming language or system. This converter lets you switch any block of text between these styles instantly, without retyping or manually fixing capitalization letter by letter.

One thing worth understanding is that case conversion is not always reversible without losing information. For example, converting "iPhone Pro Max" to lowercase and back to title case will not perfectly restore the original capitalization, because the converter cannot know that "iPhone" intentionally has a lowercase first letter. Keep an original copy of important text before applying destructive transforms like UPPERCASE or lowercase.

Original Insight: Why Case Conventions Are More Than Style

Many people assume that choosing camelCase versus snake_case for a variable name is purely cosmetic, but in several systems the case convention is functionally meaningful. CSS class names and HTML attributes are case-sensitive in some contexts and case-insensitive in others; URL slugs are almost always lowercase with hyphens (kebab-case) because some web servers treat uppercase and lowercase paths as different resources, which can create broken links or duplicate-content SEO issues. JavaScript, Java, and C-family languages traditionally use camelCase for variables and PascalCase for classes, while Python and Ruby favor snake_case for variables and PascalCase for classes, a convention called PEP 8 in Python. Picking the wrong case style for a given context is not just a style nit. It can cause subtle bugs, broken imports, or inconsistent search engine indexing, which is why having a quick way to convert between styles is genuinely useful for developers, writers, and marketers alike.

Glossary of Key Terms

UPPERCASE
Every letter is capitalized. Commonly used for emphasis, acronyms, or constant names in code (for example, MAX_RETRIES).
Title Case
The first letter of most words is capitalized, typically used for headlines, book titles, and proper names.
Sentence case
Only the first letter of the sentence (and proper nouns) is capitalized, matching standard prose writing rules.
camelCase
The first word is lowercase and each subsequent word starts with a capital letter, with no spaces or punctuation. Common for variable and function names in JavaScript and Java.
PascalCase
Like camelCase, but the first word is also capitalized. Commonly used for class and component names.
snake_case
Words are lowercase and separated by underscores. Common in Python variable names and database column names.
kebab-case
Words are lowercase and separated by hyphens. Common in URL slugs, CSS class names, and file names.

Frequently Asked Questions

Does this tool store or upload my text?

No. All conversions happen directly in your browser using JavaScript. Your text is never sent to a server, saved, or tracked.

Why does Title Case sometimes capitalize words that should stay lowercase?

This converter capitalizes the first letter of every word for simplicity and predictability. Professional style guides (such as AP or Chicago) leave short words like "and," "the," or "of" lowercase unless they begin or end a title. You may need to manually adjust a few words for strict editorial style.

What is the difference between camelCase and PascalCase?

Both styles remove spaces and capitalize the start of each word. The only difference is the very first letter: camelCase keeps it lowercase (myVariableName), while PascalCase capitalizes it (MyClassName). Most languages use camelCase for variables and functions, and PascalCase for classes, types, and components.

Can I undo a case conversion?

Use the Swap button to move the result back into the input box and try a different mode, but be aware that uppercase, lowercase, and toggle case conversions discard the original capitalization permanently. Keep a backup of important text before converting.

Note: This tool performs simple, rule-based text transformations. It does not check grammar, spelling, or adherence to a specific style guide (such as AP, APA, or Chicago). Always proofread converted text before publishing or using it in code, especially for proper nouns, acronyms, and brand names that have non-standard capitalization.