Letterpile

Cryptogram Solver

Paste the puzzle, then fill in the key: each box says which real letter a cipher letter stands for. The decoded text updates as you type.

Key (cipher letter → real letter; faded letters aren't in the puzzle)

Candidates for each cipher word appear here. “Suggest a key” fills in the rest of the key with the best fit it finds.

A cryptogram is a short piece of text in which every letter has been swapped for another, the same way throughout: if K stands for E once, it stands for E everywhere, and no other letter stands for E. Codeword puzzles use numbers instead of letters but work the same way. You solve them by spotting patterns, guessing a word, and following the consequences. This page does the bookkeeping: you keep the key, it shows the decoded text, lists the real words that fit each cipher word, and can suggest a whole key.

How to use it

  1. Paste or type the puzzle. Capitals, punctuation and spaces are kept as they are.
  2. Fill in the key as you work something out: under each cipher letter, type the real letter it stands for. A box turns red if two cipher letters point to the same real letter.
  3. Press Show candidates to see, for every cipher word, the real words that fit its letter pattern and your key so far. Tap a candidate to put its letters into the key.
  4. Press Suggest a key to let the solver fill in the empty boxes with the key that turns the most text into real words. Your own entries are kept.

Letter patterns

The most useful clue in a cryptogram is the pattern of repeated letters inside a word. CHEESE has the pattern ABCCDC: the third, fourth and sixth letters are the same, and the rest are all different. A cipher word always has exactly the same pattern as its answer, so the cipher word JOLLZL could be CHEESE, but a six-letter cipher word with no repeated letters couldn't. The solver groups every word in its list by pattern, so it can list the candidates instantly: 75 words share the pattern of CHEESE.

A worked example

Here is a proverb with every letter shifted seven places along the alphabet:

AOL LHYSF IPYK JHAJOLZ AOL DVYT IBA AOL ZLJVUK TVBZL NLAZ AOL JOLLZL

With an empty key, Suggest a key decodes it as THE EARLY BIRD CATCHES THE FORM BUT THE SECOND MOUSE GETS THE CHEESE. That's right except for FORM: the solver found real words that fit, but not the intended ones. Fixing one letter in the key and suggesting again finishes it. This is typical: the suggestion gets you most of the way, and your eye does the rest.

How the suggestion works

The solver tries words for the cipher word with the fewest candidates first, then the next most constrained, keeping the key consistent at every step: no cipher letter can stand for two letters, and no real letter can be used twice. It scores each complete key by how many letters it explains with real words, giving extra weight to everyday words, and keeps the best one it finds within about a second and a half. Short puzzles have many possible keys, so for a quote of five words or fewer, treat the suggestion as one possibility among several. Words that are names or not in the list are left undecoded rather than forced.

Tips for solving by hand

  • One-letter words are almost always A or I.
  • Short common words: three-letter cipher words that repeat are often THE or AND.
  • Apostrophes: a single letter after an apostrophe is usually S or T; two letters are often RE, VE or LL.
  • Letter frequency: in English text, E, T, A and O are the most common letters, so the most frequent cipher letters are good guesses for them. The key shows how often each cipher letter appears.

Privacy

Your puzzle and key stay in your browser. The address bar keeps the first 400 characters and the key so you can come back to a puzzle.

Frequently asked questions

What kinds of puzzle does it handle?
Any simple substitution cipher, where each letter always stands for the same other letter. For number codewords, write each number as a letter first.
Why does a key box turn red?
Two cipher letters point to the same real letter, which a substitution cipher doesn't allow. One of them is wrong.
Why is the suggested key wrong for my short puzzle?
Short texts often fit several keys equally well. Fill in one letter you're sure of and suggest again; each correct letter narrows the choice.
Can a letter stand for itself?
In most published cryptograms, no letter stands for itself, but the solver doesn't assume that.
Does it handle names?
Names usually aren't in the word list, so they get no candidates. The solver leaves them undecoded and works on the rest.
What does tapping a candidate do?
It writes that word's letters into the key, so the decoded text and every other word's candidates update.

Last updated:

In the ENABLE word list. Definitions come from the Free Dictionary API; looking one up sends the word and your IP address to that service.