Skip to content
โœฆTextLib
Free Online Tool

ROT13 Cipher

Encode and decode text using ROT13, ROT5, or custom Caesar cipher shifts. Classic letter substitution โ€” instant and reversible.

Results
ROT13
โ€”
ROT5 Numbers
โ€”
ROT13+5 Full
โ€”
Shift +1
โ€”
Shift +3
โ€”
Shift +7
โ€”

ROT13 is one of the simplest and most widely recognized text encoding schemes. It works by replacing each letter with the letter 13 positions ahead in the alphabet โ€” A becomes N, B becomes O, and so on. Because the English alphabet has 26 letters, applying ROT13 twice returns the original text, making it a symmetric cipher where encoding and decoding are the same operation. While not cryptographically secure, ROT13 is a beloved tool for hiding spoilers, puzzle answers, punchlines, and other text that should not be immediately readable.

The ROT13 cipher is a specific case of the Caesar cipher, one of the oldest known encryption techniques. Named after Julius Caesar, who reportedly used it for military correspondence, the Caesar cipher shifts each letter by a fixed number of positions. Caesar himself used a shift of 3 (Aโ†’D, Bโ†’E, etc.). Our tool offers ROT13 (shift 13), custom shifts of 1, 3, and 7, as well as ROT5 for numbers (shifting digits 0-9 by 5 positions) and ROT13+5 which combines both letter and number rotation for full alphanumeric encoding.

ROT13 has a rich cultural history on the internet. Usenet newsgroups adopted it in the 1980s as a standard way to hide spoilers, offensive jokes, and puzzle solutions. Readers who wanted to see the hidden content would apply ROT13 to reveal it, creating a simple opt-in mechanism. Today it appears in online forums, geocaching puzzles, CTF (Capture the Flag) cybersecurity challenges, programming exercises, and as a teaching tool for introducing cryptographic concepts. The Caesar cipher variants with different shift values serve similar purposes and appear frequently in escape rooms, educational games, and recreational puzzles.

All encoding and decoding happens in your browser. No data is sent to any server. Remember that ROT13 and Caesar ciphers are not secure encryption โ€” they are trivially breakable and should never be used to protect sensitive information. They are tools for light obfuscation and recreational encoding only.

How to Use

1

Choose a Cipher Mode

Select ROT13, ROT5 for numbers, ROT13+5 for full encoding, or a custom Caesar shift

2

Enter Your Text

Type or paste the text you want to encode, or paste encoded text to decode it

3

Copy the Result

The encoded or decoded output appears instantly โ€” click copy to use it

FAQ

ROT13 Cipher FAQ

ROT13 (rotate by 13) is a letter substitution cipher that replaces each letter with the letter 13 positions ahead in the alphabet. A becomes N, B becomes O, and so on. Because the alphabet has 26 letters, applying ROT13 twice returns the original text.

Yes. ROT13 is its own inverse โ€” encoding and decoding are the same operation. If you apply ROT13 to 'Hello' you get 'Uryyb', and applying ROT13 to 'Uryyb' gives you back 'Hello'. This is because 13 + 13 = 26 (the length of the alphabet).

ROT13 is a specific Caesar cipher with a shift of 13. The Caesar cipher is the general technique of shifting letters by any fixed number. Caesar himself used a shift of 3. Our tool offers ROT13 plus shifts of 1, 3, and 7.

ROT5 applies the same rotation concept to digits (0-9). Each digit is shifted by 5 positions: 0 becomes 5, 1 becomes 6, and so on. ROT13+5 combines letter rotation (ROT13) with digit rotation (ROT5) for full alphanumeric encoding.

No. ROT13 provides zero cryptographic security. It is trivially breakable โ€” anyone who knows about ROT13 can decode it instantly. It should only be used for light obfuscation, like hiding spoilers or puzzle answers, never for protecting sensitive data.

Usenet newsgroups adopted ROT13 in the 1980s as a standard way to hide spoilers, offensive jokes, and puzzle answers. It created a simple opt-in mechanism: readers who wanted to see the content had to actively decode it.

Standard ROT13 only shifts the 26 letters of the English alphabet (A-Z, a-z). Non-English characters, numbers, spaces, and punctuation pass through unchanged. ROT5 adds digit rotation, and ROT13+5 combines both.

Try each shift value from 1 to 25 until the output becomes readable text. With only 25 possible shifts, brute force is trivial. This is why Caesar ciphers are not considered secure. Our tool offers the most common shift values for quick testing.

Copied!