Skip to content

ROT13 Cipher

Classic ROT13 letter-shift cipher, encode = decode.

ROT13 Cipher shifts each Latin letter by 13 positions in your browser—entirely client-side. It is the classic forum trick for hiding spoilers and puzzle answers, and this tool makes it instant to encode or decode text with a single click.

How it works

Each character's code point is checked against the A–Z and a–z ranges. Matching letters are shifted by 13 positions and wrapped around the 26-letter alphabet; everything else (numbers, punctuation, spaces, emoji) is left untouched. Because 13 is half of 26, running the transform again restores the original text.

Benefits

  • Instant, symmetric encode/decode with one transform
  • Runs entirely client-side—no network calls
  • Preserves punctuation, numbers, and non-Latin characters
  • Simple, predictable behavior useful for teaching substitution ciphers

Use cases

  • Hide spoilers or puzzle answers in forum posts or documentation
  • Teach the concept of a Caesar-style substitution cipher
  • Quickly obfuscate placeholder text in demos and screenshots
  • Generate test fixtures for text-transform pipelines

Best practices

  • Use ROT13 only for casual obfuscation, never for anything requiring real confidentiality
  • Pair it with a clear label so readers know decoding is expected
  • Prefer AES or another real cipher for anything sensitive
  • Combine with other reversible encodings only for teaching or puzzles

Common mistakes

  • Assuming ROT13 provides any real security or privacy
  • Using ROT13 to 'protect' passwords, tokens, or personal data
  • Expecting numbers or symbols to be transformed—only letters shift
  • Forgetting that encoding and decoding are literally the same operation

Privacy

The transform is a pure, local character shift with no network calls and no storage of your input beyond optional on-device history that you control.

Frequently asked questions

Is ROT13 encryption?
No. ROT13 is a simple letter-substitution cipher, not encryption. It provides no confidentiality and can be reversed instantly by anyone—use it only for obscuring text like spoilers, never for protecting secrets.
Why do encode and decode use the same button?
ROT13 shifts each letter by 13 positions in a 26-letter alphabet, so applying it twice returns the original text. Encoding and decoding are the exact same operation.
What happens to numbers and punctuation?
Only ASCII letters A–Z and a–z are shifted. Numbers, punctuation, spaces, and non-Latin characters (including emoji and accented letters) pass through unchanged.
Does this tool upload my text anywhere?
No. The transform runs entirely in your browser using a simple character-code shift—no network request is made.
What is ROT13 typically used for?
It is traditionally used on forums and mailing lists to hide spoilers, puzzle answers, or joke punchlines from casual readers who haven't opted to reveal them—not for actual security.
Can I chain ROT13 with other tools?
Yes. Copy the ROT13 output and feed it into Base64 Encode or Hash Generator to build multi-step encoding exercises for learning purposes.

Version 1.0.0 · Updated 2026-07-27 · 30 seconds