How to Decode a Caesar Cipher (3 Methods)
November 19, 2026
What a Caesar Cipher Is
A Caesar cipher shifts every letter by the same number of places, so a message looks like nonsense until you shift it back. This guide shows you how to decode a caesar cipher by hand, with ROT13, and with a brute force table, with a worked example for each method.
The cipher is named after Julius Caesar, who used it to protect his military messages. He shifted each letter forward by 3 places, so A became D, B became E, and so on. To read the message, the receiver shifted each letter back by 3. The shift number is the key. Anyone who knows the key can read the message, and anyone who does not know it has to try the shifts until one of them makes sense.
Method 1: Decode With a Known Shift
If you know the shift, decoding is simple: move every letter back by that many places in the alphabet. When you run past A, wrap around to the end, so with a shift of 3, A moves back to X, B moves back to Y, and C moves back to Z.
Take the cipher text "KHOOR" with a shift of 3. Shift each letter back by 3:
- K moves back to H
- H moves back to E
- O moves back to L
- O moves back to L
- R moves back to O
The result is "HELLO". Numbers, spaces, and punctuation do not move, because the cipher only shifts letters.
Steps:
- Write down the cipher text and the shift number.
- For each letter, count back by the shift in the alphabet.
- Wrap around to Z when you pass A.
- Leave numbers, spaces, and punctuation exactly as they are.
This method is fast, but it only works when you know the shift. If you do not, use Method 3.
Method 2: Decode With ROT13
ROT13 is a Caesar cipher with a shift of 13. It is special because the alphabet has 26 letters, so shifting by 13 twice brings you back to where you started. That means the same step both encodes and decodes: apply ROT13 to a coded message and you get the plain message back.
Take the cipher text "URYYB". Apply ROT13, which moves each letter 13 places:
- U moves 13 places to H
- R moves 13 places to E
- Y moves 13 places to L
- Y moves 13 places to L
- B moves 13 places to O
The result is "HELLO" again. ROT13 is common in puzzles and online forums, where it hides a spoiler or a punchline that the reader can reveal by decoding it.
Steps:
- Take the cipher text.
- Move each letter 13 places forward in the alphabet, wrapping around at Z.
- The result is the plain message.
You can do this by hand with an alphabet strip, or with one click in a decoder tool, because ROT13 is the same shift every time.
Method 3: Brute Force All 25 Shifts
If you do not know the shift, try all of them. There are only 25 possible shifts, because a shift of 26 would leave every letter unchanged, so this is quick even by hand for a short message.
Take the cipher text "KHOOR" and shift it back by 1, then 2, then 3:
- Shift back 1: "JGNNQ"
- Shift back 2: "IFMMP"
- Shift back 3: "HELLO"
The third try reads as English, so the shift is 3 and the message is "HELLO". The first two tries are nonsense, which is how you know they are wrong.
For a longer message, you do not need to read all 25 tries. Look for clues instead. The letter E is the most common letter in English, followed by T and A, so the most common letter in the cipher text is probably one of those. Also look for short words: a three-letter word is often "the" or "and", and a word ending in "ing" is common. These clues point to the right shift in a few tries.
Steps:
- Write down the cipher text.
- Shift it back by 1, then 2, then 3, and so on.
- After each shift, read the result. The shift that gives real English words is the right one.
- If the message is long, use letter frequency and common words like "the" to narrow it down faster.
Faster Way: Use a Free Decoder
Doing all 25 shifts by hand is fine for a short message, but it gets slow for a long one. Our free online Caesar Cipher Decoder does the work for you.
Steps:
- Open the Caesar Cipher Decoder.
- Paste your cipher text into the input box.
- Choose Decode and set the shift, or press ROT13 for a shift of 13.
- If you do not know the shift, read the brute force table. It decodes your text with all 25 shifts at once and highlights the one that looks most like English.
- Copy the result.
The tool also encodes messages, so you can write your own cipher and send it to a friend to decode. Everything runs in your browser, and nothing is sent to a server.
Why Caesar Ciphers Are Not Secure
A Caesar cipher has only 25 possible shifts, so anyone can break it in seconds by trying them all. That is why it is a puzzle cipher, not real security. Never use it to protect private or important information, like a password or a bank detail. For real secrets, use proper encryption, such as a modern cipher or a password manager, not a letter shift.
Caesar used it 2,000 years ago because his enemies could not read at all, let alone break a code. Today, a computer breaks it instantly, and a person with a pencil breaks it in a minute.
Common Mistakes
Shifting the wrong way. Decoding shifts letters back, not forward. If you shift forward, you encode the message again instead of decoding it.
Forgetting to wrap around. When you shift back past A, you must continue from Z. Forgetting this gives you letters that do not exist.
Treating numbers as letters. Numbers, spaces, and punctuation never shift. Only the letters A to Z move.
Giving up after one wrong shift. A wrong shift gives nonsense, which is normal. Keep going through the shifts until one of them reads as English.
Using it for real secrets. A Caesar cipher is a game, not a lock. Anyone who finds your message can read it in seconds.
Frequently Asked Questions
What is a Caesar cipher?
It is a simple substitution cipher named after Julius Caesar. Each letter is shifted a fixed number of places, so with a shift of 3, A becomes D, B becomes E, and so on.
How do I decode a Caesar cipher without knowing the shift?
Use the brute force method. Try all 25 shifts and pick the one that reads as English. A decoder tool does this in one click and highlights the best match.
What is ROT13?
ROT13 is a Caesar cipher with a shift of 13. Because the alphabet has 26 letters, applying it twice returns the original text, so the same operation encodes and decodes.
Is a Caesar cipher secure?
No. It is a puzzle cipher with only 25 possible shifts, so anyone can break it in seconds by trying them all. Never use it to protect private or important information.
What is the difference between encoding and decoding?
Encoding shifts letters forward to hide a message. Decoding shifts them back to reveal it. With ROT13, the two steps are the same.
Faster Alternative: Do It Online
If you do not want to try 25 shifts by hand, our free online Caesar Cipher Decoder decodes your text in one click, with ROT13 and a brute force table that highlights the best match. There is no signup, no download, and nothing is sent to a server.