Encode and decode text with the ROT13 substitution cipher instantly
ROT13 ("rotate by 13 places") is a simple letter substitution cipher that replaces each letter with the letter 13 positions ahead in the alphabet. A→N, B→O, C→P, ..., N→A, O→B, P→C, and so on. Because the English alphabet has 26 letters, applying ROT13 twice returns the original text — encoding and decoding are the same operation. ROT13 is widely considered the simplest and most trivial cipher, with zero cryptographic security.
Despite its lack of security, ROT13 has a specific and still-common use case: hiding text that you don't want someone to read casually but don't need to keep truly secret — spoilers in forums, puzzle hints, or the punchline of a joke. It was the default obfuscation on Usenet newsgroups in the 1980s–90s and remains supported in many discussion platforms today. It's also a classic introductory problem for string manipulation and cryptography courses.
ROT13 is a specific case of the Caesar cipher with a shift of 13. The Caesar cipher can use any shift from 1 to 25; ROT13 always uses 13. The special property of ROT13 (that encryption = decryption) only applies when the shift equals half the alphabet size (26/2 = 13). Caesar with shift 3 is the historical version used by Julius Caesar.
No. ROT13 only transforms letters (A–Z, a–z). Numbers, spaces, punctuation, and all other characters pass through unchanged. "Hello, World! 2024" becomes "Uryyb, Jbeyq! 2024" — the comma, exclamation mark, space, and digits are untouched.
Not at all. ROT13 is trivially broken by frequency analysis (E is the most common letter in English; its ROT13 form R appears most often in ciphertext), and by trying all 25 other shifts. A human can break ROT13 in seconds. It provides "security through obscurity" at best, which is not security at all. Do not use it for anything requiring real confidentiality.
These are variants. ROT5 applies rotation-by-5 to digits only (0–9). ROT18 combines ROT13 for letters and ROT5 for digits. ROT47 rotates all printable ASCII characters (33–126) by 47 positions, covering letters, digits, and many punctuation marks — a more complete obfuscation than ROT13 alone.
Password Strength Checker · Base32 Encoder / Decoder · Hex Encoder / Decoder · Caesar Cipher · Vigenère Cipher · Atbash Cipher