Encrypt with a 0–25 shift, decrypt if you know the key, or paste ciphertext and let chi-squared frequency analysis pick the key for you. This is an educational tool — it shows why a shift cipher is not security.
Shift of 3 is the historical Caesar cipher. Shift of 0 returns plaintext.
Compare observed letter counts in the current input against the expected English distribution. If the input is Caesar-shifted English, the bars should look like English, just rotated.
The Caesar cipher shifts every letter by a fixed amount. Julius Caesar reportedly used shift 3 to send military orders. For 2,000 years people assumed it provided some kind of secrecy. It does not.
In the 9th century, the Arab polymath Al-Kindi wrote the earliest known description of frequency analysis. The insight is devastating in its simplicity: in any long message, every letter of the alphabet appears at roughly its natural frequency. Shift the alphabet and the histogram shifts with it. Read the histogram, identify the most common letter, and the most common letter in English is e. Subtract that distance from the shift, and you've recovered the key.
This tool runs that attack live. Paste any Caesar ciphertext of ~80 characters or more, click Crack, and you get the shift, the chi-squared score, and the decrypted plaintext for every candidate. The lowest chi-squared value wins.
The chi-squared statistic is borrowed from physics. It measures how far an observed distribution deviates from an expected one. For letters, the expected distribution is the frequency of A–Z in English prose. The observed distribution is what your ciphertext actually contains. A small chi-squared value means "looks like English"; a large value means "doesn't".
You need to see the attack, not just the cipher. This tool runs the attack. Read the chi-squared scores, see how even short ciphertexts betray the shift, and understand why "shift the alphabet" was never going to work as security.
Al-Kindi's manuscript predates European cryptography by 600 years. The frequency-analysis attack wasn't rediscovered until the Renaissance. This tool makes the math behind that historical pivot concrete and reproducible.
Got a Caesar ciphertext from a puzzle book, geocache, or escape room? Paste it here and the cracker will produce the plaintext. You'll also see why the puzzle was never actually hard — for a computer.