ROT13 / Caesar Cipher
Apply ROT13 or any Caesar shift (1–25) to your text instantly. Works both ways — encoding and decoding are the same action.
Apply ROT13 or any Caesar shift from 1 to 25 to your text instantly. Letters shift, case is preserved, digits and punctuation pass through untouched — and because ROT13 is its own inverse, the same button encodes and decodes.
How to use ROT13 / Caesar Cipher
- Paste the text.
- Set the shift — 13 for ROT13, or any other key if the puzzle says so.
- Read or copy the shifted text; applying the same shift again restores the original.
Who it is for
Puzzle solvers working through cipher hints, forum users hiding spoilers, teachers demonstrating classical cryptography, and writers who want an easily reversible scramble for draft titles.
How it works
- The shift slider covers every Caesar key from 0 to 25, with a one-tap reset to the classic 13.
- Uppercase and lowercase wrap independently — "Z" with shift 1 becomes "A", never a strange symbol.
- Everything non-alphabetic (spaces, numbers, Bengali, emoji) passes through unchanged, so layout stays readable.
What it cannot do
- Caesar ciphers are trivially breakable and offer no real security — this is a learning and puzzle tool, not encryption.
- Only the 26 English letters shift; other alphabets pass through by design.
Sample input & output
Spoiler: Gur ohgyre qvq vg va Scene 4! (shift = 13)
Spoiler: The butler did it in Fprar 4! (Wait — applying ROT13 to "Gur ohgyre qvq vg!" decodes it cleanly to "The butler did it!" while digits and punctuation stay untouched).
Frequently asked questions
Why does applying ROT13 twice give back the original?
13 + 13 = 26, a full lap of the alphabet — the cipher is its own inverse, which is exactly why forums use it for spoilers.
Is ROT13 encryption?
No. It hides a spoiler from a passing eye and nothing more; there are only 26 possible keys and everyone knows them.
My Bengali text did not change — is that a bug?
No. The cipher is defined over the 26 English letters only; other scripts pass through untouched on purpose.
How does modular arithmetic explain why ROT13 is its own inverse?
The modern English Latin alphabet contains 26 letters indexed 0 through 25. A Caesar cipher encrypts index x as E_k(x) = (x + k) mod 26 and decrypts as D_k(x) = (x - k) mod 26. Because 13 is exactly half of 26, applying shift 13 twice computes (x + 13 + 13) mod 26 = (x + 26) mod 26 = x, making ROT13 an involution that needs no separate decode mode.
How do I decode a general Caesar cipher when the shift key is NOT 13?
For any non-13 shift key k between 1 and 25, encryption and decryption are additive complements modulo 26: if a puzzle or CTF challenge shifted plaintext forward by k = 3 (classic Julius Caesar shift, turning A into D), set the slider to 26 - 3 = 23 to shift backward and recover the plaintext. When k is unknown, testing shifts or checking 'E'/'T'/'A' in Character Frequency breaks it in seconds.
What is the difference between ROT13, ROT5, and ROT47?
Classic ROT13 originated on early 1980s Usenet newsgroups (such as net.jokes) to mask punchlines and movie spoilers while leaving numbers, URLs, and punctuation readable. ROT5 shifts only the ten ASCII digits 0–9 by 5 positions, and ROT47 rotates all 94 printable ASCII characters from '!' (code 33) through '~' (code 126) by 47 positions, scrambling symbols and digits into punctuation.
Why must ROT13 or Caesar shifts never be used to obfuscate API keys, emails, or passwords?
A monoalphabetic substitution cipher over 26 letters has a keyspace of just 25 non-trivial keys — small enough for any script or human eye to exhaust instantaneously — and preserves exact word lengths, punctuation, and letter frequency peaks. Automated email-harvesting scrapers and secret scanners routinely test ROT13 and Base64 alongside plaintext, so use real authenticated encryption (such as AES-GCM) whenever confidentiality matters.