Caesar Cipher Encoder/Decoder
Encode or decode text instantly with a classic Caesar cipher shift, the same substitution method reportedly used by Julius Caesar. Useful for solving puzzle or escape-room clues, learning classical cryptography basics, or brute-forcing an unknown shift value, free online.
Usage examples
Solving a puzzle or escape-room clue
Decode a Caesar-shifted message from a puzzle hunt or escape room by trying different shift values.
Learning the basics of classical cryptography
See how a simple substitution shift works by encoding your own message and trying to decode it with the wrong shift.
Creating a lighthearted coded message
Encode a fun note or riddle for a friend to decode themselves.
Recreating the cipher Julius Caesar reportedly used
Set the shift to 3 — the value Caesar is said to have used to shift each letter three places down the alphabet — and encode a short Latin or English phrase to see the original cipher at work.
Brute-forcing an unknown shift value
If you have encoded text but don't know the shift used, switch to decode mode and try each shift from 1 to 25 until the output turns into readable words.
Quick reference
Plain alphabet: ABCDEFGHIJKLMNOPQRSTUVWXYZ
| Shift | Cipher alphabet | HELLO WORLD |
|---|---|---|
| 1 | BCDEFGHIJKLMNOPQRSTUVWXYZA | IFMMP XPSME |
| 2 | CDEFGHIJKLMNOPQRSTUVWXYZAB | JGNNQ YQTNF |
| 3 | DEFGHIJKLMNOPQRSTUVWXYZABC | KHOOR ZRUOG |
| 4 | EFGHIJKLMNOPQRSTUVWXYZABCD | LIPPS ASVPH |
| 5 | FGHIJKLMNOPQRSTUVWXYZABCDE | MJQQT BTWQI |
| 6 | GHIJKLMNOPQRSTUVWXYZABCDEF | NKRRU CUXRJ |
| 7 | HIJKLMNOPQRSTUVWXYZABCDEFG | OLSSV DVYSK |
| 8 | IJKLMNOPQRSTUVWXYZABCDEFGH | PMTTW EWZTL |
| 9 | JKLMNOPQRSTUVWXYZABCDEFGHI | QNUUX FXAUM |
| 10 | KLMNOPQRSTUVWXYZABCDEFGHIJ | ROVVY GYBVN |
| 11 | LMNOPQRSTUVWXYZABCDEFGHIJK | SPWWZ HZCWO |
| 12 | MNOPQRSTUVWXYZABCDEFGHIJKL | TQXXA IADXP |
| 13 | NOPQRSTUVWXYZABCDEFGHIJKLM | URYYB JBEYQ |
| 14 | OPQRSTUVWXYZABCDEFGHIJKLMN | VSZZC KCFZR |
| 15 | PQRSTUVWXYZABCDEFGHIJKLMNO | WTAAD LDGAS |
| 16 | QRSTUVWXYZABCDEFGHIJKLMNOP | XUBBE MEHBT |
| 17 | RSTUVWXYZABCDEFGHIJKLMNOPQ | YVCCF NFICU |
| 18 | STUVWXYZABCDEFGHIJKLMNOPQR | ZWDDG OGJDV |
| 19 | TUVWXYZABCDEFGHIJKLMNOPQRS | AXEEH PHKEW |
| 20 | UVWXYZABCDEFGHIJKLMNOPQRST | BYFFI QILFX |
| 21 | VWXYZABCDEFGHIJKLMNOPQRSTU | CZGGJ RJMGY |
| 22 | WXYZABCDEFGHIJKLMNOPQRSTUV | DAHHK SKNHZ |
| 23 | XYZABCDEFGHIJKLMNOPQRSTUVW | EBIIL TLOIA |
| 24 | YZABCDEFGHIJKLMNOPQRSTUVWX | FCJJM UMPJB |
| 25 | ZABCDEFGHIJKLMNOPQRSTUVWXY | GDKKN VNQKC |
Frequently asked questions
Is the Caesar cipher secure?
No — it has no real security value today. With only 26 possible shifts, it can be broken instantly by trying every shift, or even faster with basic letter-frequency analysis. This tool is for education and puzzles, not for protecting sensitive information.
What happens to spaces, numbers, and punctuation?
They pass through unchanged. Only letters A-Z (and their lowercase equivalents) are shifted; everything else stays exactly as typed.
Does uppercase/lowercase matter?
Letter case is preserved — an uppercase letter stays uppercase after shifting, and lowercase stays lowercase.
Where does the name "Caesar cipher" come from?
It's named after Julius Caesar, who according to historical accounts used a shift of 3 to encode military communications. It's one of the oldest known encryption techniques, but it predates modern cryptography by roughly two thousand years.
Why does decoding with the wrong shift produce gibberish instead of an error?
The cipher has no way to know what the "correct" shift is — it just applies the shift you set, in reverse, to every letter. If the shift doesn't match the one used to encode the message, you'll get a different, unintended substitution rather than an error.
What's the difference between encode and decode mode here?
Decode simply applies your shift value in the opposite direction from encode. Shifting "D" forward by 3 in encode mode gives "G"; shifting "G" back by 3 in decode mode returns "D".
Can I use a shift larger than 25?
The shift is capped at 25 because shifting by 26 — the size of the alphabet — brings every letter back to itself, making it equivalent to a shift of 0. Any shift you'd want is already covered within the 1-25 range.