ROT13 Cipher
A thirteen-place letter shift that undoes itself — obfuscation, not secrecy.
Self-inverse by arithmetic
ROT13 shifts each letter of the alphabet thirteen places, wrapping around. The Latin alphabet has 26 letters, so applying the shift twice returns you to the start: 13 + 13 = 26. That means there is no separate decode function — the same operation both encodes and decodes. Case is preserved, digits and punctuation are untouched, and Hello, World! becomes Uryyb, Jbeyq!.
A short, honest history
ROT13 appeared on Usenet around 1981 for hiding punchlines, spoilers and puzzle answers from a casual glance, and it persists in that role — cryptographic software development has long used it to hide challenge answers in plain sight, and it still shows up as a lightweight way to keep a solution out of a reader's eyeline.
Why it provides no security whatsoever
- No key. There is one possible transformation, so there is nothing for an attacker to guess.
- Trivially invertible. Anyone who can read this page can undo it in one step.
- Frequency structure preserved. Letter frequencies are unchanged, so ordinary cryptanalysis works instantly even without knowing the rule.
- 26 possible shifts at most. A Caesar cipher generally is only 25 keys, searchable by hand.
If you need confidentiality, ROT13 is not a weak option — it is not an option at all. It is an encoding, in the same category as Base64. For real protection, use authenticated encryption such as AES-GCM or XChaCha20-Poly1305, and never invent your own scheme.
ROT-N and the broader family
The general form is a Caesar shift of any amount, and this page's decoder accepts the standard 13 which is the only shift that is its own inverse. Related teaching ciphers — ROT5 and ROT18 for digits, Atbash for reversal — are occasionally used in puzzle chains and CTF exercises, which is precisely the context where their properties are useful rather than misleading.
How to use it
- Paste the text.
- Read the shifted output — letters move thirteen places, everything else stays.
- Paste the output back in to confirm it returns to the original.
Worth knowing
- 13 is the only shift that is its own inverse in a 26-letter alphabet.
- Non-letter characters — spaces, digits, punctuation — pass through unchanged.
- Case is preserved: uppercase stays uppercase and lowercase stays lowercase.
- Used on Usenet from about 1981 to hide punchlines and puzzle answers.
Limitations
- No key, so no security — it is reversible by anyone.
- Works only on the basic Latin alphabet; accented letters and non-Latin scripts are unchanged.
- It is obfuscation, in the same class as Base64, not encryption.
- A Caesar cipher of any shift is breakable by brute force alone.