Skip to main content

rot13

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​

  1. Paste text β€” Plain text β€” letters, digits, punctuation, whitespace.
  2. Apply ROT13 β€” Each Latin letter shifts 13 places. Case preserved. Non-Latin characters (digits, punctuation, accented characters) pass through unchanged.
  3. Inspect β€” Side-by-side view shows original and result.
  4. Decode β€” Apply ROT13 again β€” the cipher is self-inverse, so the same operation undoes it.
  5. 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".

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.

Try it now​

The full rot13 runs in your browser at https://ztools.zaions.com/rot13 β€” no signup, no upload, no data leaves your device.

Open the tool β†—


Last updated: 2026-05-05 Β· Author: Ahsan Mahmood Β· Edit this page on GitHub