Toggling case flips the capitalization of each letter independently: an
uppercase A becomes a lowercase a, and a lowercase z becomes an uppercase
Z. It is handy for fixing text typed with Caps Lock left on, or for quickly
creating a “reversed case” effect.
When you actually use this
A few real situations where case-toggling is exactly the right tool:
- Caps Lock was on and you typed a paragraph. Rather than retyping, paste the text here. If you wrote in all-caps when you meant sentence case, toggle gives you a starting point (all-lowercase), then you can capitalise as needed.
- Generating a “mocking” or “alternating case” aesthetic. The internet vernacular of
tHiS iS mOcKiNg TeXtis produced by toggling a string that is already partially mixed-case. Start with your sentence in normal case, toggle once, manually adjust a few letters — you have your effect. - Testing a UI’s case-handling. If you are building a component that applies
text-transform: uppercaseorlowercasevia CSS, but want to verify the underlying stored string is unchanged, toggle the input and verify the display flips correctly. - Checking a case-sensitive system. Toggling a known string and verifying it is treated differently by a system (search index, login, API) confirms that the system is correctly case-sensitive.
- Creative typography. Some editorial and graphic design treatments deliberately invert expected capitalisation for stylistic emphasis.
How it works
The tool walks through your text one character at a time. For each character it compares the character to its own uppercase and lowercase forms:
lower = char.toLowerCase()
upper = char.toUpperCase()
if lower === upper -> not a letter, keep as-is
else if char === lower -> output the uppercase form
else -> output the lowercase form
Because the decision is per-character, mixed-case input keeps its pattern but with every case inverted. Non-letters fall into the first branch and are copied straight through. This means numbers, punctuation, spaces, and emoji all pass through unaltered — only alphabetic characters are touched.
Examples
| Input | Output | Notes |
|---|---|---|
Hello World | hELLO wORLD | Standard sentence → toggled |
iPhone 12 Pro | Iphone 12 pRO | Number and space unchanged |
ALL CAPS TEXT | all caps text | Typed-with-Caps-Lock rescue |
already lowercase | ALREADY LOWERCASE | Upgrades to uppercase |
Résumé | rÉSUMÉ | Accented letters toggled correctly |
The operation is fully reversible — passing the output back through the tool returns the original text, because toggling twice is identity.
How it differs from other case converters
Most “convert to uppercase” or “convert to lowercase” tools force a single case onto all letters — useful for normalising data. This tool does something different: it inverts each letter’s current case individually, which preserves the relative pattern while flipping every character. A sentence typed in all-caps with Caps Lock on becomes all-lowercase in one pass; mixed-case text keeps its rhythm but in mirror form.