Caesar cipher, with automatic cracking

Encrypt with any shift — or recover the message when you have no key whatsoever.

No key?

All 26 shifts, most to least likely
🔒 Everything is computed in your browser: nothing is sent to a server.

The real problem: you do not have the key

Every Caesar tool online asks you for a shift. But whoever searches « decode caesar cipher » almost always has the opposite: a message, and no key. A puzzle, a treasure hunt, a homework exercise, an escape room.

This tool solves that case. It tries all 26 possible shifts, counts the letters of each result and compares that distribution to the chosen language using a chi-squared test. The shift whose frequencies best match English — where e accounts for 12.7 % and q for 0.09 % — is almost always the right one. You type nothing but the message.

Why the tool tells you when it is unsure

Frequency analysis has an honest limit: it needs material. On a full sentence the correct shift stands clearly apart from its rivals. On a seven-letter word, a wrong shift sometimes wins by chance — we measured exactly that.

So the page shows a confidence indicator: the gap between the best candidate and the runner-up. High confidence, trust the answer. Confidence near 1, the tool says so and invites you to scan the 26 possibilities yourself, all listed and ranked. A tool that claims to always be right is a tool that will mislead you one day without warning.

Frequently asked questions

What exactly is the Caesar cipher?

A shift cipher: each letter is replaced by the one N places further along the alphabet. With N = 3, A becomes D. According to Suetonius, Julius Caesar used a shift of 3.

Is the Caesar cipher secure?

Not remotely. There are only 25 useful keys and a computer tries them all instantly — which is precisely what this page does. Never use it to protect anything.

Why must I pick a language?

Because cracking compares letter frequencies against a reference language. E dominates in both English and French, but h is six times more common in English and n dominates in German.

Are accents and punctuation encrypted?

No, they are left untouched, as in the classical definition of the cipher. Only A-Z letters are shifted.

Related tools