ROT18 Encoder/Decoder

ROT13 for letters + ROT5 for digits — combined rotation

Ad placeholder (leaderboard)

ROT18 rotates an entire alphanumeric string in one pass by combining two famous toy ciphers: ROT13 for letters and ROT5 for digits. Where ROT13 alone leaves numbers readable, ROT18 scrambles letters and digits together, making it a tidy choice for puzzle hunts, hiding spoilers, and lightly obfuscating mixed text like serial numbers. This tool runs the transformation instantly in your browser.

How it works

Each character is classified and rotated independently:

  • Uppercase A–Z: shifted by 13 — (code − 65 + 13) mod 26 + 65
  • Lowercase a–z: shifted by 13 — (code − 97 + 13) mod 26 + 97
  • Digits 0–9: shifted by 5 — (code − 48 + 5) mod 10 + 48
  • Everything else: left unchanged

Because 13 is half of 26 and 5 is half of 10, both rotations are self-inverse. Applying ROT18 a second time undoes it exactly, which is why a single button serves as both encoder and decoder.

Example

The string Gera Tools 2026 becomes Tren Gbbyf 7571: the letters rotate via ROT13 (G→T, e→r, r→e, a→n) while the digits rotate via ROT5 (2→7, 0→5, 2→7, 6→1). The space is preserved.

Notes

ROT18 is a classic obfuscation device, not encryption — there is no key and the mapping is public. Everything runs locally in your browser, so your text is never sent to a server.

Ad placeholder (rectangle)