Paste your text and click any case button to convert it instantly. The result copies to your clipboard automatically.
0 characters0 words
Select case style
Programming Cases
Advertisement
About This Tool
Case conversion is a fundamental operation in both everyday writing and software development. Whether you are formatting a headline, preparing database entries, or naming variables in code, transforming text between different letter cases is a task most people encounter regularly. This tool handles thirteen distinct case formats, from familiar writing styles like UPPERCASE and Title Case to programming conventions like camelCase and snake_case.
Title case rules are more nuanced than they appear. Different style guides disagree on which words to capitalize: AP style keeps prepositions and conjunctions of three or fewer letters lowercase, APA capitalizes words of four or more letters, the Chicago Manual of Style lowercases articles and short prepositions, and MLA follows similar but not identical rules.
A simple "capitalize every word" approach does not match any professional style guide, which is why our title case implementation specifically excludes a curated list of small words (a, an, the, and, but, or, for, nor, in, on, at, to, by) unless they appear as the first or last word.
In programming, naming conventions carry real meaning. camelCase is the standard in JavaScript and Java for variables and functions. PascalCase is used for class names in C# and TypeScript. snake_case dominates Python and Ruby. kebab-case is the norm for CSS class names and URL slugs.
SCREAMING_SNAKE_CASE (or CONSTANT_CASE) is universally used for constants across nearly all languages.
Unicode adds complexity to case conversion. The Turkish dotted/dotless I problem is a well-known example: in Turkish, lowercase "I" is "ı" (dotless), not "i", and uppercase "i" is "İ" (dotted), not "I". German presents another challenge where "ß" uppercases to "SS" (and since 2017, the capital "ẞ" also exists). These locale-specific rules mean that correct case conversion sometimes depends on knowing the language of the text.
The History of Letter Cases
The distinction between uppercase and lowercase letters has a rich history spanning over a millennium. Ancient Roman writing used only what we now call uppercase letters (majuscule). The smaller, rounder letterforms we know as lowercase (minuscule) developed in medieval European scriptoriums around the 8th century, largely driven by Charlemagne's Carolingian reform, which sought to standardize handwriting across his empire for improved legibility and faster copying of manuscripts.
The terms "uppercase" and "lowercase" themselves come from the era of movable type printing. When compositors set type by hand, they stored the capital letters in the upper compartment (case) of their type drawer and the small letters in the lower compartment. This physical arrangement, dating back to the 15th century, gave us the terminology we still use today.
In programming, case conventions emerged organically with different language communities. The C programming language popularized snake_case in the 1970s. Smalltalk introduced the camelCase convention around the same period, and Java brought it into mainstream adoption in the 1990s. PascalCase takes its name from the Pascal programming language, where it was the standard for identifiers.
The Unicode Standard, first published in 1991, formalized case mapping rules for over 100,000 characters across dozens of writing systems. However, not all scripts have the concept of letter case. Chinese, Japanese, Korean, Arabic, and Hebrew are among the many writing systems that use a single set of letterforms — the notion of "uppercase" and "lowercase" is specific to Latin, Greek, Cyrillic, Armenian, and a handful of other bicameral scripts.
How to Use
Paste or type your text in the input area. The converter works with any language and handles accented characters properly.
Click a case style button: UPPERCASE, lowercase, Title Case, Sentence case, aLtErNaTiNg, or iNVERSE to convert instantly.
Copy the converted text to your clipboard with one click. The result updates in real-time as you type or change styles.
Methodology
UPPERCASE and lowercase conversions rely on JavaScript's built-in toUpperCase() and toLowerCase() methods, which follow the Unicode Standard for case mapping across thousands of characters and scripts. These methods handle accented characters, ligatures, and special letters correctly in most locales.
Title Case implementation works by splitting text at word boundaries, then capitalizing the first letter of each word while checking against a list of small words (articles, short prepositions, coordinating conjunctions) that should remain lowercase unless they are the first or last word. This follows AP-style conventions.
Sentence case lowercases the entire string, then capitalizes the first character and any character that follows sentence-ending punctuation (period, question mark, exclamation point) plus whitespace.
camelCase and PascalCase are produced by stripping all non-alphanumeric characters, splitting at word boundaries (including existing camelCase boundaries detected via regex), lowercasing each segment, then capitalizing the first letter of each word — skipping the very first word for camelCase. snake_case and kebab-case follow a similar splitting process but join segments with underscores or hyphens respectively, all in lowercase.
One notable limitation is locale sensitivity. JavaScript's toUpperCase() uses locale-independent Unicode mappings by default. For Turkish text, where "i" should uppercase to "İ" (not "I"), the locale-aware toLocaleUpperCase('tr') would be needed — a trade-off this tool notes but does not currently implement.
Understanding Your Results
Title Case follows AP-style conventions, but it has inherent limitations. The converter cannot detect proper nouns from context — it will not know to capitalize "new york" as "New York" or "united nations" as "United Nations" because that requires natural language understanding beyond simple word-boundary rules. Always review title case output for proper nouns and geographic names.
Sentence case capitalizes only after sentence-ending punctuation (periods, question marks, exclamation points). This means proper nouns mid-sentence will remain lowercase — "i visited paris" becomes "I visited paris" rather than "I visited Paris." Manual review is recommended for text containing names, places, or acronyms.
When choosing programming case formats, matching your language's conventions matters for code readability and team consistency. Using snake_case in a JavaScript codebase or camelCase in Python will confuse collaborators and may violate linter rules. Most IDEs and linters enforce naming conventions, so converting between formats correctly is important when porting code or working across languages.
Alternating case (aLtErNaTiNg) and inverse case (iNVERSE) are primarily decorative. Alternating case originated in internet meme culture — particularly the "Mocking SpongeBob" meme — and is used to convey sarcasm or irony in informal digital communication. These formats have no practical application in professional writing or programming.
Practical Examples
Here are common case conversions demonstrated with sample text:
"hello world" — UPPERCASE: "HELLO WORLD" | Title Case: "Hello World" | camelCase: "helloWorld" | snake_case: "hello_world" | kebab-case: "hello-world"
"THE QUICK BROWN FOX" — lowercase: "the quick brown fox" | Sentence case: "The quick brown fox"
Programming naming conventions by language:
• JavaScript — camelCase: getUserName, fetchApiData
• Python — snake_case: get_user_name, fetch_api_data
• C# — PascalCase: GetUserName, FetchApiData
• CSS — kebab-case: .user-name, .api-data
• Constants — SCREAMING_SNAKE_CASE: MAX_RETRIES, API_BASE_URL
• Java packages — dot.case: com.example.app
• File paths — path/case: user/profile/settings
Each format serves a specific purpose — choosing the right case convention ensures your text meets the expectations of your audience, whether they are readers, search engines, or code compilers.
Tips for Text Case Conversion
For titles, always check your required style guide before converting. AP style keeps short prepositions (in, on, at) and conjunctions (and, but, or) lowercase, while APA capitalizes all words of four or more letters — including prepositions like "With" and "From." Chicago and MLA each have their own variations. No single title case algorithm satisfies every guide.
When converting code variable names, be aware that camelCase and PascalCase conversions are not perfectly reversible without context. Converting "XMLParser" to snake_case gives "xml_parser," but converting back yields "xmlParser" — the original acronym casing is lost. Similarly, "iOS" becomes "i_os" in snake_case and cannot round-trip back.
Use UPPERCASE sparingly in writing. In digital communication, all-caps text is widely interpreted as shouting and can feel aggressive. Reserve it for acronyms, abbreviations, and specific emphasis.
For URLs and file names, kebab-case (words-separated-by-hyphens) is generally preferred. Google recommends hyphens over underscores in URLs for better SEO, as hyphens are treated as word separators while underscores are not.
More on AmazonAs an Amazon Associate I earn from qualifying purchases.
Frequently Asked Questions
What case options are available?
13 options: UPPERCASE, lowercase, Title Case, Sentence case, aLtErNaTiNg, iNVERSE, plus 7 programming cases: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, and path/case.
Is my text private?
Yes, all text processing happens in your browser. Your text is never sent to any server or stored anywhere.
Can I convert text in real-time?
Yes! Once you select a case style, the converter automatically updates as you type or edit your text.
What is Title Case used for?
Title Case capitalizes the first letter of each word, making it perfect for headlines, book titles, article titles, and proper nouns.
What is the difference between Title Case and Sentence Case?
Title Case capitalizes the first letter of each major word (like "The Quick Brown Fox"). Sentence Case only capitalizes the first letter of each sentence and proper nouns (like "The quick brown fox").
What is alternating case used for?
Alternating case (LiKe ThIs) is primarily used for memes, sarcasm, or stylized text in social media. It alternates between uppercase and lowercase for each character, creating a distinctive visual effect.
How do I undo a conversion?
Simply paste your original text again, or use your browser's undo function (Ctrl+Z or Cmd+Z) if you haven't navigated away. Each conversion is independent, so you can try different options without losing your original.
Does case conversion work with accented characters?
Yes! The converter properly handles accented characters, umlauts, and special letters from various languages. For example, é becomes É in uppercase, and ñ becomes Ñ.
My Favorites
Drag to reorder
No favorites yet
Tap the ☆ on any tool page to bookmark it for quick access.