ROT13 Encoder / Decoder
Simple Caesar cipher to encrypt or decrypt text instantly
Simple Caesar cipher to encrypt or decrypt text instantly
ROT13 encoder decoder tool converts text to ROT13 cipher and decodes ROT13 back to readable text instantly. Simple Caesar cipher that rotates letters by 13 positions in the alphabet. Perfect for light obfuscation, puzzles, and learning cryptography basics.
ROT13 (“rotate by 13 places”) is a simple letter substitution cipher that replaces a letter with the 13th letter after it in the alphabet. It’s a special case of the Caesar cipher which was used by Julius Caesar to protect military messages.
A โ N, B โ O, C โ P, …, M โ Z, N โ A, O โ B, …, Z โ M. ROT13 is its own inverse: applying ROT13 twice returns original text.
ROT13(ROT13(text)) = text. Same function encodes and decodes, making it perfect for simple obfuscation without separate encryption/decryption keys.
Spoiler hiding in forums, puzzle creation, simple message obscuring, teaching cryptography basics, and light text protection.
The ROT13 algorithm operates on the basic Latin alphabet of 26 letters:
For uppercase letters (A-Z, ASCII 65-90):
ROT13(char) = {
if (char between 'A' and 'M'): char + 13
if (char between 'N' and 'Z'): char - 13
else: keep unchanged
}
For lowercase letters (a-z, ASCII 97-122):
ROT13(char) = {
if (char between 'a' and 'm'): char + 13
if (char between 'n' and 'z'): char - 13
else: keep unchanged
}
| Original | ROT13 | Type | Description |
|---|---|---|---|
| HELLO | URYYB | Uppercase | Basic word |
| world | jbeyq | Lowercase | Basic word |
| Hello World | Uryyb Jbeyq | Mixed case | Common phrase |
| 12345 | 12345 | Numbers | Unaffected by ROT13 |
| !@#$% | !@#$% | Symbols | Unaffected by ROT13 |
A โ N G โ T M โ Z S โ F Y โ L B โ O H โ U N โ A T โ G Z โ M C โ P I โ V O โ B U โ H D โ Q J โ W P โ C V โ I E โ R K โ X Q โ D W โ J F โ S L โ Y R โ E X โ K
a โ n g โ t m โ z s โ f y โ l b โ o h โ u n โ a t โ g z โ m c โ p i โ v o โ b u โ h d โ q j โ w p โ c v โ i e โ r k โ x q โ d w โ j f โ s l โ y r โ e x โ k
Complete your developer toolkit with these essential encoding tools from encryptdecrypt.org:
Encode binary data to ASCII text format for safe transmission and storage.
Convert special characters for safe URL transmission and web compatibility.
Convert text to ASCII codes and decode ASCII back to readable text.
Convert text to binary code and binary back to readable text.
Convert text to Unicode code points and decode Unicode back to text.
Convert text to UTF-8 byte sequences and decode UTF-8 back to text.
Convert HTML special characters to entities and decode HTML entities.
Convert to/from Base58 encoding used in Bitcoin and cryptocurrency addresses.
Hide spoilers in online discussions. Readers must decode ROT13 to reveal content, preventing accidental spoilers.
Create simple cryptography puzzles, escape room clues, and educational games teaching basic encryption concepts.
Teach students about substitution ciphers, modular arithmetic, and basic cryptography principles in computer science classes.
The ROT13 cipher has its roots in ancient cryptography. Julius Caesar used a shift cipher (now called Caesar cipher) with a shift of 3 to protect military messages. ROT13 emerged in the early internet era as a convenient variation:
| Cipher | Shift | Scope | Description |
|---|---|---|---|
| ROT13 | 13 | A-Z, a-z | Standard self-inverse cipher |
| ROT5 | 5 | 0-9 | Numbers only, 0โ5, 1โ6, etc. |
| ROT47 | 47 | ASCII 33-126 | All printable ASCII characters |
| Caesar Cipher | 1-25 | A-Z, a-z | Any shift value (1-25) |
| Atbash Cipher | – | A-Z, a-z | AโZ, BโY, CโX, etc. |
No, ROT13 is not secure for real encryption. It provides only basic obfuscation and can be broken instantly by anyone who knows the algorithm. ROT13 is useful for hiding text from casual viewers (like spoilers) but offers no real security against determined attackers.
ROT13 is its own inverse because applying it twice returns the original text: ROT13(ROT13(text)) = text. This happens because the alphabet has 26 letters, and rotating by 13 twice equals rotating by 26, which brings you back to the starting position (26 โก 0 mod 26).
Standard ROT13 only affects letters (A-Z, a-z). Numbers (0-9), punctuation, spaces, and special characters remain unchanged. However, variants like ROT47 extend the cipher to include numbers and printable ASCII characters.
Several languages have ROT13 support: PHP has str_rot13(), Python has codecs.encode(text, 'rot13'), Perl has tr/A-Za-z/N-ZA-Mn-za-m/, and many Unix systems have rot13 command. Most languages can implement ROT13 with simple string manipulation.
ROT13 is a substitution cipher that only affects letters, leaving other characters unchanged. Base64 is an encoding scheme that converts binary data to ASCII text using 64 characters. Base64 is for data representation, while ROT13 is for simple text obfuscation. Base64 encoded text appears random, while ROT13 text looks like normal text but unreadable.
Real-time ROT13 encoding/decoding with no delays
100% client-side processing – no data sent to servers
Fully responsive design works on all devices
No charges, no subscriptions, no limitations
Our ROT13 encoder decoder tool provides everything you need for simple text obfuscation. Encode text to ROT13, decode ROT13 back to readable text, and explore the fascinating world of basic cryptography.