✍️ TextWonder 📄 PDFWonder 📁 DocWonder 🖼️ ImageWonder 🛠️ DevWonder 🎓 StudentWonder 🧮 CalcWonder 🩺 HealthWonder 🎨 ColorWonder 💾 DataWonder 📐 UnitWonder
TextWonder

Invert Text Case Online (Swap Case)

Swap uppercase to lowercase and lowercase to uppercase in every letter.

Example: "Hello World" → "hELLO wORLD"

What is Invert Text Case?

Flips the case of every alphabetic character: uppercase becomes lowercase and lowercase becomes uppercase. Numbers, spaces, and symbols are unaffected. Also known as "swap case" or "toggle case".

Common Use Cases

Inverting text for visual effects, fixing accidentally CAPS-LOCKED text, creative social media styling, testing case-insensitive parsers, and playing around with text aesthetics.

How It Works

Iterates over each character and applies toUpperCase() on lowercase letters and toLowerCase() on uppercase letters using a simple ternary or character code comparison.

Frequently Asked Questions

What is the difference between invert case and alternating case?

Invert case flips the existing case of each letter (a→A, B→b). Alternating case applies a strict pattern regardless of the original case.

Does it handle Unicode letters?

Yes — it handles all Unicode letters that have case variants.

Related Tools