Instantly encode or decode any text using the ROT13 cipher. No data is sent to any server — everything runs locally in your browser for complete privacy.
ROT13 rotates each letter by 13 positions in the alphabet. Since the alphabet has 26 letters, applying ROT13 twice returns the original text.
Type or paste any text into the input panel. The tool accepts letters, numbers, symbols, and multi-line content.
Each letter (A–Z, a–z) is rotated 13 positions in real time. Numbers and special characters remain unchanged.
Copy the result to your clipboard or download it as a .txt file with one click. The same process decodes ROT13 text back.
All processing happens in your browser. No text is sent to any server, logged, or stored anywhere. Completely safe.
ROT13, which stands for "Rotate by 13 places," is one of the most well-known letter substitution ciphers in computing. It belongs to the broader family of Caesar ciphers, named after the Roman general Julius Caesar who reportedly used a similar technique to communicate with his military officers. What makes ROT13 unique among Caesar ciphers is its fixed shift value of exactly 13 positions, which creates a fascinating mathematical property: because the English alphabet contains exactly 26 letters, shifting by 13 is equivalent to shifting by -13. This means applying the ROT13 transformation twice always returns the original plaintext — the function is its own inverse.
The algorithm is remarkably simple yet elegant. For each letter in the input text, the cipher checks whether it falls in the range of uppercase letters (A–Z, ASCII 65–90) or lowercase letters (a–z, ASCII 97–122). If the character is a letter, it shifts it forward by 13 positions, wrapping around to the beginning of the alphabet when necessary. For example, 'A' becomes 'N', 'M' becomes 'Z', 'N' wraps back to 'A', and 'Z' becomes 'M'. The same logic applies to lowercase letters. All non-alphabetic characters — including digits, punctuation marks, spaces, and special symbols — pass through completely unchanged. This selective transformation preserves the structure and formatting of the original text.
It is critically important to understand that ROT13 is not encryption. It provides absolutely zero cryptographic security. Anyone who knows about ROT13 — and that includes virtually every programmer and technically literate person — can decode ROT13 text instantly, even without a tool. ROT13 was never designed for security; it was designed for obscuration — making text temporarily unreadable at a glance. If you need actual data protection, you should use proper encryption algorithms like AES-256 (Advanced Encryption Standard), RSA, or ChaCha20. These algorithms use secret keys, complex mathematical operations, and are resistant to all known cryptanalytic attacks. ROT13, by contrast, has no key at all — the "key" is effectively public knowledge.
Our ROT13 encoder/decoder is built with privacy and speed as top priorities. Unlike many online tools that send your text to a remote server for processing, our tool performs all operations entirely within your web browser using pure JavaScript. This means your text never leaves your device — it is never transmitted over the internet, never logged, and never stored. The conversion happens in real time as you type, with zero latency. The tool works on all modern browsers and devices, including smartphones, tablets, and desktop computers, without requiring any software installation. Whether you're a developer testing a parser, a forum user hiding a spoiler, or a student learning about ciphers, this tool provides a fast, reliable, and completely private ROT13 conversion experience.
This tool uses a straightforward character-by-character transformation. For each character, it checks the Unicode code point. If the character is within the uppercase range (65–90), it applies the formula: ((code - 65 + 13) % 26) + 65. For lowercase (97–122): ((code - 97 + 13) % 26) + 97. All other characters are returned unchanged. The modulo operator (%) handles the wrap-around from Z back to A seamlessly. This implementation is O(n) in time complexity where n is the length of the input text, making it effectively instantaneous even for very large texts.
Common questions about ROT13 encoding and this tool.