How to use the caesar cipher
- Choose the direction with the buttons above the result.
- Type or paste your text in the top box.
- Copy the converted result.
How the Caesar cipher works
Every letter is replaced by the letter a fixed number of places further along the alphabet. With a shift of 3, A becomes D, B becomes E, and X, Y, Z wrap round to A, B, C. To decrypt, shift back by the same amount. It is named after Julius Caesar, who, according to the Roman historian Suetonius, used a shift of three for his private letters.
| Plain | A B C D E F … X Y Z |
|---|---|
| Shift 3 | D E F G H I … A B C |
Cracking it
There are only 25 possible shifts, so a Caesar cipher can be broken by trying them all, which takes seconds. If you receive a message and do not know the shift, set the mode to Decrypt and step the shift from 1 upwards until readable text appears. In longer English messages the most common letter usually stands for E, which gives the shift away immediately.
It is a great first cipher for learning and for puzzles, escape rooms and treasure hunts, but it provides no real secrecy. A shift of 13 is the special case known as ROT13.