ROT13 Decoder
This example demonstrates ROT13 encoding from String Tools, pre-loaded with “Hello World!”. Paste any text to encode or decode it using the ROT13 substitution cipher.
How It Works
ROT13 shifts each letter forward by 13 positions in the alphabet. Since the English alphabet has 26 letters, shifting by 13 is exactly half a rotation. This means applying ROT13 to already-ROT13’d text returns the original:
A → N → A
B → O → B
Z → M → Z
The ROT13 Alphabet Mapping
| Original | A | B | C | D | E | F | G | H | I | J | K | L | M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ROT13 | N | O | P | Q | R | S | T | U | V | W | X | Y | Z |
The second half (N through Z) maps symmetrically back to A through M.
Historical Context
ROT13 was popularized on Usenet in the 1980s and 1990s. It was used to hide spoilers in discussion posts, obscure punchlines in joke threads, and mark potentially offensive content. Users had to actively choose to decode the text, acting as a content warning before content warnings existed.
ROT13 vs Real Encryption
ROT13 is a monoalphabetic substitution cipher with a fixed key. Frequency analysis trivially breaks it: common English letters like E, T, and A remain statistically identifiable. Any modern cipher provides vastly stronger protection. ROT13 exists purely as a cultural artifact and puzzle tool.
How to Use
- Paste your text (plain or ROT13-encoded) into the input area
- The tool outputs the ROT13 transformation instantly
- To decode, paste the encoded text and apply ROT13 again
- Copy the result using the copy button
Common Questions
Does ROT13 work with numbers and symbols?
No. Only letters are shifted. Numbers (0-9), spaces, punctuation, and all non-letter characters pass through unchanged. Hello, 123! becomes Uryyb, 123! with the numbers and punctuation intact.
Can I use ROT13 for URL parameters?
ROT13 is not URL-safe by itself, though it does not introduce characters that need encoding. Some old games used ROT13 to hide solution URLs. For actual URL encoding, use the URL encoder tool instead.
Is ROT13 the same as Atbash?
No. Atbash reverses the alphabet (A↔Z, B↔Y, C↔X, etc.) while ROT13 shifts by 13 positions. They produce different results for most inputs, though both are monoalphabetic substitution ciphers.