🔐 ROT13 Encoder Decoder

Encode and decode text using the ROT13 cipher, a simple letter substitution cipher that replaces each letter with the letter 13 positions after it in the alphabet. ROT13 is reversible (applying it twice returns the original text) and commonly used for simple obfuscation and rot13.com style puzzles.

📌 ROT13 Output:
Type or paste text to see ROT13 conversion...
0
Input Length
0
Output Length
0
Letters Changed
💡 How ROT13 works:
  • Each letter is replaced by the letter 13 positions ahead in the alphabet
  • A becomes N, B becomes O, and so on
  • Numbers and punctuation are preserved unchanged
  • ROT13 is reversible - applying it twice returns the original text
  • The same tool both encodes and decodes (symmetrical cipher)

📝 Examples:

Input (Original):
Hello World
Output (ROT13):
Uryyb Jbeyq
Input (ROT13):
Uryyb Jbeyq
Output (Original - Decoding):
Hello World
Input (With Numbers & Punctuation):
Python 3.11 is awesome!
Output (ROT13):
Clguba 3.11 vf njrfbzr!
🔤 ROT13 Alphabet Mapping:
A ↔ N
B ↔ O
C ↔ P
D ↔ Q
E ↔ R
F ↔ S
G ↔ T
H ↔ U
I ↔ V
J ↔ W
K ↔ X
L ↔ Y
M ↔ Z
📚 Use Cases:
  • Simple text obfuscation for puzzles and games
  • Hide spoilers in online discussions and forums
  • Educational tool for learning about cipher techniques
  • Rot13.com style text encoding games
  • Quick text obfuscation (not for security purposes)
  • Convert between ROT13 encoded and plain text
⚠️ Security Note: ROT13 is NOT a secure cipher and should never be used for actual security or privacy. It's only suitable for simple obfuscation and entertainment purposes. For real encryption, use proper cryptographic algorithms.

Why thirteen is the magic number

ROT13 is the Caesar cipher with a shift of 13, and 13 is exactly half of 26. That is what makes one pass serve for both directions - go forward 13 and forward 13 again and you have gone round the full alphabet:

out = (position + 13) mod 26        A=0 ... Z=25
H (7) -> 7 + 13 = 20 -> U          U (20) -> 33 mod 26 = 7 -> H

No other shift behaves this way; ROT5 needs ROT21 to undo it. One character in, one character out, so the Input Length and Output Length counters always match; Letters Changed is how many A-Z characters your text held, and every one of them moves.

Its relatives, and the limits of the alphabet

There is no key. The mapping is fixed and public, so ROT13 is an encoding, not encryption - it hides text from a glance, never from a reader.

Frequently asked questions

Why do people use ROT13 for spoilers?

It came from Usenet in the early 1980s, where punchlines and film endings were posted rotated so nobody read them by accident. Newsreaders had a single key to unrotate, and the habit stuck in forums and puzzle communities.

What is the ROT13 of ROT13?

The text you started with. Two applications add up to a 26-place shift, a complete lap of the alphabet, which is why the same button encodes and decodes.

Can ROT13 protect a password or a private message?

No. Anyone can reverse it in seconds without knowing anything about you, and letter patterns stay visible. Use AES or an encrypted messenger for anything that genuinely needs to stay secret.