The Caesar cipher
A Caesar cipher replaces each letter with one a fixed number of places further along the alphabet. With a shift of three, A becomes D and B becomes E. It is named after Julius Caesar, who is said to have used it for military messages.
Two alphabet wheels, one inside the other, turned three notches apart.
Why it matters
It shows the basic idea of a cipher and a key (the shift) in a way anyone can try with a pencil. It also shows why small keys fail: there are only 25 possible shifts, so you can simply try them all.
In plain words
A Caesar cipher replaces each letter with one a fixed number of places further along the alphabet. With a shift of three, A becomes D and B becomes E. It is named after Julius Caesar, who is said to have used it for military messages.
Think of it like this
Two alphabet wheels, one inside the other, turned three notches apart.
Why it matters
It shows the basic idea of a cipher and a key (the shift) in a way anyone can try with a pencil. It also shows why small keys fail: there are only 25 possible shifts, so you can simply try them all.
Where you meet it
Puzzle books, children's spy kits, and ROT13 on old internet forums, which hides spoilers by shifting 13 places.
More diagrams: Ciphers through history
Go deeper history and technical detail
The Roman historian Suetonius described Caesar using a shift of three. Any simple substitution, even with a scrambled alphabet, falls to frequency analysis: in English, E is the most common letter, so the most common symbol in a long message probably stands for E. The Arab scholar al-Kindi described this method in the 9th century.
Read or watch next
- The Code BookSimon Singh (1999), book
- Cryptography: Crash Course Computer Science #33CrashCourse, video
- The Black ChamberSimon Singh, interactive
- Journey into cryptographyKhan Academy, course
Related terms
Cite this page Encryption Observer, “The Caesar cipher”, encryption.observer/terms/caesar-cipher/, checked December 2026.