About the Caesar Cipher tool
The Caesar cipher is one of the oldest known ciphers. Julius Caesar is said to have shifted each letter of his messages three places along the alphabet, so A became D and B became E. It is still the first cipher most people learn, a staple of escape rooms and puzzle hunts, and the classic example of why simple substitution is easy to break.
This tool encrypts and decrypts with any shift from 1 to 25 using a slider, and shows which letter A maps to so you can double-check your key. Uppercase and lowercase are preserved, and punctuation and spaces are left as they are. You can optionally shift digits too, rotating 0–9 within themselves.
If you have a message but not the key, choose “Brute force (unknown shift)”. The tool decrypts with all 25 possible shifts and lists them together. It also scores each candidate against normal English letter frequencies and stars the most English-like one, which usually finds the answer immediately for a sentence or more. Very short messages may need you to scan the list yourself.
How to use Caesar Cipher
- Select “Encrypt”, “Decrypt” or “Brute force (unknown shift)”.
- Type or paste your text into the input box, or click “Sample”.
- For encrypt or decrypt, set the shift with the slider and choose whether to “Also shift digits”.
- For brute force, scan the 25 results and look for the starred most English-like line.
- Copy or download the result.
Features
Any shift from 1 to 25
Slider with a live A → letter preview.
Encrypt and decrypt
Decrypt applies the reverse shift so you can use the same key.
Brute-force solver
Shows all 25 possible decryptions at once.
Frequency-based ranking
Stars the candidate closest to English letter frequencies.
Optional digit shifting
Rotate 0–9 as well as letters when needed.
When to use it
- Create secret messages for a treasure hunt or escape room.
- Solve a Caesar-shifted clue when you do not know the key.
- Teach cryptography basics and frequency analysis in class.
- Check homework for cipher exercises in a computer science course.
Frequently asked questions
How do I decode a Caesar cipher without the key?
Choose “Brute force (unknown shift)” and paste the message. All 25 shifts are shown, and the one that looks most like English is starred.
What shift did Julius Caesar use?
According to the Roman historian Suetonius, Caesar used a shift of three, so A was written as D.
Is ROT13 a Caesar cipher?
Yes. ROT13 is a Caesar cipher with a shift of 13, which has the special property that encrypting twice gives the original.
Is the Caesar cipher secure?
No. There are only 25 possible keys, so it can be broken in seconds, as the brute-force mode demonstrates.
Does it work with non-English letters?
Only the letters A–Z and a–z are shifted. Accented letters and other alphabets are left unchanged.