Double ROT13 (ROT26)

Apply ROT13 twice — a no-op that demonstrates cipher identity

Ad placeholder (leaderboard)

Double ROT13 — affectionately called ROT26 — is the classic cryptography joke: it runs the ROT13 cipher twice and gives you back exactly what you started with. This tool demonstrates that self-inverse property step by step.

How it works

ROT13 rotates each letter 13 positions forward, wrapping around at the end of the alphabet:

encrypted = ((letter - base + 13) mod 26) + base

Apply it a second time and the total shift is 13 + 13 = 26, a full rotation around the 26-letter alphabet:

(x + 13 + 13) mod 26  =  (x + 26) mod 26  =  x

So the second pass perfectly undoes the first. The tool shows the intermediate single-pass result, then the double-pass result, which always equals the input.

Tips and notes

  • Because ROT13 is its own inverse, the same operation both encodes and decodes — there is no separate decode mode in plain ROT13.
  • Only letters move; everything else is left untouched, which is why the joke works on any text including symbols and digits.
  • The takeaway: stacking rounds of a self-inverse transform adds no security. Real ciphers avoid this by mixing different, non-cancelling operations.
Ad placeholder (rectangle)