ROT13
Rotate the alphabet by 13 places and a message becomes unreadable to a casual glance — yet anyone who knows the trick reverses it with the very same operation, because 13 is exactly half of 26. ROT13 is the internet's oldest spoiler tag, born on 1980s Usenet and still at work in geocaching hints, puzzle layers and programmer in-jokes. This page converts it instantly, along with the rest of the half-turn family: ROT5, ROT18 and ROT47.
ROT13 is the Caesar cipher with its shift fixed at 13. Because 13 is half the alphabet, the operation is its own inverse: encoding and decoding are literally the same action, so this page needs no mode switch. It provides zero secrecy — anyone can reverse it, and that is the point. ROT13 is a curtain, not a lock: a social agreement to hide text only from eyes that have not chosen to look.
Written EBG13 by its own fans (that is “ROT13” rotated). Its siblings rotate other symbol sets by half their size: ROT5 for digits, ROT18 for letters-and-digits, ROT47 for printable ASCII — all included in the tool below.
Convert — every ROT is its own undo
No mode switch, deliberately: every member of this family is an involution. Everything runs in your browser.
The half-turn is the whole design
Split the alphabet into two halves, A–M and N–Z, and swap each letter with the letter 13 places away: A↔N, B↔O, C↔P, and so on through the table below. In Caesar's arithmetic it is (x + 13) mod 26 — and because 13 + 13 = 26, applying it twice is adding a full turn, which changes nothing. That is the entire secret of ROT13's survival: encode and decode collapse into one gesture, so no one ever needs a separate decoder, a key, or a setting. Only letters change; numbers, spaces and punctuation pass through, and letter case is preserved.
One idea, four sizes
ROT13 is the middle child of a small family that all runs on the same insight: if you rotate a symbol set by exactly half its size, the operation undoes itself. A quarter-turn (say, shifting digits by 3) would need a separate decode operation and a separate name; the half-turn needs neither, which is why these four — and only these four — became conventions rather than curiosities:
| Name | Symbol set | Size | Shift | Self-inverse? |
|---|---|---|---|---|
| ROT5 | Digits 0–9 | 10 | 5 | Yes — 0↔5, 1↔6… |
| ROT13 | Letters A–Z | 26 | 13 | Yes — this page's headline |
| ROT18 | Letters + digits | 26 + 10 | 13 on letters, 5 on digits | Yes — two half-turns bolted together |
| ROT47 | Printable ASCII (! to ~) | 94 | 47 | Yes — letters stop being letters |
If your text mixes letters and digits and resists ROT13, ROT18 is the next thing to try before suspecting anything cleverer — the tool above switches between all four so the experiment costs one click each.
A Usenet etiquette that outlived Usenet
The cipher itself is Caesar's, two thousand years old. ROT13 as a named, standardised practice belongs to the early internet: on the Usenet forums of the 1980s, it became the agreed way to post a film's ending, a joke's punchline or a puzzle's answer to a public group. Newsreader software built it in — a keystroke (often Ctrl-L in later readers, or a menu command) rotated the text in place — and the convention spread with the medium. The problem it solved was social, not cryptographic: how do you share a spoiler with the people who want it, in a room full of people who don't?
ROT13's answer — a curtain that anyone may lift and no one lifts by accident — proved so durable that it survived the medium that created it. Geocaching adopted it wholesale: the hints on geocaching.com are traditionally ROT13-encoded, so millions of players learn the cipher as a rite of passage, and a “ROT13” label on any puzzle still functions as a friendly difficulty rating: this layer costs you ten seconds. Programmers keep it as an in-joke and a smoke test — the string EBG13 appears in more configuration files, test fixtures and Easter eggs than anyone will admit — and email addresses were long published ROT13'd (or simply spelled) to slow the simplest harvesting bots. None of these uses wants secrecy. All of them want exactly what a half-turn provides: friction, by agreement.
- 1st century BC — the underlying cipher is Caesar's shift.
- 1980s — Usenet standardises ROT13 as the spoiler convention; newsreaders build it in.
- 2000s–today — geocaching hints, puzzle layers and programmer folklore keep it in daily use.
Two halves, swapped
The strip under the tool generates the alignment for whichever family member is selected. For ROT13 itself, the whole cipher is this:
| Plain | A B C D E F G H I J K L M N O P Q R S T U V W X Y Z |
|---|---|
| ROT13 | N O P Q R S T U V W X Y Z A B C D E F G H I J K L M |
Read it either way — top row to bottom to encode, bottom to top to decode, the pairs are the same. A useful memory hook: the alphabet's two most famous halves swap wholesale, so E (5th letter) pairs with R (18th), and the commonest word in English, THE, becomes GUR — the single most recognisable fragment in all of puzzle cryptography.
The family, demonstrated by the tool
Example 1 — HELLO WORLD in ROT13
Letter by letter: H→U, E→R, L→Y, O→B, W→J, R→E, D→Q. H (position 8) swaps with U (position 21); E swaps with R; the double L becomes double Y. Paste URYYB JBEYQ back into the tool and HELLO WORLD returns — shifting by 13 twice totals 26, a full turn of the alphabet.
Example 2 — a sentence, with its tell-tale opening
GUR appears twice, exactly where THE belongs — the fastest human tell that a text is ROT13 (or at least a Caesar-family shift worth brute-forcing). The Caesar solver finds shift 13 by statistics; a practised eye finds GUR first.
Example 3 — the siblings in one line each
ROT5 leaves the letters alone and turns the digits; ROT18 does both jobs at once, which is why a room number becomes letters-and-digits soup; ROT47 rotates everything printable, so punctuation moves too and the output stops looking like language at all — the same half-turn, wearing a bigger alphabet.
Nothing to break — and that is the design
ROT13 was never security, and analysing it as failed encryption misses what it is. Anyone can reverse it; frequency analysis is not even needed — the 25-shift brute force on the Caesar solver finds shift 13 instantly, and the Identifier names ROT13-shaped text on sight. Its purpose is etiquette: a speed bump, not a lock. Readers who want the spoiler click to reveal; readers who do not, scroll past unspoiled. Puzzle designers borrow it for the same reason — a layer that costs solvers ten seconds but proves they know the classics.
The honest failure modes are social ones. ROT13 does not protect anything from anyone who is looking — posting genuinely private material “protected” by ROT13 is the classic beginner's error, and archives of old forums are full of it. It also fails silently in the other direction: a reader who does not know the convention sees gibberish and may assume corruption, which is why well-mannered posts label the rotation (“spoilers below, ROT13”). Used with its label and its limits understood, it is not a weak cipher at all. It is a successful convention — and conventions, unlike ciphers, get stronger the more widely they are known.
- Security status: zero as secrecy; perfect as a spoiler/forcing function.
- What gives it away: GUR for THE; English word shapes intact; it is usually labelled anyway.
- If ROT13 doesn't open a text: try ROT18 above if digits are scrambled too, then the Caesar solver for other shifts, then the Identifier.
Caesar, Atbash, and ROT-N
| Relative | How it differs | Where it lives |
|---|---|---|
| Caesar (general) | Any shift, not just 13 — but then encode and decode are different operations and a key exists to lose | The Caesar page; the comparison is spelled out in Caesar vs ROT13 |
| Atbash | The other famous involution: a mirror instead of a rotation, keyless since antiquity | The Atbash page |
| ROT-N | The generic name for “rotate by N” — any N, on any set; only the half-turns are self-inverse | The ROT-N page covers arbitrary shifts |
Why 13 and not another number is the question everyone asks, and the table in How It Works is the whole answer: only the half-turn collapses encode and decode into one operation. ROT13 is not the most famous member of its family by accident or by merit — it is the only letter-sized member that could become a one-click convention.
Why a non-cipher survived forty years
Technologies usually die when they stop being useful; ROT13 survives because its uselessness is the use. A cipher everyone can break, that everyone agrees to break only on purpose: that is not failed encryption, it is successful etiquette — and etiquette scales for decades. It lives in geocaching hints, in puzzle hunts as the recognised first shell of layered messages, in forum spoiler practice and its descendants (the spoiler tag is ROT13's idea with better typography), in programming culture as a wink — EBG13 in config files, rot13 functions shipped in standard libraries and text editors as a toy that never got removed. It is also, quietly, a teaching tool: the first cipher many people ever reverse, because reversing it costs nothing and the reward — the hidden punchline — is immediate.
Read these by eye
ROT13 is meant to be eye-readable with practice. GUR is THE; use it as your anchor.
Practice 1
Reveal the answer
“THE ANSWER IS IN THE BOX”. GUR opens it, and NAFJRE's shape — a six-letter word after THE — resolves as ANSWER once A↔N and F↔S are in hand.
Practice 2 — spot the wrong tool
Reveal the answer
“ROOM 101” — but not by ROT13, which would leave the digits untouched (EBBZ 101). The scrambled digits say ROT18: letters rotated by 13, digits by 5, in one pass. Choosing the family member by what else moved is the whole skill this page teaches.
For paper solving, the Caesar wheel at shift 13 is ROT13 as a physical object.
Frequently asked questions
Why 13 and not another number?
Because only 13 is half of 26, and only the half-turn makes the operation its own inverse. Any other shift needs a distinct decoding step and a remembered key; 13 needs neither, which is exactly what a social convention requires.
Is ROT13 encryption?
Technically it is a cipher; practically, no one should rely on it as encryption. It hides text from a casual glance and from no one else. If a message would embarrass or endanger anyone when read, ROT13 is not a protection — it is a label saying “please don't read this”, honoured only by the polite.
What is the difference between ROT13 and ROT18?
ROT13 rotates letters only and leaves digits as they are. ROT18 applies ROT13 to the letters and ROT5 to the digits in the same pass, so a mixed string like ROOM 101 becomes EBBZ 656. If a text's digits look scrambled too, ROT18 is the tool — it is in the selector above.
Why do geocaching hints use ROT13?
Because the social contract matches perfectly: the hint must be available at the cache site, to the player who is stuck, without spoiling the search for the player who is not. A half-turn is readable on a phone in seconds and invisible to a scrolling eye — and geocaching.com's long-standing convention made it the dialect every player learns first.
Can ROT13 be applied twice for “double security”?
No — applying it twice returns the original text exactly. That is the involution property. “Double ROT13” is a joke programmers tell; if you meet it in a puzzle, the designer is winking at you.
Does my text leave my device?
No. All four conversions run in your browser.