Convert text to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, or aLtErNaTiNg CaSe — instantly, free.
This text case converter transforms any block of text into nine common capitalization and naming styles with a single click: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, and the joke-friendly aLtErNaTiNg CaSe. It's useful for writers formatting headings, developers renaming variables between coding conventions, and anyone who needs to quickly reformat pasted text without retyping it.
UPPERCASE and lowercase simply change every letter's case. Title Case capitalizes the first letter of each word and lowercases the rest. Sentence case lowercases everything, then capitalizes the first letter of the string and the first letter after each sentence-ending punctuation mark (. ! ?). camelCase and PascalCase split the text into words (on spaces, hyphens, and underscores), then join them back together with no separator — camelCase lowercases the first word and capitalizes the rest, while PascalCase capitalizes every word including the first. snake_case and kebab-case both lowercase the text and replace word separators with an underscore or hyphen respectively. aLtErNaTiNg CaSe alternates upper and lower case letter by letter, skipping non-letter characters when deciding which case comes next.
Different contexts expect different casing: headings and titles often use Title Case, JavaScript variables typically use camelCase, Python variables and database columns typically use snake_case, and URLs and CSS classes typically use kebab-case. Converting by hand is tedious and error-prone, especially for longer text — this tool does it instantly and correctly every time.
The exact transformation logic behind each of the nine case formats this tool supports
These simply call JavaScript's built-in .toUpperCase() or .toLowerCase() on the entire string, changing every letter's case with no word-boundary logic involved.
A regular expression matches each "word" token in the text, then capitalizes its first character and lowercases the rest — applied independently to every word, including short ones.
The whole string is lowercased first. Then the converter capitalizes the first letter of the string and the first letter following any ".", "!", or "?" that's followed by whitespace, treating those as sentence boundaries.
The text is split into words on spaces, hyphens, and underscores, then rejoined with no separator. camelCase lowercases the first word and capitalizes the rest; PascalCase capitalizes every word, including the first.
Both lowercase the entire string, then replace runs of spaces and the other separator character with a single underscore (snake_case) or hyphen (kebab-case).
The converter walks through the string character by character, tracking a counter that only advances on letters. Even-count letters are lowercased and odd-count letters are uppercased; spaces and punctuation pass through unchanged and don't affect the count.
From pasting your text to copying the converted result
Enter or paste the text you want to convert into the "Your Text" box. The live word and character counts update as you type.
Click one of the nine case buttons — UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, or aLtErNaTiNg CaSe.
The converted text appears instantly in the "Result" box below — nothing to submit or wait for.
Click "Copy Result" to copy the converted text straight to your clipboard, ready to paste wherever you need it.
Click "Clear" to empty both the input and result boxes and convert a new piece of text.
Converting the same input through all nine supported case formats
Suppose you type "the quick brown fox" into the input box and click through each case button in turn.
| Case Format | Result |
|---|---|
| UPPERCASE | THE QUICK BROWN FOX |
| lowercase | the quick brown fox |
| Title Case | The Quick Brown Fox |
| Sentence case | The quick brown fox |
| camelCase | theQuickBrownFox |
| PascalCase | TheQuickBrownFox |
| snake_case | the_quick_brown_fox |
| kebab-case | the-quick-brown-fox |
| aLtErNaTiNg CaSe | tHe QuIcK bRoWn FoX |
Suppose a developer types "user account balance" to generate the same identifier in four different naming conventions.
Explanation: Because the converter splits on spaces, hyphens, and underscores before rebuilding each case format, typing your words separated by plain spaces is the most reliable way to get correct output regardless of which case button you click next — you can generate a JavaScript variable name, a Python variable name, and a URL slug from the exact same input without retyping anything.
Which case format is the professional or technical standard for different contexts
Different fields have settled on different casing conventions, and using the "expected" one signals attention to detail. Headlines, book and article titles, and navigation menu labels are conventionally set in Title Case, while body copy, form field descriptions, and error messages should almost always read in ordinary Sentence case. UPPERCASE is reserved for emphasis, warning labels, or short constants — using it for long passages reads as shouting and can trip spam filters in emails.
In software, casing is often a hard requirement rather than a stylistic choice: JavaScript, Java, and Swift conventionally name variables and functions in camelCase, while classes, types, and React components use PascalCase. Python and Ruby favor snake_case for variables and function names, which is also the standard for SQL and NoSQL database column names. kebab-case dominates URL slugs, CSS class names, and HTML/XML attribute names, since hyphens are safe and readable in a URL where underscores can be visually confused with spaces. aLtErNaTiNg CaSe has no technical use — it's purely an informal, sarcastic style seen in memes and social posts.
Where converting text case quickly and correctly actually saves time
Developers converting a variable or function name between camelCase, snake_case, and kebab-case when porting code between languages.
Writers and editors converting a working title into proper Title Case before publishing.
Students formatting an essay or report title to match a teacher's or style guide's capitalization requirement.
Social media managers converting a short phrase to UPPERCASE for a promotional or announcement post.
Content editors instantly fixing text typed with Caps Lock stuck on, without retyping it from scratch.
Backend developers formatting JSON keys, API parameters, or database columns in consistent snake_case or camelCase.
SEO writers converting a page title into a clean kebab-case URL slug.
Job seekers formatting resume headings like "Work Experience" or "Education" consistently in Title Case.
Marketers formatting campaign subject lines in Title Case or Sentence case to match brand style.
Programmers translating identifier names between languages that favor different casing standards (e.g. Python's snake_case vs Java's camelCase).
Paralegals and legal writers formatting section headings and defined terms consistently throughout a document.
Researchers standardizing the capitalization of titles in a bibliography or reference list.
Front-end developers formatting class names and data attributes in consistent kebab-case.
Anyone converting a phrase into aLtErNaTiNg CaSe for a mocking or humorous social media reply.
What this text case converter does well, and where automated conversion has boundaries
All nine supported case formats, with an example and where each is typically used
| Case Format | Example | Typical Use Context |
|---|---|---|
| UPPERCASE | THE QUICK BROWN FOX | Emphasis, warning labels, constants, acronyms |
| lowercase | the quick brown fox | Casual text, some URL paths, email addresses |
| Title Case | The Quick Brown Fox | Headlines, article and book titles, menu labels |
| Sentence case | The quick brown fox | Body text, standard prose, form labels and messages |
| camelCase | theQuickBrownFox | JavaScript, Java, and Swift variable/function names |
| PascalCase | TheQuickBrownFox | Class names, types, and React/Vue component names |
| snake_case | the_quick_brown_fox | Python and Ruby variables, SQL database column names |
| kebab-case | the-quick-brown-fox | URL slugs, CSS class names, HTML/XML attributes |
| aLtErNaTiNg CaSe | tHe QuIcK bRoWn FoX | Informal, sarcastic social media text |
Summary: This text case converter instantly transforms text into nine common formats — from writing-focused UPPERCASE, lowercase, Title Case, and Sentence case, to code-focused camelCase, PascalCase, snake_case, and kebab-case, plus the informal aLtErNaTiNg CaSe — entirely in your browser, with no signup required. Pair it with the Word & Character Counter for length checks or the Roman Numeral Converter for other text/number formatting needs.
Common questions about text case conversion
Real style guides and programming references that complement this calculator
Explore other text & number utilities