ROT13 Cipher
Encode or decode ROT13 text instantly. ROT13 is its own inverse, so the same button undoes it.
ROT13 shifts every letter 13 places through the alphabet. A becomes N, B becomes O, and so on. Numbers, spaces and punctuation stay exactly the same, and applying ROT13 twice gives you back the original text.
How to Use the ROT13 Cipher
ROT13 is the simplest cipher there is. It swaps every letter for the letter 13 places later in the alphabet, and doing it twice brings the original text back. This free tool does the swap for you in seconds. Here is how to use it, step by step.
- Type your text. Put your message in the first box. You can type a single word, a sentence, or a whole paragraph. The result appears in the second box the moment you type, so there is no button to press.
- Read the result. Every letter has moved 13 places. The word hello becomes uryyb, and the sentence "Hello, World!" becomes "Uryyb, Jbeyq!". Numbers, spaces and punctuation stay exactly the same.
- Use the Encode button. If you want to be sure the result is fresh, click "Encode (ROT13)". It runs the same shift on whatever is in the first box and shows the result below.
- Use the Decode button to undo it. ROT13 is its own inverse, so decoding is the same step as encoding. Paste ROT13 text in the first box, click "Decode (ROT13)", and the original text appears in the result box.
- Copy the result. Click "Copy result" and paste it anywhere plain text works. ROT13 text is still plain text, so it works in messages, comments, forums and documents.
- Test it by encoding twice. Take the result, paste it back into the first box, and run the tool again. You will get your original text back, letter for letter. That is how you know the cipher worked.
That is all there is to it. Type, copy, and your message is hidden from anyone who just glances at it.
What Is ROT13?
ROT13 is short for "rotate by 13 places". It is a substitution cipher, which means each letter is replaced by another letter using a fixed rule. The rule is simple: move 13 places forward in the alphabet, and wrap around at the end. A becomes N, B becomes O, C becomes P, and so on until M becomes Z. Then the second half wraps back: N becomes A, O becomes B, and Z becomes M.
The number 13 is special because the alphabet has 26 letters, and 13 is exactly half. That is why ROT13 is its own inverse. Shifting by 13 twice moves a letter 26 places, which is a full trip around the alphabet, so the letter lands back where it started. No other shift does this. A shift of 5 needs a shift of 21 to undo it, but a shift of 13 undoes itself.
ROT13 has been used for decades on forums and newsgroups to hide spoilers, punchlines and answers to puzzles. The idea was never to keep secrets safe from a serious code breaker. It was to hide a sentence from a casual reader who did not want to see it yet. Anyone who knows the trick can read it in seconds, and a computer can crack it at once. Think of ROT13 as a spoiler tag, not a lock.
The ROT13 Alphabet
Here is the full mapping, so you can check the tool by hand. Each plain letter sits above the letter it becomes.
| Plain letter | Becomes | Plain letter | Becomes |
|---|---|---|---|
| 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 |
Capital letters stay capital and small letters stay small. The letter A becomes N and the letter a becomes n. The table works the same way in both cases, and the tool keeps the case of every letter it shifts.
Where ROT13 Is Used Today
ROT13 is old, but it is still used every day in places where a spoiler needs hiding. The most common use is on forums and puzzle sites, where an answer is posted in ROT13 so that only readers who want to see it will decode it. A crossword clue, a quiz answer, or the ending of a film can sit in plain sight, safe from anyone who does not want it spoiled, because the text looks like nonsense until it is decoded.
Programmers use ROT13 too, often as a test or a joke. It appears in code challenges, in email signatures, and in sample data, because it is the simplest cipher to explain and the easiest to write. A programmer can write ROT13 in one line of code, which makes it a handy example when teaching how ciphers work. It is also used to hide email addresses from simple spam bots, though that trick stopped working years ago, because modern bots decode ROT13 without any trouble.
You will also find ROT13 in games and in chat. Players hide hints in ROT13 so that only friends who know the trick can read them. Chat groups use it for jokes and for surprise messages. In every case the point is the same: ROT13 does not keep a secret from someone who tries to read it. It keeps a message from being read by accident, by someone who was not looking for it.
Common Mistakes to Avoid
- Using ROT13 for real secrets. ROT13 is not secure. Anyone can decode it in seconds, and there are only 25 possible shifts to try. Never use it for passwords, private messages, or anything you truly need to hide.
- Forgetting that numbers do not change. ROT13 only shifts letters. The numbers in a message stay readable, so a date or a score in ROT13 text is still plain to see.
- Encoding twice by accident. If you paste already encoded text into the tool and run it again, you get the original back. That is correct behaviour, not a bug, but it surprises people who expect the text to get more scrambled.
- Expecting it to hide word length. ROT13 keeps every space and every word length. A reader can guess short words from their shape, so "I" is still one letter and "the" is still three.
- Mixing ROT13 with other ciphers. ROT13 combined with a real cipher is fine, but ROT13 on its own adds no security to a message that is already encoded. It only hides text from a casual glance.
Frequently Asked Questions
What does ROT13 stand for?
ROT13 stands for "rotate by 13 places". Every letter is replaced by the letter 13 places later in the alphabet, wrapping around at the end, so A becomes N and N becomes A.
How do I decode ROT13?
Apply ROT13 again. It is its own inverse, so encoding a second time returns the original text. Paste the encoded text in the first box and click "Decode (ROT13)".
Does ROT13 change numbers and punctuation?
No. Only the letters A to Z change. Numbers, spaces, punctuation and symbols stay exactly the same, and capital letters stay capital.
Is ROT13 secure?
No. ROT13 is a spoiler cipher, not real security. There are only 25 possible shifts, so anyone can try them all in seconds. Never use it for passwords or private information.
Why is 13 the magic number?
Because the alphabet has 26 letters, and 13 is exactly half. Shifting by 13 twice moves a letter 26 places, a full circle, so it lands back where it started. No other shift does this.
Does the tool save my text?
No. Everything runs in your browser. Nothing you type is sent to a server or stored anywhere.