Swap Case Converter
Invert the case of every letter — uppercase becomes lowercase, lowercase becomes uppercase. Sometimes called inverse case or iNVERSE cASE.
Hello World → hELLO wORLD
Invert the case of every letter — uppercase becomes lowercase, lowercase becomes uppercase. Sometimes called inverse case or iNVERSE cASE.
Hello World → hELLO wORLD
Swap case (also called inverse case, opposite case, or iNVERSE cASE) flips every letter's case: uppercase letters become lowercase, lowercase letters become uppercase. Numbers and punctuation pass through unchanged.
It's mostly used for visual effects, ironic captions, or as a quick way to invert text that's been pasted in with the wrong shift-key state. Python ships with str.swapcase() as a built-in for exactly this transform.
You typed a sentence with Caps Lock on by accident? Swap case is faster than retyping. tHIS WAS YOUR CAPS-LOCK PROBLEM → This was your caps-lock problem.
Some social-media bios and meme templates use inverse case for stylistic emphasis or as a softer alternative to aLtErNaTiNg cAsE.
Swap-case is a classic intro programming problem ("write a function that swaps the case of every character"). Useful for testing your implementation against a known-good output.
For QA on case-insensitive search or comparison code, run sample text through swap-case to confirm the comparison still matches the original.
Inverting the case of formal text (legal contracts, terms of service) can produce comically casual versions for satire — though obviously not for real contractual use.
Yes. "Swap case", "inverse case", "opposite case", and "iNVERSE cASE" all refer to the same transform: every letter's case flipped.
Yes — running swap case twice on the same input returns the original. swap(swap(x)) = x. (This is true for letter case but not for whitespace or accent normalisation, which the tool doesn't touch.)
For scripts that have a case distinction (Cyrillic, Greek, Latin extended), yes. Scripts without case (Arabic, Hebrew, Chinese, Japanese, Thai) pass through unchanged because there's no case to invert.
Swap case inverts whatever case each letter currently is — so it depends on the input. aLtErNaTiNg cAsE imposes a fixed pattern (lowercase, uppercase, lowercase, uppercase…) regardless of the input's existing case.