ROT-13, ROT-5, ROT-18 & ROT-47 Cipher Studio
Rotate letters by 13 positions (ROT-13), numbers by 5 (ROT-5), alphanumeric text (ROT-18), or full 94-character ASCII strings (ROT-47) with self-inverse mathematical symmetry.
The Cryptographic History of ROT-13, Usenet Culture & Involutory Ciphers
In the early 1980s on Usenet newsgroups (the precursor to modern internet forums), users frequently shared movie spoilers, puzzle solutions, punchlines to jokes, and controversial materials. To prevent other users from accidentally reading spoilers without deliberately intending to, the community adopted ROT-13.
Mathematically, ROT-13 is a special case of the Caesar cipher with a fixed shift parameter of $k = 13$. Because the Latin alphabet contains 26 letters ($2 \times 13 = 26$), applying ROT-13 twice returns the original plaintext:
This property is known in abstract algebra as an involution ($f(f(x)) = x$), meaning that the exact same algorithm serves as both the encoder and the decoder.
Rotation Cipher Variations Overview
- •ROT-13 (Alphabetical): Shifts A↔N, B↔O, C↔P, ..., Z↔M. Leaves numbers and punctuation untouched.
- •ROT-5 (Numeric): Shifts 0↔5, 1↔6, 2↔7, 3↔8, 4↔9. Self-inverse for 10 decimal digits.
- •ROT-18 (Combined): Applies ROT-13 to letters and ROT-5 to digits in a single pass.
- •ROT-47 (ASCII Printable): Expands rotation to 94 printable ASCII characters (from ‘!’ to ‘~’).
Frequently Asked Questions (FAQs)
Why does clicking "Apply Again" decode my ROT-13 text?+
Because ROT-13 is a self-inverse function (involution), shifting any letter by 13 positions twice completes a full 26-position cycle, automatically restoring the original plaintext.
Can ROT-13 encode Unicode characters like Cyrillic, Arabic, or Emojis?+
Classical ROT-13 only operates on standard Latin characters (A-Z, a-z). Non-Latin scripts and emojis remain untouched in ROT-13 mode.
How does ROT-47 differ from ROT-13?+
While ROT-13 only changes letters, ROT-47 rotates all 94 printable ASCII characters (numbers, punctuation, symbols, and letters) by 47 positions (e.g. "Hello 123!" becomes "w6==@ `abP").