ROT13 Encoder & Decoder

Apply the ROT13 or ROT47 Caesar cipher to any text. ROT13 is its own inverse — the same operation both encodes and decodes.

ROT13 shifts each letter 13 positions in the alphabet. Non-letter characters are unchanged. Applying it twice restores the original text.

ROT47 shifts all printable ASCII characters (33–126) by 47 positions, including letters, digits, and symbols. Like ROT13, applying it twice restores the original.

Shift the alphabet by any number (1–25). ROT13 is shift 13. To decode, enter the same text with the inverse shift (26 − N).

13

Frequently Asked Questions

The English alphabet has 26 letters. ROT13 shifts by exactly half (13), so shifting twice returns to the original position: A (0) + 13 = N (13), and N (13) + 13 = 26 ≡ A (0). This property only holds for shifts equal to exactly half the alphabet size.

No. ROT13 is a trivial substitution cipher with no cryptographic security. It's used for fun, obfuscation of spoilers, and simple text puzzles — not for protecting sensitive data. Use a modern symmetric cipher (AES-GCM) for real encryption.

ROT47 is a variant that also encodes digits and punctuation (all printable ASCII). It's used on forums and in code to obscure strings that include numbers or symbols — like spoilers with dates or technical jargon with brackets.

ROT13 stands for "Rotate by 13". It is a simple letter substitution cipher that replaces each letter with the letter 13 positions ahead of it in the alphabet. Since the English alphabet has 26 letters, rotating by 13 — exactly half — means the same operation both encodes and decodes the text. The name follows the same convention as ROT47, where the number indicates the rotation amount.

Because the English alphabet contains exactly 26 letters and ROT13 shifts by exactly half that number (13), applying the shift twice results in a total rotation of 26 — which is equivalent to no rotation at all. For example: A (position 0) → N (position 13) → A (position 26 ≡ 0). This self-inverse property means a single algorithm and a single key stroke handles both encoding and decoding, which is part of why ROT13 became popular as a quick, reversible text scrambler.

ROT13 became a widespread convention on Usenet newsgroups in the 1980s and 1990s. It was used to hide content that readers might not want to see involuntarily — such as movie and book spoilers, offensive jokes, or puzzle answers — allowing users to choose whether to decode and read the content. The convention required no special software (many Usenet clients had built-in ROT13 support) and was understood community-wide as a voluntary content shield rather than a security measure. Its use on Usenet is the primary reason ROT13 remains culturally familiar today.

ROT13 rotates only the 26 letters of the Latin alphabet (A–Z, a–z) by 13 positions. Digits, punctuation, and spaces are left unchanged. ROT47 rotates all 94 printable ASCII characters (codes 33–126, which includes letters, digits, and most punctuation) by 47 positions. Like ROT13, ROT47 is also self-inverse because 94 ÷ 2 = 47. Use ROT47 when you need to obscure numbers and symbols as well as letters — for example, hiding a URL, a date, or a code snippet containing brackets and slashes.

ROT13 is a special case of the Caesar cipher with a shift value of 13. The Caesar cipher — named after Julius Caesar, who reportedly used a shift of 3 — shifts each letter by a fixed number of positions in the alphabet. Any shift value from 1 to 25 produces a valid Caesar cipher. ROT13's distinguishing feature is that it is the only shift value (for a 26-letter alphabet) where encoding and decoding are the same operation. All other shift values require a different shift (26 − n) to reverse. This self-inverse property makes ROT13 uniquely convenient among all Caesar cipher variants.

No. ROT13 is obfuscation, not encryption. Encryption requires a secret key and produces ciphertext that is computationally infeasible to reverse without that key. ROT13 has no key, the algorithm is universally known, and any message can be decoded by anyone who knows (or guesses) that ROT13 was applied — which takes seconds. It provides zero cryptographic security. It should never be used to protect sensitive information. Its legitimate use is voluntary, social obscuring of content — spoilers, puzzle answers, mild content warnings — where the goal is convenience for the reader, not security.

ROT13 remains in use for several light purposes: puzzle and quiz forums — answers to crosswords, trivia, and riddles are posted in ROT13 so they're visible only to those who choose to decode them; spoiler hiding in online discussions about books, films, and games; developer humour — ROT13 is a common easter egg in software and documentation; teaching material for introducing substitution ciphers in cryptography courses; and interview puzzles where candidates are asked to implement or crack it. The ROT13 of "ROT13" itself is "EBG13" — a well-known example used in introductions to the cipher.

About This ROT13 Tool

This free ROT13 tool encodes and decodes text using the ROT13 substitution cipher, which shifts each letter 13 positions forward in the alphabet. Because the Latin alphabet has 26 letters, applying ROT13 twice returns the original text — encoding and decoding are identical operations.

ROT13 provides no real security but is used to hide spoilers in forum posts, obscure mildly sensitive content, and as a simple programming exercise. Non-letter characters pass through unchanged.

When to use this tool

  • Hiding spoilers or puzzle solutions in forum posts
  • Decoding ROT13-obfuscated text found online
  • Understanding simple substitution ciphers
  • Programming exercises involving character manipulation

Standards & References

How It Works

Choose a Cipher

Select ROT13, ROT47, or Custom Caesar Cipher. ROT13 rotates letters; ROT47 also rotates digits and punctuation; Custom lets you pick any shift.

Type or Paste

Enter text in the input area. The cipher is applied live as you type. Non-applicable characters (spaces, punctuation in ROT13) pass through unchanged.

Copy the Output

The ciphertext appears in the output box. To decode ROT13 or ROT47, simply paste the ciphertext back into the input — the same operation reverses it.

Common Use Cases

Spoiler Hiding

Hide movie or game spoilers in forum posts or emails using ROT13. Readers who know the convention can decode it; others see unreadable text.

Puzzle & Game Clues

Encode hints for escape rooms, treasure hunts, or ARGs using ROT13 or a custom shift. Players must know the cipher to decode the clue.

Cryptography Education

Teach the concept of substitution ciphers and why they're not cryptographically secure. ROT13 is the simplest possible example of a shift cipher.

String Obfuscation in Code

Apply ROT47 to obscure API-response strings or config values in source code comments, making them unreadable without being full encryption.

Forum & IRC Tradition

ROT13 has a long history on Usenet and IRC as a convention for voluntary content warnings. Post ROT13-encoded text when the plain version might be unwanted.

Password Obfuscation

Use a custom Caesar shift to lightly obfuscate a password hint in a notebook. Not secure storage, but better than plain text for casual note-keeping.

Related Articles

View all articles
Why ROT13's Encode Button and Decode Button Do the Same Thing — and Why That's the Point

Why ROT13's Encode Button and Decode Button Do the Same Thing — and Why That's the Point

ROT13 shifts each letter by 13, and shifting by 13 again returns you to the start — because 13 is exactly half of 26, and the English alphabet has 26 letters. This self-inverse property means "encode" and "decode" are literally the same operation, which is exactly why ROT13 became the standard for Usenet spoilers and forum answers: one button, symmetric, no separate decode tool needed. Here's the math, the variants (ROT5, ROT18, ROT47), and where self-inverse operations appear elsewhere.

Jun 17, 2026
ROT13 in Puzzle Design: Why Escape Rooms and ARGs Use a Cipher That's Deliberately Not Secure

ROT13 in Puzzle Design: Why Escape Rooms and ARGs Use a Cipher That's Deliberately Not Secure

ROT13 in an escape room or puzzle hunt isn't there for security — it's there because recognizing "this is a substitution cipher" IS the puzzle, and decoding it afterward is trivial by design. Here's how puzzle designers use ROT13 as a "calibration" cipher, why shift-amount discovery becomes its own puzzle layer, and ROT13's self-inverse property for spoiler-text use.

Jun 13, 2026
ROT13, Internet Culture, and Why Obfuscation Is Not Encryption

ROT13, Internet Culture, and Why Obfuscation Is Not Encryption

ROT13 is useless for security but was extensively used in Usenet for spoilers — and this illustrates the difference between obfuscation (hiding in plain sight) and encryption (computationally secure). Here's ROT13's internet history, why frequency analysis defeats simple ciphers, and what makes modern encryption actually work.

Jun 10, 2026
From Caesar Cipher to AES: The History of Why Substitution Ciphers Fail

From Caesar Cipher to AES: The History of Why Substitution Ciphers Fail

ROT13 is a specific case of the Caesar cipher, which was broken by frequency analysis described in 800 AD. Here's the history from Caesar to Vigenère to Enigma to AES — and what each cipher's failure revealed about what real security requires.

Jun 9, 2026
ROT13 Encoder — Encode & Decode Text Instantly with the Classic Cipher

ROT13 Encoder — Encode & Decode Text Instantly with the Classic Cipher

Learn how ROT13 works, why it was invented for spoiler protection, how it differs from real encryption, and the variations (ROT5, ROT18, ROT47) — with a free ROT13 encoder/decoder tool.

Jun 6, 2026