About this tool
ROT13 (“rotate by 13”) replaces each letter with the one 13 places further along the alphabet: A ↔ N, B ↔ O, H ↔ U. Because the alphabet has 26 letters, applying it twice gives back the original, so encoding and decoding are the same operation. Paste plain text to encode it, or ROT13 text to decode it.
Variants
- ROT13: letters only; digits, spaces and punctuation stay as they are.
Hello, World!→Uryyb, Jbeyq! - ROT47: rotates all 94 printable ASCII characters, including digits and symbols, by 47.
Hello 123→w6==@ `ab - ROT18: ROT13 for letters plus ROT5 for digits (0 ↔ 5).
- Caesar shift: any shift from 1 to 25. Julius Caesar reportedly used a shift of 3. Tick Decode to shift back.
What ROT13 is for
ROT13 is not encryption: anyone can reverse it instantly. It’s used to hide text from a casual glance, for spoilers, puzzle answers and punchlines in forums, and occasionally to keep email addresses away from naive scrapers. Classic Usenet newsreaders had a ROT13 button for exactly this.
To protect real secrets, use proper encryption. For hashing, see the SHA-256 generator.
In code
# Python
import codecs; codecs.encode("Hello", "rot13")
# Command line
echo 'Hello' | tr 'A-Za-z' 'N-ZA-Mn-za-m'
FAQ
How do I decode ROT13?
Paste the ROT13 text into the box. ROT13 is its own inverse, so the same operation that encodes it also decodes it.
Is ROT13 secure?
No. It is a fixed letter substitution that anyone can reverse. It is only meant to hide spoilers and puzzle answers from a casual glance.
What is the difference between ROT13 and ROT47?
ROT13 rotates only the 26 letters. ROT47 rotates all 94 printable ASCII characters, so digits and punctuation change too.
What is a Caesar cipher?
A substitution cipher that shifts each letter a fixed number of places. ROT13 is a Caesar cipher with a shift of 13.
Does ROT13 change numbers?
No, only letters. Use ROT18 or ROT47 to rotate digits as well.