ROT18 Encoder/Decoder

ROT13 for letters + ROT5 for digits — combined rotation

Free ROT18 encoder and decoder — applies ROT13 to letters and ROT5 to digits at once, so alphanumeric text is fully rotated. Self-inverse and instant, running entirely in your browser. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

What is ROT18?

ROT18 is the combination of two simple ciphers applied together: ROT13 rotates each letter by 13 positions, and ROT5 rotates each digit by 5 positions. The name comes loosely from 13 + 5.

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.

Why ROT18 rather than just ROT13?

ROT13 is the standard for hiding readable English text — but it leaves numbers completely untouched. In a mixed alphanumeric string like a product serial number (ABC-1234), ROT13 would produce NOP-1234 with the digits in plain sight. ROT18 scrambles both halves: the letters and the digits. The name “18” is informal — it comes from 13 + 5, the combined shift values — rather than from rotating by a single value of 18.

Worked example

The string Gera Tools 2026 encodes step by step as:

CharacterTypeTransformed
GLetterT (G+13)
eLetterr (e+13)
rLettere (r+13)
aLettern (a+13)
(space)Other(space)
TLetterG
oLetterb
oLetterb
lLettery
sLetterf
(space)Other(space)
2Digit7 (2+5)
0Digit5 (0+5)
2Digit7
6Digit1 (6+5)

Result: Tren Gbbyf 7571. Running Tren Gbbyf 7571 through ROT18 again gives back Gera Tools 2026.

Comparison of the ROT family

CipherAffectsLeaves unchanged
ROT5Digits 0–9Letters, symbols
ROT13Letters A–Z, a–zDigits, symbols
ROT18Letters and digitsSymbols, whitespace
ROT47Printable ASCII 33–126Control chars, whitespace

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.