Home › Ciphers › Cryptogram Solver

Cryptogram Solver

A cryptogram hides its message behind a shuffled alphabet — 26 letters, each standing for another. There are more possible alphabets than atoms in the Earth, yet a computer can find the right one in seconds, because English itself gives the search away. Paste your puzzle and watch it happen — or read how, and solve the next one by hand.

In short

A cryptogram is a short text — usually a quotation — encrypted with a simple substitution cipher: every letter is consistently replaced by another letter, word divisions are kept, and the solver must recover the alphabet. This page's solver does it automatically, scoring candidate alphabets by how English their output looks and climbing toward the best.

Modes: Aristocrat (word divisions kept) and Patristocrat (divisions removed, letters in blocks of five). Hints mode lets you lock in letters you already know.

Solve your cryptogram

0 letters
Try a worked example:

Pattern-word helper

Stuck on one word by hand? Type a cipher word and see which English words share its exact pattern of repeated letters — the same dictionary the solver uses.

How it works

The rules of the game

A cryptogram, in the newspaper and American Cryptogram Association tradition, plays fair by fixed rules. The alphabet is shuffled once and used consistently: if Q stands for T in the first word, it stands for T everywhere. Word divisions and punctuation are kept in an Aristocrat; in a Patristocrat they are stripped and the letters are dealt out in blocks of five. One more ACA convention does solvers a quiet favour: a letter never stands for itself — if the plaintext has an E, the ciphertext letter above it is never E. Every rule is a constraint, and every constraint is a handhold.

Solving by hand: the classic five moves

  1. One-letter words. English has two: A and I. A lone letter is one of them, and the sentence around it usually says which.
  2. Apostrophes. A letter after an apostrophe is usually S (possessive) or T (don't, can't); two letters after it suggest LL, RE or VE. Punctuation is plaintext the setter forgot to hide.
  3. Frequency. Count the letters. The commonest cipher letter is probably E; the next cluster is T, A, O, I, N. Rare letters (J, Q, X, Z) betray themselves by barely appearing.
  4. Pattern words. A word whose letters repeat in a pattern — THAT (ABCA), PEOPLE (ABCADB-flavoured), THE with its tell-tale frequency — can be matched against a mental shortlist. Our pattern helper above automates exactly this move.
  5. Common words and endings. A three-letter word that appears everywhere is probably THE or AND; -ING, -ION and -ED endings complete words you half-know, and each confirmed letter unlocks every word it touches.

How the automatic solver works

The machine plays the same game at inhuman speed. It starts from the frequency guess (your most common letter is E, and so on down the alphabet), then hill-climbs: swap two letters of the trial alphabet, re-read the whole text, and keep the swap if the text scores better. The score combines letter-group statistics — four-letter groups (quadgrams) and three-letter groups, counted from ordinary English, reward decryptions that contain THE, AND and ING-shaped runs — with a dictionary bonus for whole real words, the same signal the pattern helper uses. Thousands of swaps a second, with random restarts to escape local dead ends and a final polish pass, walk the alphabet uphill until the quotation steps out of the noise. On a typical newspaper-length Aristocrat that takes about a second.

Origin & history

From Poe's challenge to the ACA

The cryptogram as popular entertainment begins with Edgar Allan Poe, who in 1841 invited readers of Graham's Magazine to send him substitution ciphers to break — and broke them, publicly, one after another — before weaving a famous one into his 1843 story The Gold-Bug, whose solution scene is a frequency-analysis lesson in disguise. Newspaper cryptogram columns carried the form into the twentieth century, and in 1929 its devotees organised themselves as the American Cryptogram Association, whose journal The Cryptogram still publishes Aristocrats and Patristocrats by the hundred, with constructors hiding behind pen names and solvers racing the same puzzles this page automates. The ACA's conventions — the shuffled alphabet, the kept divisions, the rule that no letter stands for itself — are the rules the tool above assumes.

  • 1841 — Poe's public cipher-breaking challenge in Graham's Magazine.
  • 1843 — The Gold-Bug makes frequency analysis famous.
  • 1929 — the American Cryptogram Association is founded.
  • Today — syndicated newspaper cryptograms remain a daily ritual; the hill-climb does in a second what Poe did in an evening.
Reference

The two pictures every solver carries

English letter frequency

Count a long English text and the letters settle into this shape — E towering at about 12.7%, a long slope through T, A, O, I, N, and a desert of J, X, Q, Z under 0.2% each. Your cryptogram's letter counts are this picture, relabelled. Matching the two skylines is the solver's first move and the human's best friend.

Word patterns

Write a word's repetition pattern by replacing the first distinct letter with A, the next with B, and so on. THAT becomes ABCA; NOON becomes ABBA; PEOPLE becomes ABCADB. A cipher word and its plaintext always share a pattern, which is why the pattern helper can shortlist a word before a single letter is known — try feeding it TCN from the worked example and watch THE lead the list of candidates by frequency of use.

Worked example

One cryptogram, solved by hand

The puzzle

L EDRO DJ TCN CLJO DS WKRTC TWK DJ TCN EUSC

Move 1 — the one-letter word. L stands alone, so L is A or I. Keep both in mind.

Move 2 — the repeating three-letter word. TCN appears twice. The commonest three-letter word in English is THE; tentatively set T=T, C=H, N=E.

Move 3 — spend the H. CLJO starts with C — now H. With L=A from move 1, CLJO reads H-A-?-?: HAND fits the shape and the sense. Set J=N, O=D.

Move 4 — the two-letter word. DJ ends in J, now N: the two-letter words ending in N are IN, ON, AN. DJ appears right before TCN (THE) both times — “IN THE” reads perfectly. Set D=I.

Move 5 — let it cascade. EDRO now reads ?-I-?-D: BIRD gives E=B, R=R. WKRTC reads ?-?-R-T-H: WORTH gives W=W, K=O. DS is I-?: IS gives S=S. TWK is T-?-O: TWO. EUSC is B-U-S-H once U falls out of the remaining letters.

Solved: “A BIRD IN THE HAND IS WORTH TWO IN THE BUSH.” Load it with the first button above the tool and compare the machine's route — it reaches the same alphabet by statistics rather than deduction, in about a second.

Breaking it

Attacks, and where they stop working

A substitution cipher's key space sounds enormous — 26! ≈ 4 × 1026 alphabets — but nobody searches it blindly. Frequency matching fixes the common letters almost for free, pattern words pin down whole words at a stroke, and hill climbing converts “close” into “correct” by trading letters until the text's statistics peak. The cipher's real weakness is structural: it preserves everything about the language except the labels.

  • Length is life. Under about 50 letters, several alphabets may score alike; under 25, expect a plausible reading rather than a certain one. The solver reports its dictionary score so you can judge.
  • Patristocrats are harder. Without word divisions the dictionary bonus and pattern moves lose their grip; the letter-group statistics must do all the work. Give a Patristocrat more text — 150 letters or more.
  • Strange plaintext resists. A quotation stuffed with rare words, names, or missing its letter E on purpose will pull the statistics off course. Hints mode exists for exactly this: lock the letters you are sure of and let the climb work around them.
  • A wrong hint is worse than none. A locked letter is never questioned by the search. If the output is nonsense with one word stubbornly wrong, suspect your hint first.
Variants

Aristocrat, Patristocrat, and their cousins

VariantWhat changesEffect on solving
AristocratWord divisions and punctuation keptThe standard game — patterns, apostrophes and one-letter words all available
PatristocratDivisions removed; letters in blocks of fiveHarder — no word shapes; needs more text and leans on letter-group statistics
XenocryptThe plaintext is in another language (classically Spanish)English statistics mislead; the same method works with that language's frequencies and dictionary
CryptarithmLetters stand for digits in an arithmetic sumA different game entirely — column arithmetic and carries, not language statistics

The mode switch above the tool handles the first two. Xenocrypt and cryptarithm pages are on the Phase 1 roadmap with their own engines; the Identifier will already flag a Spanish-looking frequency profile for you.

Uses & culture

A daily ritual, a century and a half old

The cryptogram endures because it is perfectly sized: hard enough to resist a glance, easy enough to fall over breakfast. Syndicated cryptogram features run in newspapers across the English-speaking world, almost always hiding a quotation — the setter's gift to the solver, since quotations are ordinary, grammatical, E-rich English. The ACA's constructors compete to be devious within the rules (short texts, cruel letter distributions), and its solvers answer with the same five moves this page teaches. In classrooms the cryptogram is the friendliest first cipher: no machinery, no maths beyond counting, and a genuine “aha” when the alphabet clicks. That click is the whole point — the tool above will solve your puzzle, but the moves in the worked example are yours to keep.

Practice

Two puzzles, by hand or by machine

Practice 1 — a winter proverb

EASSAP QZCA SFZL QMPPX VFAL XMT SPZUAJ GL VGLSAP
Reveal the answer

“BETTER SAFE THAN SORRY WHEN YOU TRAVEL IN WINTER.” First handholds: the pattern of EASSAP (ABCCBD-flavoured doubling) and QZCA appearing twice where THAN/WHEN-shaped words belong. The machine solves it in about a second — try hints mode with one letter you find yourself.

Practice 2 — the pangram

TEC QUFGJ AROWN BOX HULPS OVCR TEC KMZY IOD
Reveal the answer

“THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG.” TEC appears twice and is THE both times — and because a pangram uses every letter, solving it recovers the entire alphabet.

The printable in the sidebar carries the frequency chart and the five by-hand moves — the two things worth having on paper.

FAQ

Frequently asked questions

How long does a cryptogram need to be for the solver to crack it?

A full sentence is the practical floor. Around 100 letters of ordinary English, the solver is right essentially all of the time; around 50 letters it is usually right with an occasional swapped pair; below that, treat its answer as a strong suggestion and check it against hints you can verify by hand.

What is the difference between an Aristocrat and a Patristocrat?

Presentation, not cipher. Both use the same shuffled alphabet; the Aristocrat keeps the plaintext's word divisions and punctuation, the Patristocrat strips them and deals the letters out in blocks of five. Losing the word shapes makes the Patristocrat meaningfully harder, which is why the ACA treats them as separate crafts.

How does hints mode work?

Type the letters you are sure of in the hints box in the form Q=T (cipher letter = plain letter), separated by commas. The search locks those pairs and never swaps them. It is the fastest way to rescue a solve when you have cracked one word by hand — and a wrong hint will reliably produce elegant nonsense, so double-check it first.

Why did the solver return a reading that is almost right?

Two letters with similar frequencies (often a pair like O/A or the rare-letter tail) can swap without hurting the score much, especially in short texts. Read the output aloud: an “almost” solve shows you the two or three letters to trade, and locking one corrected pair in hints mode and re-solving usually finishes the job.

Can it solve a cryptogram in another language?

Not reliably — its statistics and dictionary are English. A Spanish cryptogram (a Xenocrypt) needs Spanish frequencies and a Spanish dictionary; that variant has its own page on the roadmap. The solver will still find an alphabet for foreign text, but the output will be English-flavoured coincidence.

Does my puzzle leave my device?

No. The search runs entirely in your browser; nothing is uploaded or stored.

Next steps