Quick Answer
Type a message, choose Encode, and set the shift. With a shift of 3, each letter moves 3 places forward, so HELLO WORLD becomes KHOOR ZRUOG. To read a coded message, choose Decode with the same shift. If you do not know the shift, scan the All 25 Shifts table for the line that makes sense. A shift of 13 is ROT13, which works the same both ways.
Embed this calculator
Adjust the size if needed, then copy the code below into your page or blog. The calculator will load in an iframe and stay updated automatically.
Table of Contents
- Caesar Cipher
- Quick Answer
- Related Calculators
- How This Caesar Cipher Tool Works
- How to Use the Caesar Cipher
- How the Caesar Cipher Works
- Key Terms
- Worked Example
- Real-Life Examples
- Caesar Cipher vs Modern Encryption
- Shift 3 Alphabet
- How to Crack a Caesar Cipher
- Common Mistakes to Avoid
- Frequently Asked Questions
- References & Sources
How This Caesar Cipher Tool Works
The Caesar cipher is one of the oldest and simplest secret codes. Each letter is replaced by the letter a fixed number of places further along the alphabet. It is named after Julius Caesar, who, according to the Roman historian Suetonius, used a shift of three in private letters.
Features:
- Encode and decode: with any shift from 1 to 25.
- ROT13: a shift of 13, which encodes and decodes the same way.
- Crack a code: see the message decoded with all 25 shifts at once.
- Keeps formatting: case, numbers and punctuation stay as they are.
How to Use the Caesar Cipher
- Type or paste your message.
- Choose Encode or Decode.
- Enter the shift, from 1 to 25.
- Read the result, or scan all 25 shifts to crack a code.
- Press Copy to copy the result.
How the Caesar Cipher Works
- Number the letters: A = 0, B = 1, … Z = 25.
- Encode: new letter = (letter + shift) mod 26.
- Decode: letter = (new letter − shift) mod 26.
- Wrap around: after Z comes A again, so with a shift of 3, X becomes A.
- ROT13: 13 + 13 = 26, a full circle, so applying ROT13 twice gives back the original.
Key Terms
- Shift (key): how many places each letter moves.
- Plaintext: the original, readable message.
- Ciphertext: the coded message.
- ROT13: a Caesar cipher with a shift of 13.
Worked Example
Encode the word ZEBRA with a shift of 3.
- Z (25) + 3 = 28, and 28 mod 26 = 2, which is C.
- E (4) + 3 = 7, which is H. B becomes E, R becomes U, A becomes D.
- Result: CHEUD.
- Decoding CHEUD with a shift of 3 gives ZEBRA again.
Real-Life Examples
- Puzzles and escape rooms: hide a clue with a shift of 5.
- Classroom: teach how codes and keys work.
- Spoilers: ROT13 hides punchlines and spoilers on forums.
- Treasure hunts: kids decode the next clue with a known shift.
Caesar Cipher vs Modern Encryption
- Caesar cipher: 25 possible keys, broken by hand in minutes.
- Modern encryption: keys so large that trying them all is not practical.
- Use: Caesar for fun and learning, real encryption for privacy.
Shift 3 Alphabet
Each letter moves 3 places forward, wrapping from Z back to A.
| Plain | Cipher |
|---|---|
| A B C D E F G H I J K L M | D E F G H I J K L M N O P |
| N O P Q R S T U V W X Y Z | Q R S T U V W X Y Z A B C |
How to Crack a Caesar Cipher
- Try every shift: there are only 25, and the All 25 Shifts table shows them all.
- Look for common words: short words like THE, AND or A give the shift away.
- Letter frequency: in English, E is the most common letter, so the most common letter in a long message is often E.
- Not secure: never use a Caesar cipher to protect real secrets.
Common Mistakes to Avoid
- Decoding with Encode. Choose Decode, or use 26 minus the shift.
- Forgetting the shift. Use the All 25 Shifts table to find it.
- Expecting numbers to change. Only letters are shifted.
- Using it for real secrets. It is easy to break.
- Losing letter case. This tool keeps capitals and small letters.
Frequently Asked Questions
Choose Decode and enter the shift. If you do not know it, look through the All 25 Shifts table.
A Caesar cipher with a shift of 13; using it twice gives back the original text.
According to Suetonius, a shift of three.
No. Only the letters A to Z are shifted.
No. With only 25 possible shifts, it is easy to break.
25 useful shifts, from 1 to 25.
No. Everything runs in your browser.
A shift back of 3 is the same as a shift forward of 23.
It shifts the 26 English letters only; other characters stay the same.
Because the same shift both hides and reveals text, ROT13 is a quick way to hide spoilers or puzzle answers so readers only see them if they choose to decode them.
A Caesar cipher moves every letter by the same amount. A general substitution cipher can swap each letter for any other letter, which gives far more possible keys.
Yes. Pick a shift, encode your clue, and give players a hint about the number, such as how many people are in the room.
References & Sources
| Source | Used For | Link |
|---|---|---|
| Suetonius, The Lives of the Caesars, Julius 56 (Perseus Digital Library) | Caesar's use of a letter shift of three. | https://www.perseus.tufts.edu/hopper/text?doc=Perseus:text:1999.02.0132:life=jul.:chapter=56 |
| Wikipedia, Caesar cipher | How the cipher works and how it is broken. | https://en.wikipedia.org/wiki/Caesar_cipher |
DigitalCalculators.net. (2026, November 15). Caesar Cipher. https://digitalcalculators.net/caesar-cipher/