What is a ROT13 encoder?
A ROT13 encoder rotates every letter in your text 13 places through the alphabet. A becomes N, B becomes O, and N becomes A again, because 13 is exactly half of 26. The default text on this page — Hello World — becomes Uryyb Jbeyq, with 11 characters, and applying ROT13 to that result gives Hello World back.
The need comes up whenever text has to be hidden in plain sight. Puzzle makers hide answers, forum users hide spoilers, and game players hide solutions — all with a cipher anyone can undo in seconds. ROT13 is not security; it is a polite way of saying do not read this yet.
This tool applies ROT13 live as you type. There is no mode to pick, because the same function encodes and decodes — run the text through once to hide it, and once more to show it. Everything runs in your browser — your text never leaves your device, nothing is stored, and there is no account to create.
How ROT13 works
ROT13 shifts each letter 13 places forward in the alphabet, wrapping around at the end. A shifts to N, M shifts to Z, and N shifts to A, because there are only 26 letters and 13 is half of that. The shift is the same for every letter, and it never changes a letter's case — a capital H becomes a capital U, and a small e becomes a small r.
Numbers, spaces, and punctuation are left alone. Hello World has a space in the middle, and the space stays a space; the 11 characters of the result are the same 11 characters of the input, only the letters have moved. That is why the character count on this page never changes with ROT13 — the output is always exactly as long as the input.
The clever part is that 13 is half of 26, so shifting twice is the same as shifting 26 places, which is a full circle. ROT13 of ROT13 is the original text. No other shift does this — a shift of 3 needs a shift of 23 to undo it — which is why ROT13 is the one cipher with a single button instead of an encode and a decode mode.
That self-inverse property is also what makes ROT13 easy to spot. A message in ROT13 looks like ordinary English with the wrong letters — the word shapes survive, the spaces survive, and the length survives. A reader who has seen it once recognises it at once, which is fine for a spoiler and useless for a secret. The cipher hides the words from a passing glance, and nothing more.
The alphabet, rotated 13 places
The rotation is easiest to see as two halves swapped. The first half of the alphabet, A to M, maps onto the second half, N to Z: A becomes N, B becomes O, C becomes P, and so on up to M becomes Z. The second half maps back: N becomes A, O becomes B, and Z becomes M.
The default text shows the mapping in action. H is the 8th letter, and 8 + 13 = 21, which is U. The small e is the 5th letter, and 5 + 13 = 18, which is r. The small l is the 12th letter, and 12 + 13 = 25, which is y. Hello becomes Uryyb, and World becomes Jbeyq, letter by letter.
The same rule holds for every letter, in both cases. A capital A and a small a both shift 13 places, and both keep their case. A base64 encoder decoder does a different kind of letter-shuffling for data, turning bytes into safe text instead of hiding words.
Learning the mapping takes a few minutes with a trick: learn the pairs. A goes with N, B goes with O, C goes with P, and so on — each letter is paired with the letter 13 places away, and the pair works both ways. Once you know that A and N are partners, E and R are partners, and T and G are partners, you can read short ROT13 messages without a tool at all.
A worked example: hiding a spoiler
Take the default text exactly as it sits on the page: Hello World. It is 11 characters long. ROT13 turns it into Uryyb Jbeyq — also 11 characters, because ROT13 never changes the length. A reader who does not know the cipher sees nonsense; a reader who does reads it at once.
Now run the result through again. Uryyb Jbeyq becomes Hello World, the original text, because shifting 13 places twice is a full 26-place circle. That is the whole trick: the same tool, the same button, hides and shows the text.
Try a second one. ABC xyz 123 becomes NOP klm 123 — 11 characters, with the letters shifted and the numbers and spaces untouched. The digits 123 stay 123, because ROT13 only moves letters. A password generator makes real secrets the way ROT13 makes fake ones, and a word counter measures the text before and after.
Who uses a ROT13 encoder, and why
Puzzle makers are the biggest users. A crossword clue, a treasure hunt, and an escape room all hide answers in ROT13, because the solver can undo it without a key or a tool — just the alphabet and 13 places. A puzzle that needs a computer to solve is a chore; a puzzle in ROT13 is a game.
Forum users are the second group. A spoiler for a film or a book is posted in ROT13 so that only readers who want to see it will decode it. The spoiler sits in plain sight, harmless to anyone scrolling past, and readable to anyone who chooses to decode it.
Programmers and jokers are the third group. ROT13 shows up in code as a joke, in test data as a quick disguise, and in chat as a way to hide a punchline. The tool on this page handles all three uses — paste, read the result, copy — which covers most of what anyone needs.
Newsgroup readers were the original users, and the habit survives. In the early days of internet forums, ROT13 was the agreed way to hide the ending of a film or a joke with an offensive punchline, so that only readers who chose to decode it would see it. The convention worked because everyone knew the same shift, and no key ever had to be shared.
ROT13 vs real encryption
ROT13 is not encryption, and it is not meant to be. Real encryption needs a secret key, and ROT13 has no key — the shift is always 13, and everyone knows it. Anyone who sees Uryyb Jbeyq can decode it in seconds, with or without a tool. ROT13 hides text from casual glances, not from anyone trying.
The same text-tools family on this site does the real security job. A password generator makes secrets that cannot be guessed, and a base64 encoder decoder moves data safely without claiming to protect it. ROT13 sits between them: it changes the text, but it protects nothing.
The practical rule is simple: use ROT13 for spoilers, puzzles, and jokes, and never for passwords, private messages, or anything you would mind a stranger reading. If the text matters, use a real password and a real encrypted channel instead.
Common ROT13 mistakes
The most common mistake is thinking ROT13 is secure. It is not. It is a party trick with a fixed shift of 13, and any reader who knows the cipher decodes it instantly. Never use ROT13 for a password, a private note, or anything secret.
Second: expecting ROT13 to hide numbers. It only moves letters. ABC xyz 123 becomes NOP klm 123, and the 123 is still there for anyone to read. If the numbers matter, ROT13 does not hide them.
Third: applying ROT13 twice by accident and thinking the text is broken. Applying it twice returns the original, so a text that comes back unchanged was encoded twice, not broken. Apply it once to hide, once more to show — and keep track of which step you are on.
Fourth: using ROT13 on text in another alphabet. ROT13 only shifts the 26 letters of the English alphabet. Letters with accents, and letters from other scripts, pass through unchanged, so the result is only partly hidden.
How to use this ROT13 encoder
Using this tool is simple. Paste your text into the box, or type it directly. The result appears instantly in the output box, with its character count shown above it. There is no button to press and no mode to pick — the same function encodes and decodes.
To decode a ROT13 text, paste it in and read the output — the output is the original. To encode a second piece of text, select all, delete, and paste the new one. The character count never changes, because ROT13 only moves letters and never adds or removes characters.
Everything runs in your browser. No sign-up, no account, no data sent anywhere — your text never leaves your device. It works offline once the page has loaded, so you can use it on a plane or anywhere else you hide a spoiler. Try it with something real before you need it: type a sentence, read the ROT13 result, and decode it back. For a cipher that uses a key you choose, try the text encryptor.