A JavaScript web page that implements this old internet trick.
©2004, Bob Beeman
Last Updated 2013-07-04 TH
Read More Important Notice

Rot-13 is one of the oldest tricks on the internet. It is not a "cryptographic" code, because it is not intended to (and doesn't) prevent anyone from understanding a message. Its real purpose is to prevent a reader from accidentally or unintentionally reading something that the reader would rather leave for another time. For example, the answer to a riddle, or a "spoiler" in a movie review.

Before typing or pasting your own text into the box, or pushing the button, see if you can guess what is already there. Its definitely something you have seen before, and you won't need your spectacles to read it [;-)   You can copy from, paste into, or just type text in the box. Since Rot-13 is its own inverse, repeatedly pushing the "Rot-13" button will toggle the text between plaintext and ciphertext.

More information about "Rot-13"
To use Rot-13 as it was intended, type everything you want people to easily read as you normally would. Paste the part you want to temporarily keep secret into the box in this page and push the "Rot-13" button. Then copy the resulting "ciphertext" into your document or EMAIL, replacing the "plaintext". When reader(s) want to understand that part of your document or message, they can easily translate it back to plain text, using either this page or one like it. A few News Group readers and EMAIL programs implement Rot-13 directly, but this is much less common than it used to be.

Rot-13 gets its name from the fact that it ROTates (shifts) all of the letters of the alphabet by 13 positions. A becomes N, B becomes O ... M becomes Z, N becomes A, etc. etc. Since the 13-position rotation is half the number of letters in the alphabet, coding the same thing twice (or any even number of times) gives you back what you started with, and the code is its own inverse. Upper and lower-case letters are handled separately, so letter case is not affected, and neither are characters other than letters.

Obviously, the logic of Rot-13 applies only to US-ASCII type text. If you are using Unicode characters from another language (e.g. Chinese, Korean, Arabic), the text will be unaffected. Note, however, that US-ASCII is a strict subset (characters 0 through 127) of Unicode, so any part of your text that is in US-ASCII will be transformed by Rot-13, even if the rest of it is in another character set.

This page is copyrighted "freeware"
©2004, Bob Beeman
That means that although it is copyrighted, it is intended for you to use for education or entertainment. You may use it yourself, copy and redistribute it, or even put it on your own website. I ask only that you not make any changes. If you reuse any of the code, make sure to list me as one of your sources.

My only reward for writing this is the 15 milliseconds of fame I receive from having my name here. Don't deprive me of that.

You can copy this page by simply doing a "Save As" in your browser and putting it somewhere on your hard drive (or your web site). If you stop there the background will be gone. To preserve the background, copy the following file into this same folder, without changing its name, by again using your browser's "Save As". The next time you refresh the page, the background should be restored:


I make NO guarantee of any kind.
This page may contain serious errors.
Use this page entirely at your own risk!