ROT13 Encoder
ROT13 is the simplest text obfuscator still in use: shift every letter 13 places in the alphabet, and applying the rotation again gets you back to the original. It is what Usenet used to hide movie spoilers, puzzle answers and off-colour jokes, and it is still a handy way to temporarily obscure a block of text from accidental glance, never for actual secrecy.
How ROT13 works
-
1
Take a letter
A–Z and a–z only. Digits, punctuation and whitespace are left alone.
-
2
Shift 13 places forward
A becomes N. M becomes Z. N wraps around to A.
-
3
Apply twice to decode
Since the alphabet has 26 letters, shifting 13 twice returns to the original.
The mapping
| Plain | ROT13 | Plain | ROT13 |
|---|---|---|---|
| A | N | N | A |
| B | O | O | B |
| C | P | P | C |
| D | Q | Q | D |
| E | R | R | E |
| F | S | S | F |
| G | T | T | G |
| H | U | U | H |
| I | V | V | I |
| J | W | W | J |
| K | X | X | K |
| L | Y | Y | L |
| M | Z | Z | M |
Why 13
Because 13 = 26 / 2, encoding and decoding are the same operation. No need for a separate encode and decode function; the same code does both. That symmetry is what made ROT13 popular before programmer-grade crypto libraries existed everywhere.
Where ROT13 actually fits
- Spoiler hiding, “Qbg Fabjonyy vf Ebo’f qnq.” is legible after a toggle but harmless at a glance.
- Puzzle answers, rotate the solution to avoid giving it away in plaintext.
- Crossword clue workarounds, some apps rotate clues to prevent unintentional spoilers.
- Obscuring emails in old HTML, a mild anti-harvester trick before JavaScript-based obfuscation was universal.
Where ROT13 absolutely does not fit
- Passwords. Not encryption. A single glance breaks it; machine-automated code reverses it in microseconds.
- Secrets. Anyone who sees “Guvf vf frperg” knows immediately what you did and how to undo it.
- Binary data. ROT13 only touches letters; binary blobs corrupt other characters.
Variants
- ROT5, digits only, shift by 5. 0↔5, 1↔6, 2↔7, 3↔8, 4↔9. Same self-inverse property.
- ROT18, ROT13 on letters plus ROT5 on digits. Covers mixed alphanumeric content.
- ROT47, shifts printable ASCII (33–126) by 47. Symmetric and covers punctuation, but output looks like noise.
- Caesar cipher, general shift by N. ROT13 is the self-inverse special case.
Historical note
The Usenet convention emerged in the early 1980s on newsgroups like rec.humor, where readers could opt to rotate spoiler-tagged posts. Many newsreaders still have “decode ROT13” as a single-keystroke feature. The name “ROT13” was formalised in RFC lore but was never an official protocol.
Frequently Asked Questions
Technically yes in the Caesar-cipher sense, but its key (13) is trivially guessable and the operation is public knowledge. Treat it as obfuscation, not security.
No. Only A–Z and a–z are shifted. Digits, spaces and symbols pass through unchanged.
Apply ROT13 again. Encoding and decoding are the same operation because 13 is half of 26.
Yes: use the Caesar cipher encoder for any shift 1–25. ROT13 is just the shift-13 special case.
No. Your text is used only to produce the rotated result and is not kept afterwards. Because ROT13 is obfuscation and not encryption, never paste anything genuinely confidential into any ROT13 tool.
Related Tools
Word Counter
Count words, characters, sentences and paragraphs with reading time, speaking time, keyword density and a Flesch readability score for essays, posts, captions and meta descriptions.
Password Generator
Generate strong random passwords with adjustable length, symbols, numbers and mixed case using cryptographic randomness.
Meme Text Generator
Add classic meme captions to a template or your own image. Set top and bottom text, tune font, color and stroke, then download or copy a PNG.
Emoji Kitchen
Try verified Google Emoji Kitchen sticker pairs, download PNGs, and get supported suggestions when a pair is not in the curated set.
Glitch Text Generator
Create Zalgo-style glitch text with Unicode combining marks. Choose intensity, preview variants and copy corrupted text for profiles, memes or horror posts.
City Name Generator
Generate fictional city, town, village and capital names for worldbuilding, maps, games, stories and mock data, with short notes for each result.
Tool available in other languages
- ROT13エンコーダー [JA]
- ROT13 인코더 [KO]
- Koder ROT13 [PL]
- ตัวเข้ารหัส ROT13 [TH]
- Codificador ROT13 [ES]
- Codificador ROT13 [PT]
- ROT13-kodare [SV]
- Bộ mã hóa ROT13 [VI]
- مُشفِّر ROT13 [AR]
- Encodeur ROT13 [FR]
- ROT13-Encoder [DE]
- Encoder ROT13 [ID]
- ROT13-encoder [NL]
- Codificatore ROT13 [IT]
- Кодировщик ROT13 [RU]
- ROT13 Kodlayıcı [TR]
- ROT13编码器 [ZH]