Logo

MonoCalc

/

ROT-N Encoder

Encode/Decode
Enter some text
Type or paste text in the field above to start encoding, decoding, or brute-forcing.

About This Tool

🔄 ROT-N Encoder – Custom Rotation Cipher

The ROT-N Encoder is a flexible rotation cipher tool that encodes and decodes text by shifting each alphabetic character forward (or backward) by a user-chosen number of positions N in the alphabet. Unlike the fixed ROT-13, this tool lets you choose any shift from 0 to 25, explore all 25 possible rotations at once, and even extend the cipher to digits 0–9 with alphanumeric mode.

What Is a Rotation Cipher?

A rotation cipher — also known as a shift cipher or Caesar cipher — replaces each letter with the letter that is N positions ahead of it in the alphabet. The alphabet wraps around, so with a shift of 3 the letter X becomes A, Y becomes B, and Z becomes C. The classical ROT-13 (shift of 13) is a special case: because 13 + 13 = 26, encoding and decoding are the same operation.

Core Encoding Formula

For any uppercase letter c with ASCII code between 65 (A) and 90 (Z), the encoded character is:

encoded = chr(((ord(c) − ord('A') + N) mod 26) + ord('A'))

The same formula applies to lowercase letters using ord('a') as the base. Decoding simply replaces N with (26 − N) mod 26, which shifts each character backward by the same amount.

Alphanumeric Mode

When Alphanumeric Mode is enabled, the tool extends the rotation to digits 0–9. Because there are only 10 digits, the effective digit shift is N mod 10. For example, with N = 13 the digit shift is 13 mod 10 = 3, so digit 0 → 3, 7 → 0, and so on. This is useful when obfuscating alphanumeric codes, short IDs, or puzzle content that contains numbers.

Operation Modes

ModeDescriptionBest For
EncodeShifts each letter forward by N positions.Creating ROT-encoded text for puzzles, spoilers, or obfuscation.
DecodeShifts each letter backward by N positions.Recovering the original text when the shift N is known.
Brute-ForceGenerates all 25 possible rotations at once.Finding the correct decode when the shift is unknown.

ROT-N Variants at a Glance

The table below shows well-known named variants of the rotation cipher. All are simple applications of the same formula with different values of N:

VariantShift (N)Notable Property
ROT-11Minimal shift; barely obfuscates text.
ROT-55Often paired with ROT-13 for digits in ROT-18.
ROT-1313Self-inverse; encoding = decoding. Most popular variant.
ROT-1813 for letters, 5 for digitsCombines ROT-13 and ROT-5 for full alphanumeric rotation.
ROT-4747 positions within ASCII 33–126Rotates all visible ASCII characters, not just letters.

Cipher Alphabet Mapping

After encoding or decoding, the tool displays a cipher alphabet table showing the full A–Z mapping for the selected shift. This lets you quickly verify which plaintext letter maps to which ciphertext letter. When alphanumeric mode is enabled, a separate digit grid shows the 0–9 mapping for the effective digit shift.

Brute-Force Decoding

Because the ROT cipher has only 25 meaningful keys (ROT-1 through ROT-25), an attacker — or a curious puzzler — can try all of them instantly. The Brute-Force mode does exactly this: it decodes your ciphertext with every possible shift and presents all 25 results in a scrollable table. You can then click Use on any row to switch to that shift in Decode mode. For English text, the correct result is usually the only row that looks like natural language.

Common Use Cases

  • Spoiler hiding — encode spoilers, puzzle answers, or punchlines with ROT-13 so they are hidden from casual readers but trivially reversible.
  • Puzzle creation — generate ROT-encoded clues or messages for escape rooms, scavenger hunts, and word games.
  • Educational cryptography — demonstrate how simple substitution ciphers work and why frequency analysis defeats them.
  • Light obfuscation — obscure email addresses or short strings from naive bots (not a security measure for sensitive data).

⚠️ Security Note

ROT-N provides no meaningful cryptographic security. With only 25 possible keys and trivial frequency analysis, any ROT-encoded message can be broken in seconds. Use it for fun, puzzles, and education — never for protecting sensitive or personal information. For real encryption, see the AES Encryption/Decryption tool.

Frequently Asked Questions

Is the ROT-N Encoder free?

Yes, ROT-N Encoder is totally free :)

Can I use the ROT-N Encoder offline?

Yes, you can install the webapp as PWA.

Is it safe to use ROT-N Encoder?

Yes, any data related to ROT-N Encoder only stored in your browser (if storage required). You can simply clear browser cache to clear all the stored data. We do not store any data on server.

What is ROT-N encoding and how does it work?

ROT-N (Rotate by N) is a substitution cipher that shifts each letter in the alphabet by a fixed number of positions N. For example, with N=3, the letter A becomes D, B becomes E, and Z wraps around to C. Non-alphabetic characters like spaces, digits, and punctuation are preserved by default. ROT-13 (N=13) is the most well-known variant because encoding and decoding are the same operation.

What is the difference between ROT-N and Caesar cipher?

ROT-N and the Caesar cipher are the same algorithm — a simple rotation/shift cipher. The term 'ROT-N' emphasizes the rotation nomenclature (ROT-1 through ROT-25), while 'Caesar cipher' refers to its historical use by Julius Caesar with a fixed shift of 3. This tool also extends the rotation to digits (0–9) in alphanumeric mode, which the classical cipher does not.

How do I decode ROT-N encoded text when I know the shift?

To decode ROT-N text, switch to 'Decode' mode, enter the ciphertext, and set the same shift value N that was used to encode it. The tool reverses the shift by applying a backward rotation of (26 − N) positions. For example, text encoded with N=5 is decoded by shifting back 21 positions.

What does the Brute-Force mode do?

Brute-Force mode generates all 25 possible rotations of your input text simultaneously and displays them in a table. Because the ROT cipher only has 25 meaningful variants, you can visually scan the results to identify readable plaintext — no need to know the original shift value. This is the classic method for breaking a ROT/Caesar cipher.

What is alphanumeric mode and how are digits shifted?

Alphanumeric mode extends the rotation cipher to include digits 0–9. Digits are shifted by (N mod 10) positions, so for N=13 the effective digit shift is 3 (13 mod 10 = 3), making 0 → 3, 7 → 0, etc. Letters are still shifted by the full N positions. Non-alphanumeric characters (spaces, punctuation) remain unchanged.

Is ROT-N encoding secure for protecting sensitive data?

No. ROT-N provides no real security — with only 25 possible keys it can be broken instantly. It is best suited for hiding spoilers, puzzle content, obfuscating email addresses from simple scrapers, or educational demonstrations of how substitution ciphers work. For sensitive data, use a modern cipher like AES.