ROT13 Encoder & Decoder

ROT13 is a classic letter puzzle: every letter moves 13 places through the alphabet, so A becomes N, B becomes O, and N becomes A again. That means the same button encodes and decodes — run text through ROT13 once to hide it, and run the result through again to get your original text back. Paste your text, press the button, and copy the result. Numbers, spaces and punctuation stay exactly as they are. Everything runs in your browser and nothing is saved or sent anywhere.

How to use this ROT13 encoder and decoder

Type or paste your text in the first box, then press “Encode or decode with ROT13”. The result appears in the second box — press “Copy result” to copy it to your clipboard. There is no separate decode button, because ROT13 is its own reverse: paste an encoded message in the first box and press the same button to read it. If the first box is empty, you get a plain-words message instead of a blank result.

How it works

ROT13 is a Caesar cipher with a shift of 13, named after “rotate by 13 places”. Each letter moves 13 places forward in the alphabet, wrapping around at the end: A becomes N, B becomes O, M becomes Z, N becomes A, and Z becomes M. Because the alphabet has 26 letters and 13 is exactly half of 26, shifting twice moves a letter 26 places — right back to where it started. That is why encoding and decoding are the same step. Capital letters stay capital and small letters stay small; numbers, spaces and punctuation are not letters, so they pass through unchanged.

Worked example

Type “Hello” and press the button — the result is “Uryyb”. Paste “Uryyb” back in and press the button again — the result is “Hello”. A full sentence works the same way: “Hello, World!” becomes “Uryyb, Jbeyq!”, with the comma, space and exclamation mark untouched. The whole alphabet “ABCDEFGHIJKLMNOPQRSTUVWXYZ” becomes “NOPQRSTUVWXYZABCDEFGHIJKLM”.

Frequently asked questions

Why is there no separate decode button?

Because ROT13 is its own reverse. Shifting a letter 13 places twice moves it 26 places, which is the full alphabet, so it lands back on the original letter. One button encodes plain text and decodes ROT13 text — the tool cannot tell which one you pasted, and it does not need to.

Is ROT13 secure?

No. ROT13 is a puzzle, not encryption — anyone who knows the trick can read it in seconds, and there is no key or password. It is fine for hiding a spoiler or a joke answer, but never use it for passwords, private messages or anything that must stay secret.

What happens to numbers and punctuation?

Nothing — they pass through unchanged. Only the 26 letters of the English alphabet move. So “Meet at 5pm!” becomes “Zrrg ng 5cz!”, with the 5 and the exclamation mark exactly where they were.

Is my data private here?

Yes. The conversion runs entirely in your browser. Nothing you type is uploaded, stored or sent to any server.

What other tools can I use?

Try our Morse Code Translator for dots and dashes, the Base64 Encoder & Decoder for safe text encoding, and the Text Reverser for another fun text trick. See all of them on our tools page, use our free calculators, or return to the homepage.

Disclaimer: ROT13 is a simple letter swap for fun and puzzles, not real security. Never use it to protect passwords or private information. No personal data is collected or saved.

Scroll to Top