Toggle Upper/Lowercase

Swap the case of every letter — upper becomes lower, lower upper

Inverts the case of every alphabetic character in your text so uppercase letters become lowercase and lowercase letters become uppercase. Digits and punctuation stay untouched. Runs entirely in your browser. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

What happens to numbers and punctuation?

Only alphabetic characters have a case to swap. Digits, spaces, symbols, and punctuation pass through completely unchanged so the structure of your text is preserved.

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 TeXt is 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: uppercase or lowercase via 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

InputOutputNotes
Hello WorldhELLO wORLDStandard sentence → toggled
iPhone 12 ProIphone 12 pRONumber and space unchanged
ALL CAPS TEXTall caps textTyped-with-Caps-Lock rescue
already lowercaseALREADY LOWERCASEUpgrades 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.