Swap Case Converter

Invert the case of every letter — uppercase becomes lowercase, lowercase becomes uppercase. Sometimes called inverse case or iNVERSE cASE.

Example: Hello WorldhELLO 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.

Use cases

Fixing accidental Caps Lock typing

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.

Inverse-case visual effects

Some social-media bios and meme templates use inverse case for stylistic emphasis or as a softer alternative to aLtErNaTiNg cAsE.

Programming exercises

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.

Generating test fixtures

For QA on case-insensitive search or comparison code, run sample text through swap-case to confirm the comparison still matches the original.

Trolling formal text

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.

Frequently asked questions

Is swap case the same as inverse case?

Yes. "Swap case", "inverse case", "opposite case", and "iNVERSE cASE" all refer to the same transform: every letter's case flipped.

Is swap case reversible?

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.)

Does it affect non-Latin alphabets?

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 vs alternating case — what's the difference?

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.

Embed our tools on your website

Free for any site. No signup. Iframe loads from our servers and stays up-to-date automatically.

📋 Embed the Word Counter

Copy this snippet:

Live preview:

📋 Embed this Swap Case Converter

Copy this snippet:

Live preview:

Want more options? All embeddable tools →