ROT13 Encoder/Decoder

Apply rotation ciphers to text. ROT13 is its own inverse - encode and decode use the same operation.

Input Text
Output

About ROT13 Encoder & Decoder

ROT13 is a classic letter-substitution cipher that shifts every letter 13 positions forward in the alphabet. Because the English alphabet has 26 letters, applying ROT13 twice returns the original text — making the same operation work for both encoding and decoding. First used on early Usenet forums to hide spoilers and puzzle solutions, ROT13 remains widely used today for light text obfuscation, developer humor, and puzzles. Our tool also supports ROT5 (digits), ROT18 (letters + digits), and ROT47 (all printable ASCII), all processed instantly in your browser.

Key Features

How to Use This Tool

Encoding with ROT13

  1. Type or paste your text into the input area
  2. Select the cipher type: ROT13, ROT5, ROT18, or ROT47 using the buttons
  3. The transformed text appears instantly in the output area
  4. Click Copy to copy the result to your clipboard

Decoding ROT13 Text

  1. Paste the encoded ROT13 text into the input area
  2. Select the same cipher type that was used to encode it
  3. The decoded text appears immediately — ROT13 is its own inverse
  4. Alternatively, use the Swap button to move output back to input for chained operations

Cipher Reference

Cipher Affects Shift Example
ROT13Letters only+13Hello → Uryyb
ROT5Digits only+512345 → 67890
ROT18Letters + digits+13/+5Hello123 → Uryyb678
ROT47All printable ASCII+47Hello! → w6==@P

Common Use Cases

Hiding Spoilers in Online Communities

ROT13 originated on Usenet newsgroups as a convention for hiding movie spoilers, book endings, and puzzle answers so that readers could choose whether to decode them. Today it's still used in forums, Reddit posts, and Discord servers. When you want to share a plot twist or game solution without ruining it for others, wrap it in ROT13 so curious readers can actively choose to decode it. Since ROT13 is instantly reversible, this creates an opt-in experience for sensitive information.

Developer Humor and Easter Eggs

ROT13 has a long tradition in programming culture — many programs include ROT13-encoded easter eggs, hidden messages in source code comments, or obfuscated strings that developers decode as a rite of passage. The famous "Why did the chicken cross the road? Gb trg gb gur bgure fvqr." joke is a classic example of ROT13 humor embedded in tech culture. Use this tool to create or decode developer easter eggs in your own projects.

Light Obfuscation in Configuration Files

While not a security measure, ROT13 is sometimes used to lightly obfuscate email addresses, default passwords, or API keys in sample configuration files and documentation — enough to prevent accidental direct use while keeping the value recoverable by anyone who needs it. It's a step above plaintext for values that shouldn't be used directly but don't require real encryption.

Tips & Best Practices

Frequently Asked Questions

Q: Is ROT13 secure enough to protect private information?

A: No. ROT13 provides no cryptographic security — it's a fixed substitution with no key, and anyone who knows about ROT13 (which is everyone in tech) can decode it instantly. For actual security, use proper encryption like AES-256. ROT13 is appropriate only for casual spoiler-hiding, puzzles, and developer humor where the goal is light obfuscation rather than real protection.

Q: Why does ROT13 applied twice return the original text?

A: Because the English alphabet has exactly 26 letters, and 13 + 13 = 26. Shifting a letter by 13 then shifting again by 13 means a total shift of 26 — a full loop around the alphabet — which returns to the starting position. This self-inverse property is what makes ROT13 special: the same function encodes and decodes.

Q: What's the difference between ROT13 and Caesar cipher?

A: Caesar cipher is a general rotation cipher with a configurable shift (Julius Caesar used a shift of 3). ROT13 is specifically Caesar cipher with a shift of 13, chosen because it makes the cipher self-inverse. Any Caesar cipher with shift N can be decoded with shift (26-N), but only shift 13 is its own inverse.

Q: Does ROT13 work with non-English alphabets?

A: Standard ROT13 only works with the 26-letter English/Latin alphabet. Letters from other alphabets (Greek, Cyrillic, Arabic, Chinese, etc.) are passed through unchanged because ROT13 is defined specifically for A–Z. For other scripts, ROT47 partially helps by rotating ASCII symbols, but it doesn't cover non-ASCII Unicode characters.

Q: Is my text private when using this tool?

A: Yes. All encoding and decoding happens entirely in your browser using JavaScript. No text is sent to any server or stored anywhere. You can safely encode sensitive strings without privacy concerns, though remember that ROT13 itself provides no security.