RevealTheme logo

ROT13 Encoder & Decoder

Transform text with ROT13, a 13-position Caesar cipher that is its own inverse, so the same operation both encodes and decodes.

How to use this tool

  1. 1

    Type or paste your text into the input box.

  2. 2

    Read the transformed result in the output panel directly below as you type.

  3. 3

    Click Copy to put the result on your clipboard, then paste it wherever you need it.

  4. 4

    To decode ROT13 text, paste it into the same input box; running ROT13 again restores the original.

What is ROT13 and how does it work?

ROT13 ('rotate by 13 places') is a simple letter-substitution cipher, a specific case of the Caesar cipher with a fixed shift of 13. Each of the 26 letters is replaced by the letter 13 positions later in the alphabet, wrapping around from Z back to A: A becomes N, B becomes O, and so on. Because 13 is exactly half of 26, applying the transformation a second time shifts each letter another 13 positions and lands back on the original letter, which makes ROT13 self-inverse: a single function both encodes and decodes. This tool implements ROT13 on the basic Latin alphabet only. It shifts uppercase A to Z and lowercase a to z while preserving case, and it leaves everything else untouched: digits, spaces, punctuation, line breaks, and any accented or non-Latin characters pass through unchanged. ROT13 has roots in Usenet culture, where it was a convention for hiding spoilers, puzzle answers, and offensive jokes so readers had to deliberately decode them. It offers no cryptographic security whatsoever; the key is fixed and public, so anyone can reverse it instantly. Think of it as light obfuscation or a reversible scrambling trick, not encryption.

Common use cases

  • Hide a spoiler, plot twist, or puzzle answer in a forum or chat so readers must deliberately decode it.

  • Reproduce or decode classic Usenet and newsgroup posts that used ROT13 to mask punchlines and offensive jokes.

  • Teach students the Caesar cipher and modular arithmetic with a concrete, self-inverse example.

  • Lightly obfuscate a hint or answer key in documentation or a quiz so it is not readable at a glance.

  • Decode ROT13 strings you encounter in CTF challenges, crackmes, or programming exercises.

  • Quickly scramble a short note in a non-sensitive context where you only need casual concealment, not real security.

Frequently asked questions

Is ROT13 secure encryption?
No. ROT13 is obfuscation, not encryption. The shift is fixed and publicly known, so anyone can decode the text instantly. Never use it to protect passwords, secrets, or any sensitive data.
Why is there no separate decode button?
ROT13 is self-inverse: shifting by 13 twice returns the original because 13 plus 13 equals 26, a full trip around the alphabet. So encoding and decoding are the same operation. Paste ROT13 text in and you get the plain text back.
What happens to numbers, spaces, and punctuation?
They are left exactly as-is. This tool only rotates the 26 basic Latin letters (a-z and A-Z) and preserves their case. Digits, symbols, whitespace, and line breaks pass through unchanged. If you also need digits rotated, you are looking for ROT13.5 or ROT47, which this tool does not implement.
Does it handle accented or non-English letters?
No. Characters like e-acute, n-tilde, umlauts, or any non-Latin scripts (Cyrillic, Greek, CJK) are passed through untouched, since the cipher is defined only over the 26-letter English alphabet. Accented letters will appear unchanged in the output.
Is my text uploaded to a server?
No. The transformation runs entirely in your browser with JavaScript. Nothing you type is sent anywhere, logged, or stored, so it is safe to use offline once the page has loaded.
How is ROT13 different from ROT47?
ROT13 only rotates letters and leaves other characters alone. ROT47 operates on a wider range of printable ASCII (including digits and punctuation) by rotating 47 positions, scrambling far more of the text. This tool performs ROT13 specifically.

Related tools