ROT13 Encoder and Decoder

ROT13 in one click: every letter shifts 13 places, so encoding and decoding are the same operation. Numbers, punctuation and spaces pass through untouched.

Runs in your browser — your code and data never leave this device

How do I encode or decode ROT13?

Paste your text: this free online ROT13 encoder decoder shifts every letter 13 places through the alphabet, while numbers, punctuation and spaces stay untouched. Encoding and decoding are the same step — run it twice and the original comes back — and the result copies to the clipboard or downloads as a .txt file.

Related tools

How to use the ROT13 Encoder and Decoder

  1. Type or paste your text into the Input box, or click Sample to load an example sentence.
  2. Click Apply ROT13. Every letter shifts 13 places through the alphabet — A becomes N, B becomes O, and so on.
  3. Numbers, spaces and punctuation are left exactly as they are, so the shape of the message stays recognisable.
  4. To decode, run the same operation on the ROT13 text. Copy the result or Download it as a text file.

For the full picture — what ROT13 is, why it is not encryption, and where it still shows up — read our guide: How to Encode Text with ROT13 (Free ROT13 Cipher).

What ROT13 is

ROT13 is a letter substitution cipher: each letter is replaced by the letter 13 places further along the alphabet. Because the alphabet has 26 letters, shifting by 13 twice brings you back to the start, which makes encoding and decoding the same operation. There is no key to remember and no separate decode step — the same button does both jobs.

It is one of the oldest tricks in computing. ROT13 appeared on early internet forums in the 1980s as a way to hide punchlines, puzzle solutions and spoilers: a reader who wanted to see the answer could decode it, while everyone else saw only scrambled text. It was never meant to keep secrets — it was a courtesy, a way of saying this part is optional.

Why ROT13 is not encryption

It is important to be honest about what ROT13 is not: it is not encryption, and it provides no security at all. Anyone who recognises the pattern can decode it in their head, and every ROT13 decoder on the internet will do it in one click. A message encoded with ROT13 is as readable as a message in plain text to anyone who tries for even a second.

That does not make it useless — it makes it a puzzle, a joke and a spoiler shield, not a lock. Never use ROT13 for passwords, private messages or anything that must stay secret. For real privacy you need real encryption, and for hiding a spoiler from a casual glance, ROT13 is exactly the right amount of effort.

Where ROT13 still shows up

ROT13 survives in places where obscurity, not secrecy, is the goal. Puzzle hunts and escape rooms use it as a first-step cipher. Email addresses are sometimes ROT13-encoded to slow down the simplest harvesting bots, though that barely works today. Forums still use it for spoilers, and programmers use it as a classic first exercise when learning string manipulation, because it is simple enough to write in a few lines and satisfying to get right.

It also has a neat mathematical property: because 13 is exactly half of 26, ROT13 is its own inverse, which is rare among ciphers. Shift by any other number and you need a different operation to decode. Shift by 13 and one function does everything — which is why this page has a single button.

ROT13 is also a gentle introduction to how ciphers work in general. Every substitution cipher replaces letters by a rule, and ROT13 is the simplest rule there is: add 13, wrap around at Z. Once you understand that, the Caesar cipher is the same idea with a different shift, and the Vigenere cipher is the same idea with a shifting shift. Programmers still write ROT13 as a first exercise because it teaches string handling, modular arithmetic and character codes in a single short function — and because the result is immediately satisfying to test.

ROT13 decoder online free: the same step, both ways

A rot13 decoder online free works the same way as the encoder, because ROT13 is self-inverse: shifting a letter 13 places twice brings it back to where it started, since the alphabet has 26 letters. To decode rot13 text online, paste the encoded text and run it through the same tool — the result is the original message, with numbers, punctuation and spaces exactly where they were.

One thing to be clear about: ROT13 is not encryption and gives no security at all. It hides a spoiler or a puzzle answer from a casual glance, and that is all it is for — anyone can reverse it in seconds. This tool does ROT13 only: no other shift amounts, no cracking, and no claim that your text is protected.

Frequently asked questions

How do I decode ROT13 text?

Run the same operation again. ROT13 is its own inverse: shifting by 13 twice returns every letter to its original place, so the same button encodes and decodes.

Does ROT13 change numbers and punctuation?

No. Only the 26 letters of the English alphabet are shifted. Numbers, spaces, punctuation and letters from other alphabets pass through unchanged.

Is ROT13 secure?

No. ROT13 provides no security at all and anyone can decode it instantly. It is a puzzle and a spoiler shield, not encryption. Never use it for anything private.

Why 13 and not another number?

Because 13 is half of 26, shifting twice returns to the start. That makes ROT13 its own inverse, so one operation both encodes and decodes.

Is my text uploaded anywhere?

No. This tool runs entirely in your browser using JavaScript. Your text is never uploaded, stored or sent anywhere — everything stays on this device.

Does ROT13 keep my text secret?

No. ROT13 shifts each letter 13 places, which anyone can reverse in seconds — it gives no security at all. It is for hiding spoilers and puzzle answers from a casual glance, not for protecting anything.

How do I get the original text back?

Run it through the same tool. ROT13 is self-inverse: encoding and decoding are the same step, so pasting encoded text and encoding it again returns the original.

What happens to numbers and punctuation?

Nothing — they pass through untouched. Only letters are shifted, 13 places each, so numbers, punctuation, spaces and line breaks stay exactly where they were.