ROT13 Encoder / Decoder
Encode or decode text with ROT13, same operation in both directions.
What is ROT13 Encoder / Decoder?
A ROT13 decoder is a tool that applies the ROT13 substitution cipher to text by rotating each letter 13 positions through the alphabet. Because the English alphabet has 26 letters, applying ROT13 twice returns the original text, which means the same function handles both encoding and decoding. The cipher leaves digits, punctuation, and whitespace untouched and only transforms A-Z and a-z.
ROT13 originated on Usenet in the early 1980s as a convention for hiding punchlines, spoilers, and answers to puzzles so casual readers would not see them by accident. It is not encryption and offers no security; anyone with a browser tab or a simple script can reverse it.
Why use a ROT13 encoder?
- Hide spoilers in forum posts. A film twist or puzzle answer wrapped in ROT13 stays out of sight until the reader chooses to decode it.
- Generate test data for ciphers. Demonstrating a substitution cipher in tutorials or classroom exercises needs a simple, well-known example.
- Light obfuscation of harmless strings. Email addresses on Usenet were sometimes ROT13’d to slow naïve scrapers, though it does not stop modern crawlers.
- Inspect legacy newsgroup archives. Old Usenet messages still contain ROT13 blocks that need decoding to read.
- Stay local for the input. The tool runs entirely in your browser, so the text never reaches a server.
How to use the ROT13 Encoder / Decoder
- Paste your text into the Text field on the left.
- Read the rotated output in the ROT13 field on the right as you type.
- To decode an existing ROT13 block, paste it into the same input field; the same operation reverses it.
- Copy the output with the panel’s copy control.
How ROT13 works
ROT13 is a Caesar cipher with a fixed shift of 13. Each letter is replaced by the letter 13 positions later in the alphabet, wrapping around at the end. A becomes N, N becomes A. Case is preserved: uppercase rotates within A-Z, lowercase within a-z. Everything that is not a letter passes through unchanged.
Because the alphabet has 26 letters, rotating by 13 twice lands back at the original position. This involution property is why one button handles both directions.
ROT13 cipher table
| Plain | Cipher | Plain | Cipher | Plain | Cipher |
|---|---|---|---|---|---|
| A | N | J | W | S | F |
| B | O | K | X | T | G |
| C | P | L | Y | U | H |
| D | Q | M | Z | V | I |
| E | R | N | A | W | J |
| F | S | O | B | X | K |
| G | T | P | C | Y | L |
| H | U | Q | D | Z | M |
| I | V | R | E |
Examples
The classic Usenet example:
Plaintext: Hello, World!
ROT13: Uryyb, Jbeyq!
Plaintext: The murderer was the butler.
ROT13: Gur zheqrere jnf gur ohgyre.Numbers and punctuation pass through untouched, so timestamps and code stay legible after the transform.
Common use cases
- Spoiler tags on forums and IRC. A quick ROT13 wrap keeps a movie ending hidden until the reader opts in to decode.
- Puzzle hunt clues. Crossword and escape-room creators hide answers in plain sight using ROT13.
- Cryptography teaching. Instructors use ROT13 to introduce substitution ciphers before moving to harder algorithms.
- Easter eggs in software. Game developers ROT13 secret messages so they are not obvious in binary dumps.
- Decoding Usenet archives. Researchers reading historical comp.lang posts often run text through ROT13 to recover hidden punchlines.
Frequently asked questions
Is ROT13 encryption?
No. ROT13 is an encoding, not encryption. It has no key and is trivially reversible by anyone who notices the pattern. Treat the output as visible to everyone who can paste it into another tool.
Is ROT13 secure?
Not at all. ROT13 provides zero confidentiality. Anything you ROT13 should be considered effectively plaintext for any reader with a few seconds and a basic tool. For actual confidentiality, use AES-GCM or another authenticated cipher with a real key.
Why is ROT13 still used?
Convention. It signals to a reader, “this content is hidden by mutual agreement, not by security.” That works well for spoilers and puzzle answers where the goal is to prevent accidental reading, not to keep secrets.
Does ROT13 affect numbers?
No. ROT13 only rotates the 26 letters of the English alphabet. Digits, punctuation, spaces, and non-Latin characters pass through unchanged.
What about non-English alphabets?
ROT13 is defined for the Latin A-Z alphabet. Characters in Cyrillic, Greek, Arabic, or CJK scripts are not rotated. Some extended variants like ROT47 cover more of the ASCII range, but they are not the standard ROT13.
Why does encoding and decoding use the same operation?
Because 26 divided by 2 is 13. Applying a 13-step rotation twice produces a 26-step rotation, which lands on the original letter. That symmetry is the whole reason ROT13 was chosen over other shifts.
Can I chain ROT13 with another cipher?
You can, but it adds no real security. Chaining ROT13 with a Caesar shift of N produces a Caesar shift of N+13, which is still trivially broken. Use a proper cipher if confidentiality matters.
Related tools
- Base64 Encoder / Decoder: Convert binary data to ASCII for transport in JSON, headers, and data URLs.
- URL Encode / Decode: Percent-encode strings for safe use in URLs.
- JWT Decoder: Split a JWT into its header, payload, and signature.
- HTML Escape / Unescape: Convert
<,>,&, and quotes to HTML entities and back.
Related tools
ShotMark captures what you do here, in one click.
The traces, payloads, and tests you run by hand? ShotMark grabs the whole bug and hands it to your AI agent.