Case Converter
Paste your text, then click a case style below to convert it, UPPERCASE, lowercase, Title Case, camelCase and more.
About the Case Converter
Nine case styles are available at once, from a simple UPPERCASE or lowercase flip to programming-friendly formats like camelCase and snake_case for turning a plain phrase into a valid variable name. Title Case keeps small words like "a", "the" and "of" lowercase unless they open the sentence, matching typical headline style. Every conversion runs instantly against whatever's typed or pasted in, with the original left untouched in the input box so switching between case styles never means retyping the source text.
- Title Case, capitalizes each word, keeping common short words like "a", "the" and "of" lowercase unless they start the text.
- camelCase / PascalCase / snake_case / kebab-case, split the text into words and rejoin them in the programming naming style chosen.
Which naming style fits which context
The four programming-style converters aren't interchangeable, each is the standard convention in specific contexts. camelCase is the default for variable and function names in JavaScript, Java, and several other languages. PascalCase (also called UpperCamelCase) is the convention for class and component names in the same languages, TypeScript interfaces and React components both typically use it. snake_case is standard for variables and functions in Python and Ruby, and for database column and table names generally. kebab-case shows up in URL slugs and CSS class names, where an underscore or capital letter either isn't allowed or isn't idiomatic. Picking the one that matches the destination avoids code that technically works but looks obviously out of place to anyone familiar with that language's conventions, a snake_case variable in a JavaScript file, or a kebab-case one in Python, tends to stand out immediately to anyone reviewing the code.
Sentence case has one real limitation worth knowing
Sentence case lowercases the entire input first, then capitalizes only the very first letter and any letter immediately following a ., !, or ? plus whitespace. That means a word that's correctly capitalized for reasons other than starting a sentence, an acronym like "NASA," a proper noun like "London," a brand name, gets lowercased along with everything else and only recapitalized if it happens to land at a sentence boundary. This is a real limitation to know about before trusting sentence case blindly on text containing proper nouns or acronyms, a quick pass to fix specific words back afterward is often needed for text that isn't just plain, simple sentences.
Numbers and mixed input in the naming-convention converters
The word-splitting logic behind camelCase, PascalCase, snake_case, and kebab-case treats any run of letters or digits as one word and anything else, spaces, punctuation, symbols, as a separator. That means a decimal number like "Version 2.5" doesn't keep its decimal point, the period splits it into two separate word segments, "2" and "5," producing version25 in camelCase rather than something that preserves "2.5" as a single unit. Testing a specific input in the live preview before relying on the exact output is worth doing for anything with embedded numbers or mixed punctuation, since exactly how a particular string splits isn't always obvious without seeing the result.
What alternating case is actually for
aLtErNaTiNg CaSe has no real programming or editorial use, it's included purely as a novelty format, the kind of stylized text used for a sarcastic tone in a message ("spOngeBOb case" is the common informal name for the same pattern), a meme caption, or just a visually distinct way to draw attention to a short phrase. Unlike the other eight converters, this one isn't solving a naming-convention or formatting problem, it's here because people genuinely ask for it.
Frequently Asked Questions
Which case style should I use for a JavaScript variable name?
camelCase is the standard convention for variables and function names in JavaScript. PascalCase is used for class and component names instead, snake_case and kebab-case aren't idiomatic JavaScript naming conventions.
Why did sentence case lowercase an acronym like NASA?
Sentence case lowercases the entire text first, then capitalizes only the first letter of each sentence. A word capitalized for another reason, like an acronym or proper noun, gets lowercased along with everything else unless it happens to start a sentence. This is a known limitation, worth a manual fix pass afterward for text containing acronyms or proper nouns.
Does Title Case always capitalize the last word, even a small one?
This converter capitalizes the first word and any word not in its small-words list (like "a," "the," "of"), but doesn't apply the specific style-guide rule some editorial standards use of always capitalizing the last word regardless. Check the output against a specific style guide's rules if that distinction matters for the text.
How are numbers handled in camelCase or snake_case conversion?
A run of digits is treated as its own word segment. A decimal number loses its decimal point in the process, since the period is treated as a separator, so "2.5" becomes two separate segments, "2" and "5," rather than staying together. Testing a specific input in the live preview is the most reliable way to see exactly how it splits.
What is aLtErNaTiNg CaSe actually used for?
It's a novelty format with no real programming or editorial use, commonly used to convey a sarcastic tone in a message, for a meme caption, or just to make a short phrase visually stand out. It's included because people ask for it, not because it solves a formatting or naming problem the way the other eight styles do.