ROT13 Encoder/Decoder
Encode and decode text with the ROT13 substitution cipher online. Free ROT13 tool for simple text obfuscation and puzzle solving.
ROT13 is a simple letter substitution cipher that replaces each letter with the letter 13 positions after it in the alphabet. Applying ROT13 twice returns the original text.
How to Use ROT13 Encoder/Decoder
Paste your text
Paste any text containing letters into the input field. The ROT13-rotated version appears instantly.
View ROT13 output
Each letter is shifted 13 positions: A↔N, B↔O, C↔P, ... Numbers, punctuation, and spaces are preserved unchanged.
Apply twice to decode
Encoding the encoded output again returns the original. ROT13 is its own inverse — single-step encrypt/decrypt.
Use for spoilers or obfuscation
Common uses: hiding spoilers in forum posts (intentional decoding required), obfuscating email addresses (slows naive scrapers), educational examples. Never for security.
When to Use ROT13 Encoder/Decoder
Hiding spoilers in forum posts
Reddit, forums, and community sites use ROT13 to share spoilers without immediately ruining them for readers. Users see scrambled text first; if they want to see the spoiler, they intentionally decode it. The friction respects readers' choice while still allowing spoiler discussion.
Email address obfuscation
Some sites encode email addresses in ROT13 to slow down naive bot scrapers (which look for @ patterns). 'jane@example.com' becomes 'wnar@rknzcyr.pbz'. While modern scrapers can defeat this, it provides a token barrier and keeps the address human-decodable.
Educational examples of substitution ciphers
ROT13 demonstrates Caesar cipher concepts in their simplest form. Used in computer science classes, cryptography introductions, and security awareness training to show how trivially weak encryption can be — encouraging proper algorithms (AES, RSA) for real security.
Casual text obfuscation between friends
When you want to send something playfully obscured (a joke punchline, a casual secret, a fun message that requires effort to read), ROT13 provides easy-to-encode-decode obfuscation. Both parties need only one tool to read; serves as a low-friction shared cipher.
ROT13 Encoder/Decoder Examples
Basic letter rotation
Hello, World!Uryyb, Jbeyq!Each letter rotates 13 positions: H→U, e→r, l→y, l→y, o→b, then comma and space pass through, W→J, o→b, r→e, l→y, d→q. The exclamation mark is preserved. Note case is preserved (uppercase stays uppercase).
Self-inverse property
Uryyb, Jbeyq!Hello, World!Applying ROT13 to the encoded text returns the original. This is mathematically obvious: 13 + 13 = 26 = 0 (mod 26), so each letter rotates by zero positions effectively. Single algorithm for both encrypt and decrypt makes ROT13 unique among ciphers.
Mixed content
Spoiler Alert! Episode 5: Bruce dies in scene 23.Fcbvyre Nyreg! Rcvfbqr 5: Oehpr qvrf va frar 23.Letters rotate; numbers (5, 23) and punctuation stay unchanged. The result is unintelligible without decoding, providing the spoiler protection while preserving structural cues like punctuation and numerical references.
Tips & Best Practices for ROT13 Encoder/Decoder
- 1.Never use ROT13 for actual security. Anyone can decode it instantly. Use AES, RSA, or other proper cryptographic algorithms for real confidentiality.
- 2.ROT13 is reversible with the same operation. Encoding twice = original. Some users miss this and run 'decode' separately when 'encode' produces the same result.
- 3.Numbers, punctuation, and special characters are NOT rotated. Only letters change. If you need to scramble those too, ROT47 (which rotates printable ASCII) is similar but covers more characters — still not security.
- 4.For modern obfuscation needs (spoilers, etc.), use semantic methods like '<details>' HTML tags or platform-native spoiler tags rather than ROT13. Native methods are more accessible and don't require tools.
- 5.When teaching cryptography, ROT13 is a good starter for explaining Caesar ciphers, key spaces (ROT13's 'key' is fixed at 13), and why simple substitution is broken (frequency analysis defeats it instantly).
- 6.If you're using ROT13 for email obfuscation against scrapers, consider using mailto: with JavaScript-generated email addresses instead. Modern scrapers easily defeat ROT13 but JavaScript obfuscation is more effective.
Frequently Asked Questions
Related Tools
Base64 Encoder
Encode text to Base64 format online instantly. Free Base64 encoder for converting strings, data URIs, and binary content safely.
Base64 Decoder
Decode Base64 strings back to readable text online instantly. Free Base64 decoder for converting encoded data and content safely.
URL Encoder
Encode text for URLs online with percent-encoding. Free URL encoder for safely escaping special characters in query strings and paths.
URL Decoder
Decode URL-encoded text online by converting percent-encoded characters back to readable text. Free URL decoder for web developers.
HTML Entity Encoder
Encode HTML entities online to safely display special characters in web pages. Free HTML entity encoder for angle brackets and quotes.
HTML Entity Decoder
Decode HTML entities back to readable characters online. Free HTML entity decoder for converting ampersand codes to plain text.