ROT18 cipher — ROT13 for letters plus ROT5 for digits

ROT18 hides both words and numbers. Letters are shifted 13 places as in ROT13 and digits 5 places as in ROT5. Paste the result back in to read the original.

Live demo · real result from this tool

ROT18

Beqre 11 fuvcf ng 5455

Processed on your device — nothing is uploaded.

How to use the ROT18 cipher

  1. Type or paste your text into Text.
  2. The ROT18 result appears straight away.
  3. Copy it. To decode, paste the encoded text into the same box.

What it does and when to use it

ROT13 is a well-known way to hide spoilers and answers, but it leaves numbers readable. That is a problem when the secret is a number: a score, a date, a code or the answer to a maths puzzle. ROT18 fixes that by also rotating the digits.

Typical uses are puzzle hunts, quiz answers in a newsletter, geocache hints that contain coordinates, and classroom exercises on substitution ciphers. In capture-the-flag games it sometimes appears as one of several layers.

Like all ROT ciphers it offers no real security. Compare the alternatives: ROT13 rotates letters only, ROT47 rotates every printable ASCII symbol too, and the Atbash cipher mirrors the alphabet instead of rotating it.

How it works

Two simple rules are applied character by character:

Letters:  A B C D E F G H I J K L M  ↔  N O P Q R S T U V W X Y Z
Digits:   0 1 2 3 4  ↔  5 6 7 8 9

Each letter is replaced by the one 13 places further along the alphabet, wrapping from Z back to A, and each digit by the one 5 further along, wrapping from 9 to 0. Every pair works both ways, which is why the same step encodes and decodes. Case is preserved and nothing else changes. The tool runs in your browser.

Worked examples

Hello 123                →  Uryyb 678
Uryyb 678                →  Hello 123
Order 66 ships at 0900   →  Beqre 11 fuvcf ng 5455
Café 2024!               →  Pnsé 7579!

In the third line the time 0900 becomes 5455: 0 → 5, 9 → 4. In the last line the é is not rotated, because it is not one of the basic 26 letters, and the exclamation mark is kept.

Limits and tips

  • Word lengths and punctuation stay visible, so short words can be guessed.
  • The number of digits does not change, so a four-digit time or PIN still looks like one. Add other clues to the puzzle if that matters.
  • For a cipher with a secret key, use the Vigenère cipher, which is still not secure but needs the keyword to read.

Frequently asked questions

Why is it called ROT18?
It combines ROT13, which rotates the 26 letters by 13, with ROT5, which rotates the 10 digits by 5. 13 + 5 = 18. The name describes the mix, not a shift of 18 places.
How do I decode ROT18?
Put the encoded text back into the same box. 13 is half of 26 and 5 is half of 10, so doing the rotation twice brings every letter and digit back to where it started.
Which characters are left unchanged?
Spaces, punctuation, symbols, accented letters such as é, and characters from other scripts. Only A–Z, a–z and 0–9 are rotated. Upper and lower case are kept.
Is ROT18 encryption?
No. It has no key and is easy to recognise and reverse. It is fine for hiding a spoiler or a puzzle answer from a quick glance, but not for anything private.

Written by the ToolsRift team · Last updated

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close