ROT13 Encoder/Decoder

Applies ROT13, the substitution that rotates each letter thirteen places through the alphabet. Because thirteen is half of twenty-six, encoding and decoding are the same operation — run any text through twice and you get the original back.

Live demo · real result from this tool

Result

Jul qvq gur puvpxra pebff gur ebnq? To get to the other side!

Processed on your device — nothing is uploaded.

How to use ROT13 Encoder/Decoder

  1. Type or paste your text.
  2. The rotated text appears immediately.
  3. To decode, paste the rotated text in — the operation is its own inverse.
  4. Only A–Z and a–z are affected; numbers, punctuation and other scripts are untouched.
  5. Applying it twice returns the original text exactly.
  6. Everything runs in your browser.

What it does and does not touch

Letters rotate: A becomes N, N becomes A, a becomes n. Case is preserved. Digits, spaces, punctuation and every non-Latin character pass through unchanged, which is why ROT13 text is instantly recognisable — the word shapes and punctuation survive, so it reads as plausible gibberish rather than as random bytes. The classic demonstration is that “WKXKXKX” and “JXKXKXK” are each other’s ROT13.

It is not encryption, and was never meant to be

There is no key. Anyone who recognises ROT13 can reverse it, and a computer can break it instantly by trying all 25 rotations. Its actual purpose, on Usenet from the early 1980s onward, was social: hiding a spoiler, a punchline or an offensive joke behind one deliberate step, so that reading it was a choice. It is a politeness convention wearing the costume of a cipher, and using it to protect anything real is a well-known category error.

ROT13 and the Caesar cipher family

ROT13 is the Caesar cipher with a shift of thirteen. Caesar reportedly used a shift of three; any shift from 1 to 25 works the same way, and all are broken by frequency analysis or simple brute force. Thirteen is special only because it is self-inverse, which saves having separate encode and decode functions. The variant ROT47 extends the idea across 94 printable ASCII characters, so it scrambles digits and punctuation too — and is equally unprotective.

Frequently asked questions

What is ROT13?
ROT13 is a simple letter substitution cipher that replaces each letter with the letter 13 positions after it in the alphabet. A becomes N, B becomes O, etc.
Why is ROT13 used?
ROT13 is used to obscure text (like spoilers or puzzle answers) without true encryption. It's easily reversible—applying ROT13 twice returns the original text.
Does ROT13 work on numbers?
No, standard ROT13 only affects letters A-Z. Numbers and special characters remain unchanged.
How do I decode ROT13?
Paste the encoded text into the same tool. Thirteen plus thirteen is twenty-six, a full rotation, so encoding and decoding are identical operations. There is no separate decode button because there is no need for one.
Is ROT13 secure?
Not remotely, and it does not claim to be. It has no key and is reversed by anyone who notices what it is. Use it to hide a spoiler, never to protect information.
What is ROT47?
A variant that rotates 94 printable ASCII characters by 47 instead of rotating 26 letters by 13, so digits and punctuation are scrambled as well. It is also self-inverse, and also provides no security.

Written by the ToolsRift team · Last updated

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close