ROT13 Encoder/Decoder
Encode and decode text using the ROT13 cipher—a classic substitution cipher that shifts letters by 13 positions. Runs entirely in your browser.
ROT13 Alphabet Mapping
Classic Letter Substitution
ROT13 is a simple yet legendary cipher used across the internet for hiding spoilers, creating puzzles, and light obfuscation. Originally used in early USENET posts, it remains a fun way to obscure text without real cryptographic security.
Why Use ROT13?
Hide Spoilers
Obscure plot twists, puzzle answers, or game solutions so readers only see them if they choose to decode.
Reversible Instantly
Apply ROT13 once to encode, apply it again to decode. The same operation works both ways—no separate decrypt step.
Customizable Shifts
Use ROT13 or any rotation from ROT1 to ROT25 for Caesar cipher variants used in puzzles and CTF challenges.
100% Client-Side
All encoding and decoding happens in your browser. Your text never leaves your device.
How this ROT13 Encoder/Decoder works
This cipher tool implements ROT13 (rotate by 13 places), a simple letter substitution cipher that replaces each letter with the letter 13 positions forward in the alphabet. Since the English alphabet has 26 letters, applying ROT13 twice returns the original text—making it a self-inverse function where encoding and decoding are identical operations.
The algorithm processes each character independently: uppercase letters (A-Z) and lowercase letters (a-z) rotate within their respective ranges using modular arithmetic, while numbers, spaces, and punctuation pass through unchanged. Configurable settings allow custom rotation amounts (ROT1 through ROT25) for Caesar cipher variants, case preservation toggles, and non-alphabetic character handling.
Visual alphabet mapping displays the substitution table for educational reference. Common uses include hiding spoilers in online discussions, puzzle games, CTF challenges, and demonstrating basic cryptographic concepts—though ROT13 provides no real security and should never be used for protecting sensitive information.
How to use this ROT13 Encoder/Decoder
Enter Text
Type or paste your message in the input field.
Choose Shift
Use ROT13 (default) or select any shift from 1-25.
Copy Result
The cipher is applied instantly. Copy your encoded/decoded text!
Example Usage
Encoding with ROT13:
Frequently Asked Questions
What is ROT13?
Is ROT13 secure for encryption?
Why is ROT13 its own inverse?
What happens to numbers and special characters?
Can I use other rotation values?
Related Tools
Unicode Text
Convert text to cool Unicode fonts.
Base64 Encoder Decoder
Encode and decode text and files to/from Base64 format. Fast and secure.
Hash Generator
Generate MD5, SHA-1, SHA-256, and SHA-512 hashes for any text and optionally compare two hashes.
AES Encryption & Decryption
Securely encrypt and decrypt text using AES-GCM (256-bit) directly in your browser.
SHA2 Hash Generator
Generate SHA-2 family hashes (SHA-224, SHA-256, SHA-384, SHA-512) for any text input.
SHA256 Hash Generator
Generate SHA-256 cryptographic hashes for text. Used for checksums and security.
The ROT13 Encoder/Decoder is maintained by CodeItBro. We aim to provide the best free developer tools on the web. If you have feedback or suggestions, please visit our contact page.


