How to Crack a Caesar Cipher — Brute Force & Frequency Analysis
By Letters2NumbersConverter.com | May 13, 2026
The Caesar cipher has only 25 possible keys — making it one of the easiest classical ciphers to crack. This guide walks through both methods: brute force (try all 25 shifts until one produces readable text) and frequency analysis (use the statistical distribution of letters to identify the shift mathematically). Both methods work without any specialist tools, though our free Caesar Cipher Decoder automates the entire process with a single click.
Why the Caesar Cipher Is Easy to Crack
Every Caesar cipher has a key space of exactly 25 (shifts 1 through 25 — shift 0 and shift 26 are the same as no shift). A human can read through 25 candidate decryptions in about two minutes. A computer can check all 25 in microseconds.
The 9th-century Arab mathematician Al-Kindi identified this weakness in his treatise on cryptanalysis, and the Caesar cipher has been considered broken — in the cryptographic sense — for over 1,000 years. It is taught today as an educational tool, not a security system.
Method 1: Brute Force — Try All 25 Shifts
The simplest approach is to decode the ciphertext with every possible shift from 1 to 25 and look for the one that produces readable English.
Step-by-Step: Brute Force
- Write down the ciphertext. You need the full encoded message.
- Attempt shift 1. Replace each letter with the letter 1 position earlier in the alphabet (A→Z, B→A, C→B, etc.). Does the result look like readable text?
- If not, try shift 2, shift 3, and so on. For most English text, the correct shift stands out immediately — the decrypted words will be recognisable.
- Stop when you find readable text. That shift is the key.
Worked Example: Brute Force
Ciphertext (shift 11 applied):
Trying a few shifts manually:
Shift 11 immediately produces recognisable English — the correct key is found. Our Caesar Cipher Decoderdoes this automatically: click "Show all 25 shifts" and the correct decryption is ranked first.
Method 2: Frequency Analysis — The Mathematical Approach
Frequency analysis works because letters in natural language do not appear with equal probability. In English, E appears in roughly 12.7% of all letters. T, A, O, I, and N are the next most frequent. Z, Q, X, and J appear rarely.
When you apply a Caesar cipher, the relative frequencies shift along with the letters. The most common letter in the ciphertext is almost certainly the encoded version of E. Finding it tells you the shift directly.
English Letter Frequency Chart
Top 10 letters shown. Full alphabet: E T A O I N S H R D L C U M W F G Y P B V K J X Q Z
Step-by-Step: Frequency Analysis
- Count how often each letter appears in the ciphertext. Tally every A through Z.
- Find the most frequent letter. In a sufficiently long ciphertext (50+ letters), this is very likely the encoded E.
- Calculate the shift. If the most common ciphertext letter is P (position 15), and E is position 4, the shift is 15 − 4 = 11.
- Verify by decoding. Apply the reverse shift to the ciphertext and check whether it produces readable English.
- If it doesn't work, try the second-most-frequent letter. In short texts, the frequency distribution may not match the expected English pattern perfectly. Try assuming the top letter is T, A, O, or I instead.
Worked Example: Frequency Analysis
Using the same ciphertext (shift 11):
Top 6 most frequent letters in the ciphertext:
The most frequent letter is P. Assuming this encodes E (position 4):
Shift = position(P) − position(E) = 15 − 4 = 11
→ Shift 11 confirmed ✓
Decoding with shift 11: WHEN IN THE COURSE OF HUMAN EVENTS IT BECOMES NECESSARY
Which Method Should You Use?
| Situation | Best method | Why |
|---|---|---|
| Short text (< 30 letters) | Brute force | Frequency analysis is unreliable on small samples; brute force is fast to scan by eye |
| Long text (50+ letters) | Frequency analysis | Frequencies stabilise, giving a reliable shortcut to the correct shift |
| You have a computer | Brute force with scoring | A computer checks all 25 shifts instantly and ranks by English score — our tool does this |
| Puzzle with given hint | Brute force | Quicker to try likely shifts first (3, 13, 7, 17) than to count frequencies |
| Unknown language | Brute force | Frequency analysis depends on knowing the source language's letter distribution |
Crack Any Caesar Cipher Instantly — Free Online Tool
Our Caesar Cipher Decoder automates both methods:
- Paste your ciphertext into the input box
- Click "Show all 25 shifts" — every possible decryption appears simultaneously, ranked by English-language likelihood score
- The top result (marked with ★) is almost always the correct one
- Click the row to apply that shift, or copy the decoded text directly
Limitations of Frequency Analysis on Caesar Ciphers
Frequency analysis becomes unreliable when:
- The text is very short. A 10-letter ciphertext may not have a clear dominant letter, or the most frequent ciphertext letter may not encode E.
- The text is a proper noun, list, or unusual vocabulary. A message consisting of place names has a very different frequency distribution from normal prose.
- The text is a pangram or constrained writing. Some puzzle messages are deliberately constructed to have unusual letter distributions.
In all these cases, fall back to brute force — 25 shifts is a small enough space to check manually or with our tool.
Practice: Crack These Ciphertexts
Try decoding these using our Caesar Cipher Decoder. Use brute-force mode to find each shift.
Puzzle 1
ZNK UTRE CGE UAZ OY ZNXUAMN
Puzzle 2
UDAADL IWT LWXIT GPQQXI
Puzzle 3
GJKSHAZCA EO PDA CNAWPAOP SAWLKJ
Further Reading
- Caesar Cipher History — where the cipher came from and how it has been used
- Caesar Cipher Examples — worked encoding and decoding for shifts 3, 7, 13, and 21
- Caesar Cipher Shift 13 — why shift 13 (ROT13) is the only self-inverse Caesar shift
- ROT13 vs Caesar Cipher — detailed comparison of the two ciphers
- Cipher Identifier Tool — not sure which cipher was used? This tool analyses the text automatically