ROT13 Encoder/Decoder — Letter Substitution Cipher (Free)
Apply ROT13 encoding to text. Self-inverse: encode and decode with the same operation. Free, in-browser, no signup.
About ROT13 Cipher
ROT13 (rotate by 13 places) is a letter-substitution cipher that shifts each Latin letter 13 positions forward in the alphabet, wrapping around — A becomes N, B becomes O, ... and crucially M becomes Z while N becomes A, making the cipher its own inverse: applying ROT13 twice returns the original text. The ZTools ROT13 tool runs in the browser, supports uppercase / lowercase / mixed case (preserving case), passes through digits and symbols unchanged, and is the right tool for hiding spoilers, joke punchlines, and Usenet-style obscured content where the goal is "do not read accidentally" rather than "secure".
Use cases
- Hiding spoilers in posts. Movie / book spoiler in a forum post. Encode in ROT13 so curious readers must opt in by decoding.
- Hiding joke punchlines. Long-form joke setups. Punchline ROT13-encoded so readers do not skim ahead.
- Lightweight obfuscation. Hiding answers to puzzles in a workbook. Not secure, but sufficient for "do not glance and accidentally read".
- Educational cipher demos. Cryptography 101: ROT13 is the simplest possible substitution cipher. Demonstrate frequency analysis trivially breaks it.
How it works
- Paste text. Plain text — letters, digits, punctuation, whitespace.
- Apply ROT13. Each Latin letter shifts 13 places. Case preserved. Non-Latin characters (digits, punctuation, accented characters) pass through unchanged.
- Inspect. Side-by-side view shows original and result.
- Decode. Apply ROT13 again — the cipher is self-inverse, so the same operation undoes it.
- Copy or share. Encoded text to clipboard. The shareable URL embeds the encoded form for reader-controlled reveal.
Examples
Input: Hello, World!
Output: Uryyb, Jbeyq!
Input: Uryyb, Jbeyq!
Output: Hello, World! (ROT13 self-inverse)
Input: Cryptography
Output: Pelcgbtencul
Frequently asked questions
Is ROT13 secure?
No — laughably not. Anyone with 30 seconds and a basic frequency table can break it. ROT13 is for obscuring spoilers, not protecting secrets.
Why does ROT13 happen to be its own inverse?
Because 13 + 13 = 26, the size of the Latin alphabet. Two shifts of 13 wraps around once and lands on the original letter. ROT(n) where n ≠ 13 is NOT self-inverse.
Does it handle uppercase and lowercase?
Yes — case is preserved. "HELLO" → "URYYB", "hello" → "uryyb".
What about non-English letters (é, ü, ñ)?
They pass through unchanged — ROT13 only operates on A–Z and a–z. For Cyrillic / Greek, use the dedicated alphabet shift.
Is there a ROT47 variant?
Yes — ROT47 covers ASCII printable 33–126 (94 characters), so it shifts symbols and digits too. Also self-inverse.
Why is it still around if it is not secure?
For its intended purpose: opt-in spoilers in text channels. The point is not security but "make accidental reading hard while making intentional reading easy".
Pro tips
- Use ROT13 only for obscuring spoilers / punchlines, never for actual secrets.
- When sharing, label the encoded chunk explicitly ("ROT13:") so readers know how to decode.
- For longer obscured passages, generate a shareable URL that auto-decodes with one click.
- For real obfuscation of meaningful data, use proper encryption (AES-GCM via the Encryption tools).
- In Usenet / forum culture, ROT13 was the polite spoiler convention — modern equivalents include `<details>` blocks.
Reviewed by Ahsan Mahmood · Last updated 2026-05-05 · Part of ZTools.
For the full,
formatted version of this page, please enable JavaScript and reload
https://ztools.zaions.com/rot13.