ROT13 Cipher
Encode or decode ROT13 — the same button does both, because rotating 26 letters by 13 twice brings you back. Also ROT5 for digits and ROT47 for all printable ASCII.
How to Use
- Choose the variant: ROT13 (letters), ROT5 (digits), ROT18 (both) or ROT47 (letters, digits and symbols).
- Type or paste text. The result appears as you type.
- To decode, paste the scrambled text and use the same variant — each one undoes itself.
- The wheel shows which letter swaps with which; letters in your text are highlighted.
- Press Copy for the result, or Run again to prove it comes back to the original.
Worked Example
Encode “Hello” with ROT13. Number the letters A = 0 to Z = 25 and add 13, wrapping past 25:
H = 7 → 20 = U. e = 4 → 17 = r. l = 11 → 24 = y. o = 14 → 27, and 27 − 26 = 1 = b.
Result: Uryyb. Run ROT13 on “Uryyb” and U = 20 → 33 − 26 = 7 = H, giving “Hello” again.
ROT47 works on every printable character from ! (33) to ~ (126), shifting by 47 and wrapping after 94: H (72) → 72 − 33 + 47 = 86, which is w (119). “Hello” becomes w6==@.
Show Work
Formulas
From Caesar to Usenet
Shifting letters is one of the oldest ways of hiding a message. The Roman historian Suetonius wrote that Julius Caesar replaced each letter with the one three places further on, which is why every fixed-shift cipher is called a Caesar cipher. Such ciphers are trivially broken — there are only 25 possible shifts to try.
ROT13 found its niche on Usenet in the early 1980s, where it became the convention for posting offensive jokes, punchlines and spoilers: readers had to choose to decode them, and newsreaders gained a one-key ROT13 command. A shift of 13 was chosen because it is half the alphabet, so the same command both hides and reveals. ROT47 later extended the idea to digits and punctuation.
About This Tool
This tool applies ROT13, ROT5, ROT18 or ROT47 to any text as you type. Because each variant is its own inverse, there is no separate decode step: paste scrambled text and the same variant restores it. Capital letters stay capital, and anything outside the variant’s alphabet — accented letters, emoji, spaces — passes through unchanged.
The cipher wheel shows every pair that swaps, with the characters in your text highlighted, and Show Work lists each rotation with its arithmetic. Everything runs in your browser.
Related tools: Caesar Cipher, Morse Code Translator, and Base64 Encoder / Decoder.
Frequently Asked Questions
What is ROT13?
ROT13 (“rotate by 13”) replaces each letter with the one 13 places later in the alphabet, wrapping from Z back to A: A becomes N, B becomes O, N becomes A. Digits, spaces and punctuation are left alone, and capital letters stay capital.
How do I decode ROT13?
Apply ROT13 again. The alphabet has 26 letters and 13 + 13 = 26, so two rotations bring every letter back where it started. “Uryyb” decodes to “Hello” with exactly the same step that encoded it.
Is ROT13 encryption?
No. There is no key, and anyone can reverse it in a second. It is used to hide text from a casual glance — a spoiler or a puzzle answer — never to protect anything.
What is the difference between ROT13, ROT5 and ROT47?
ROT13 rotates only the 26 letters. ROT5 rotates only the digits 0–9 by 5, so 2024 becomes 7579. ROT18 does both. ROT47 rotates all 94 printable ASCII characters from ! to ~ by 47, so punctuation and digits change too: “Hello” becomes “w6==@”.
How is ROT13 related to the Caesar cipher?
It is a Caesar cipher with a shift of 13. Julius Caesar reportedly used a shift of 3. Thirteen is the special case where the shift is exactly half the alphabet, which is what makes encoding and decoding the same operation.
How do I use the ROT13 Cipher?
Simply type or paste your value and read the result, which refreshes the instant you change something. There is nothing to submit and nothing to wait for.
Do I need to install or sign up for anything?
Not at all — it runs in the browser with nothing to install and no account. After it loads once, it even works without an internet connection.
Is my information private?
Yes. Everything happens in your browser. Nothing you type is sent to a server or saved anywhere.
Common Use Cases
Spoilers and punchlines
Post “Gur ohgyre qvq vg” under a review; readers who want the ending run it through ROT13 and get “The butler did it”.
Puzzle and quiz answers
Print the answers in ROT13 beside the questions so nobody reads them by accident.
Windows UserAssist
Windows stores the names of programs you have run in the UserAssist registry key in ROT13. Forensic analysts decode them to see what was launched.
Capture-the-flag challenges
ROT13 and ROT47 are common first layers in CTF puzzles; text full of symbols like “w6==@” is a hint to try ROT47.
Teaching modular arithmetic
H is letter 7; (7 + 13) mod 26 = 20, which is U. The wheel and Show Work make the wrap-around visible.
Last updated: