ROT13 Converter

ROT13 result
–
Encodes toEncodes toEncodes to
A ↔ NH ↔ UO ↔ B
B ↔ OI ↔ VT ↔ G
C ↔ PJ ↔ WU ↔ H
D ↔ QK ↔ XV ↔ I
E ↔ RL ↔ YW ↔ J
F ↔ SM ↔ ZX ↔ K
G ↔ TN ↔ AY ↔ L, Z ↔ M
The self-inverse trick, worked out: The quick brown fox becomes Gur dhvpx oebja sbk - and feeding Gur dhvpx oebja sbk back in returns the fox. Every letter moves 13 places (half of 26), digits and punctuation stay put by convention. The same tool is therefore both encoder and decoder; there is no separate mode.
Shift it any other way and the magic breaks: Caesar's classic shift-3 needs the key passed along to undo, while 13 is the only shift that undoes itself. That is exactly why ROT13 became the forum convention for spoilers and puzzle answers - a reader either opts in by running it through a converter, or scrolls past. With only 25 possible shifts in the whole family, though, none of them hides anything from a determined reader; they are nostalgia and puzzle mechanics, not encryption. The character-level primitive this converter runs on, String.prototype.charCodeAt (MDN), is the same building block behind every find-and-replace and cipher toy on the web.
More text toys: text to binary shows what your words look like to a machine, Base64 encode-decode packs data into text-safe form, and the reverse text tool flips strings backwards.

ROT13 shifts every letter 13 places around the alphabet - a becomes n, b becomes o, z wraps back to m - and because 13 plus 13 makes 26, applying it twice returns the original text. That self-inverse trick means one tool is both encoder and decoder: paste spoiler text to read it, or paste anything to hide it. This page converts as you type, entirely in your browser.

Worth knowing before you trust it with anything real: ROT13 is an obfuscation, not encryption. There are only 25 possible shift ciphers, so trying them all by hand takes minutes - its actual job is keeping plot spoilers and puzzle answers unreadable at a glance on forums and in newsgroups, a tradition that goes back to the Usenet era. Digits and punctuation pass through untouched by convention.

How to use

  1. Type or paste your text into the box - the ROT13 appears below it live.
  2. To decode, paste ROT13 text the same way: running it through again restores the original.
  3. Hit Copy to take the result, or Clear to start over.

Frequently asked questions

How do I decode ROT13 text?

With the same tool - that is the elegant part. ROT13 shifts letters exactly 13 places, and 13 + 13 = 26, a full trip around the alphabet, so encoding and decoding are the identical operation. Paste the encoded text and the original appears; no mode switch, no separate decoder.

Why 13 and not some other shift?

13 is the only shift that is its own inverse on a 26-letter alphabet: a half-turn means applying the cipher twice lands back on the start. Any other shift (say Caesar's classic 3) needs a different key to undo, which is why ROT13 became the convention for 'hide this from a glance' - no key to remember because there is none.

Is ROT13 encryption?

No. It hides text from a casual glance, nothing more: there are only 25 possible shifts, and a reader who suspects ROT13 (or any shift cipher) can try them all in under a minute - this is the classic classroom exercise when ciphers are introduced. Never use it for passwords, secrets or personal data; for real encryption you want a modern algorithm like AES, not a 2,000-year-old idea.

What happens to numbers and punctuation?

By long-standing convention they pass through unchanged - only the 26 letters rotate. That is why ROT13 works well for spoiler text (sentence structure stays readable even when words do not) but would be a poor choice for hiding numeric data like PINs or prices, which sit in plain sight.

Related tools