Password & Security
Caesar Cipher - Encode, Decode & Brute-Force
Encode or decode text with the Caesar cipher. Set any shift from 1–25, or use brute-force mode to try all 25 possible shifts at once - great for puzzles.
Cipher wheel · shift 13
What is the Caesar cipher?
The Caesar cipher is one of the oldest known encryption methods, named after Julius Caesar who reportedly used it for personal correspondence. It works by shifting every letter in the message forward (or backward) by a fixed number of positions in the alphabet. With shift 3, "A" becomes "D", "B" becomes "E", and "Z" wraps around to "C".
How to decode a Caesar cipher without the key
Use brute-force mode. Because there are only 25 possible shifts, this tool shows all 25 candidate decryptions at once. If the original message is in a natural language, you can usually spot the correct decryption by looking for recognizable words.
Caesar cipher vs. ROT13
ROT13 is simply a Caesar cipher with a fixed shift of 13. Since 13 + 13 = 26 (the size of the English alphabet), ROT13 is self-inverse: applying it twice always returns the original text. It is commonly used to hide spoilers or puzzle answers online.
Security
The Caesar cipher provides no real security. It can be broken instantly by brute force (as demonstrated above) and is trivially defeated by frequency analysis. It is useful for educational purposes, puzzle games, and light text obfuscation, but not for protecting sensitive information.
Frequency analysis
English letters appear with very unequal frequency. The top letters in order of frequency are E (12.7%), T (9.1%), A (8.2%), O (7.5%), I (7.0%), N (6.7%), S (6.3%), H (6.1%), R (6.0%). Because the Caesar cipher only shifts letters, it preserves these frequencies. In a ciphertext, the most common letter is almost certainly the encryption of E. Identifying it immediately reveals the shift - no brute force needed. This is why any monoalphabetic substitution cipher is trivially broken given enough ciphertext.
Historical examples
Julius Caesar reportedly used a shift of 3 for his personal letters, according to Suetonius. His successor Augustus Caesar used a shift of 1 - and did not wrap Z around to A, so Z would simply remain Z. The ROT13 variant (shift 13) became popular in early internet forums for hiding spoilers because the same operation encodes and decodes the text.
Brute-force example: all 25 shifts of "KHOOR ZRUOG"
| Shift | Result |
|---|---|
| 1 | JGNNQ YQTNF |
| 2 | IFMMP XPSME |
| 3 | HELLO WORLD ✓ |
| 4 | GDKKN VNQKC |
| 5 | FCJJM UMPJB |
| 6–25 | (clearly not English) |
Shift 3 is immediately recognizable. This illustrates why 25-shift brute force is trivial.