ROT13 / Caesar Cipher
Encode and decode text using ROT13 or a custom Caesar cipher rotation.
About This Tool
The ROT13 / Caesar Cipher tool is a free browser-based utility that encodes and decodes text using the classic letter-substitution cipher invented by Julius Caesar. It supports the standard ROT13 rotation (shift of 13) as well as any custom rotation from 1 to 25, giving you full control over the Caesar cipher shift amount.
The Caesar cipher is one of the oldest known encryption techniques. It works by shifting each letter in the plaintext by a fixed number of positions in the alphabet. For example, with a shift of 3, the letter A becomes D, B becomes E, and so on. Non-alphabetic characters such as digits, punctuation, and whitespace pass through unchanged.
ROT13 is the most widely used variant of the Caesar cipher. Because the English alphabet has 26 letters, a shift of 13 is exactly half the alphabet, which makes ROT13 its own inverse — applying ROT13 twice returns the original text. This self-reciprocal property made ROT13 the standard for hiding spoilers and puzzle answers on Usenet, forums, and email lists during the early internet era.
Every operation runs entirely in your browser using pure JavaScript string manipulation. No data is transmitted to any server, no cookies are set, and no input is logged. This makes the tool safe for any content you want to encode or decode. You can also use our Base64 Encode/Decode tool for binary-safe encoding, our String Escape/Unescape tool for format-specific escaping, or our Hash Generator for cryptographic hashing.
While the Caesar cipher is not secure by modern standards — it can be broken instantly by brute force since there are only 25 possible keys — it remains an excellent educational tool for understanding substitution ciphers, modular arithmetic, and the fundamentals of cryptography.
How to Use
- Select Encode or Decode mode using the toggle at the top.
- Adjust the Rotation slider to set the shift amount (1–25). The default is 13 (ROT13).
- Paste or type your text into the Input textarea on the left.
- The encoded or decoded result appears instantly in the read-only Output panel on the right.
- Click Copy to copy the output to your clipboard, or use Ctrl+Shift+C.
- Use the Swap button to move the output back into the input for round-trip verification.
- Click Clear to reset both fields and start over.
Popular ROT13 & Caesar Cipher Examples
FAQ
Is my data safe when using this tool?
Yes. All encoding and decoding is performed entirely in your browser using client-side JavaScript. No data is sent to any server, and nothing is stored or logged. It is safe to use with any text content.
What is ROT13 and how does it work?
ROT13 (rotate by 13 places) is a letter-substitution cipher that replaces each letter with the letter 13 positions after it in the alphabet. Because the alphabet has 26 letters, applying ROT13 twice returns the original text, making it a symmetric cipher. A becomes N, B becomes O, and so on.
What is the difference between ROT13 and a Caesar cipher?
ROT13 is a specific case of the Caesar cipher with a shift of 13. The Caesar cipher is the general name for any shift cipher where letters are replaced by letters a fixed number of positions away. ROT13 is special because the same operation both encrypts and decrypts.
Does this tool handle non-English characters?
The tool shifts only the 26 English alphabet letters (A–Z, a–z). All other characters — including digits, punctuation, spaces, accented letters, and emoji — pass through unchanged.
Is the Caesar cipher secure?
No. The Caesar cipher has only 25 possible keys, so it can be broken instantly by brute force or frequency analysis. It should never be used for actual security. It is best suited for light obfuscation (hiding spoilers, puzzles) and for educational purposes.
Can I use a custom rotation amount?
Yes. Use the rotation slider to choose any shift from 1 to 25. The default is 13 (ROT13). When using a shift other than 13, encoding and decoding produce different results, so make sure to select the correct mode.
Related Tools
Base64 Encode/Decode
Encode and decode Base64 strings and files with drag-and-drop support.
Text to Binary Converter
Convert text to binary, octal, decimal, and hex representations. Visualize individual bits with 8-bit grouping.
String Escape/Unescape
Escape and unescape strings for JSON, JavaScript, HTML, URL, SQL, and CSV formats.
Hash Generator
Generate MD5, SHA-1, SHA-256, and SHA-512 hashes for text and files.
Morse Code Converter
Convert text to Morse code and Morse code to text with audio playback.
NATO Phonetic Alphabet
Convert text to NATO phonetic alphabet representation and vice versa.
Reverse Text
Reverse text by characters, words, or lines with multiple transformation modes.