ROT13 & Caesar Cipher
Classic substitution cipher tools for education, puzzles, and casual obfuscation. ROT13 (rotate by 13 places) is its own inverse — encoding and decoding use the same operation. Caesar cipher supports any shift from 1 to 25, or brute-force display of all possible shifts to find readable text. A fun introduction to cryptography concepts.
What does this tool do?
The ROT13/Caesar tool implements the classic Caesar cipher where each letter is shifted a fixed number of positions in the alphabet. ROT13 specifically shifts by 13 places, making it symmetric (applying twice returns the original). The tool supports arbitrary shifts from 1-25 for Caesar cipher operations. The brute-force mode shows all 25 possible decodings simultaneously, useful for solving puzzles or when the shift amount is unknown. Non-alphabetic characters (numbers, spaces, punctuation) pass through unchanged.
How it works
For each alphabetic character in the input: calculate position in alphabet (A=0, B=1... or a=0, b=1...), add the shift amount modulo 26, convert back to letter. ROT13 uses shift=13. Because 13+13=26 (the alphabet size), ROT13 is self-inverse. The brute-force mode applies all 26 possible shifts (including 0 which is the original) and displays each with its shift number. Case is preserved: uppercase letters shift within A-Z, lowercase within a-z. All other characters are passed through unchanged.
Features
- ROT13 (default) — self-inverse, same operation encodes and decodes
- Arbitrary Caesar shifts (1-25)
- Preserves case and non-alphabetic characters
- Brute-force mode lists all 25 possible shifts
- Live conversion as you type
- Educational introduction to ciphers
- 100% client-side
How to use
- 1
Paste text
Enter any text. Letters will be shifted; numbers, spaces, punctuation pass through unchanged.
- 2
Select ROT13 or custom shift
Use 13 for ROT13. Any 1-25 for general Caesar cipher. ROT13 mode is selected by default.
- 3
Read output or brute force
For known shift, see the single result. For unknown shift, use Brute Force to see all 25 possibilities and pick the readable one.
- 4
Copy result
Copy the encoded or decoded text. ROT13 encoded text can be decoded by running through ROT13 again.
Common use cases
Spoiler hiding
Use ROT13 to obscure spoilers in forums and comments. Readers who want to see the spoiler apply ROT13; others can skip it.
Puzzle solving
Decode Caesar cipher puzzles, cryptograms, and capture-the-flag (CTF) challenges using brute-force or known shift values.
Cryptography education
Teach basic cipher concepts, demonstrate why simple substitution is insecure, and introduce frequency analysis concepts.
Casual obfuscation
Lightweight obfuscation for non-sensitive contexts where you want to avoid automated scanning or casual reading.
Tips & best practices
- ROT13 is its own inverse — applying it twice returns the original text. This is unique to the 13 shift in a 26-letter alphabet
- Caesar cipher is extremely insecure — modern computers can brute force all 25 shifts in microseconds. Never use for real security
- Frequency analysis breaks Caesar cipher easily: the most common letter in English (E) will be the most common in ciphertext, shifted by the key
- For actual secure communication, use the AES Encrypt tool — Caesar/ROT13 are only for education and puzzles