ROT13 Cipher Encoder / Decoder

Apply the classic ROT13 cipher, which shifts each letter 13 places in the alphabet. Because ROT13 is its own inverse, the same tool encodes and decodes. A simple, fun way to obscure spoilers or puzzle answers — not real encryption. Runs in your browser.

What ROT13 is

ROT13 is a simple letter-substitution cipher that shifts each letter 13 places forward in the alphabet. A becomes N, B becomes O, and so on, wrapping around so that N becomes A again. Its clever property is that applying it twice returns the original text — because 13 is exactly half of the 26-letter alphabet, encoding and decoding are the same operation. It is one of the oldest and simplest text ciphers, famous more for convenience than security.

How ROT13 works

Each letter is rotated 13 positions. Since the alphabet has 26 letters, shifting by 13 and then by 13 again brings you back to where you started — a full 26-letter rotation. This is why the same tool both encodes and decodes: run "Hello" through it to get "Uryyb", and run "Uryyb" through it to get "Hello" back. Only letters are affected; numbers, spaces, and punctuation pass through unchanged. It is a specific case of the Caesar cipher, which shifts by any chosen amount.

What ROT13 is used for

ROT13's traditional use is hiding text that you do not want read accidentally but do not need to truly protect — spoilers, puzzle answers, punchlines, and mild content in online forums. Posting a movie spoiler in ROT13 means it is unreadable at a glance, so nobody sees it by accident, but anyone who wants to read it can decode it easily. It has a long history in internet culture for exactly this purpose. It is also a common teaching example for how substitution ciphers work.

ROT13 is not secure

It is important to be clear: ROT13 provides no real security. Because everyone knows the method and it requires no key, anyone can decode ROT13 text instantly — including this tool. It is meant for lightly obscuring text from casual view, never for protecting anything sensitive. For real confidentiality you need proper encryption with a secret key. Think of ROT13 as a way to make text "not immediately readable" for fun and courtesy, not as a lock. Everything runs in your browser.

Privacy: your text never leaves the browser

All processing happens locally, on your own device. Your text is never sent to servers, which makes the tool safe even for confidential content. When you close the tab, nothing remains stored.

Frequently asked questions

Why does the same tool encode and decode?
Because ROT13 shifts letters by 13, which is exactly half of the 26-letter alphabet. Applying it twice completes a full rotation back to the original, so encoding and decoding are the identical operation.
Is ROT13 secure for hiding sensitive information?
No. ROT13 offers zero real security — anyone can decode it instantly since the method is public and needs no key. Use it only to lightly obscure spoilers or puzzle answers, never for anything that needs to stay confidential.
Does it affect numbers and punctuation?
No. ROT13 only rotates letters. Numbers, spaces, and punctuation pass through unchanged, so only the alphabetic characters are transformed.
What is the difference between ROT13 and the Caesar cipher?
ROT13 is a specific Caesar cipher with a shift of 13. The Caesar cipher can shift by any amount; ROT13's shift of 13 is special because it makes encoding and decoding the same operation.