Shakespeare Cryptograms: How to Decode Famous Lines
Shakespeare cryptograms are puzzles in which a famous line from a play or sonnet is written in a letter-substitution code, so each printed letter stands for a different real one. You swap the letters back until the line reads clearly. A first-word hint and a few given letters make the early guesses easier.
The plays help you here. Shakespeare's best-known lines are full of short, common words such as “to”, “the” and “and”, and those give a decoder easy footholds. Below is one real puzzle from Large Print Cryptograms: Shakespeare's Best-Loved Lines, decoded step by step.
How do you decode a Shakespeare cryptogram?
Here is puzzle 168 from the book, exactly as printed. The hint says it is from Hamlet and the first word is “To”.
LK YRXXG, GXHVWBZVX LK PHXBA; BN, LWXHX’Y LWX HOF.
- Use the hint first. The first word is “To”, so the first two-letter word LK must be T-O. Write L = T and K = O. The same LK appears again after the comma, which fits the idea of a repeated “to”.
- Count the letters. X shows up seven times, more than any other letter. In ordinary English the most common letter is E, and here X = E is the safest early bet. L, now known as T, is the next most frequent at four.
- Look at the short words. LWX is a three-letter word that starts with T and ends with E: it can only sensibly be THE, so W = H.
- Look for double letters. YRXXG has a double X, which is a double E. S-L-E-E-P fits, and it also gives you Y = S, R = L and G = P.
- Use apostrophes. LWXHX’Y ends in an apostrophe and Y. Y is already S, so this is THERE’S, which gives H = R.
- Match the pattern of a long word. GXHVWBZVX has the same letter in positions 2 and 9 (E) and another in positions 4 and 8. P-E-R-C-H-A-N-C-E fits exactly, so V = C, B = A and Z = N.
- Finish and check. The rest falls into place: PHXBA is DREAM, BN is AY, HOF is RUB. Read the whole line aloud and make sure no letter in the code stands for two different letters.
The answer: “To sleep, perchance to dream; ay, there’s the rub.” It is from Hamlet, Act 3, Scene 1, in the speech that begins “To be, or not to be”. (Source: Wikipedia, “To be, or not to be”, which gives the line in both modernized and Second Quarto spelling, read 10 November 2026.)
Why are Shakespeare lines good cryptogram material?
Three reasons come from the language itself rather than from any claim about the puzzle being good for you.
- Plenty of tiny words. Lines from the plays lean on “to”, “the”, “of” and “is”, which are easy to spot.
- Contractions and apostrophes. Forms like “there’s” and “’tis” point straight at a final S or a T-I-S pattern.
- Rhythm. Because verse has a beat, you can often tell how a half-solved line ought to sound, which helps you choose between two possible words.
What are the best-known lines from Hamlet, Macbeth and Romeo and Juliet?
These are among the most widely quoted lines in English, and a good sign of what a Shakespeare cryptogram book can draw on.
- Hamlet: “To be, or not to be, that is the question.”
- Macbeth: “Double, double toil and trouble.”
- Romeo and Juliet: “What’s in a name? That which we call a rose by any other name would smell as sweet.”
This book spans plays and sonnets, and its answer key names the play or poem for each line, with an index that lists the puzzles by play.
What do you get in this particular book?
The facts below come from the book's own listing details.
- 270 puzzles in four levels: Warm-Up, Steady, Challenge and Tricky.
- Starter letters already filled in for Levels 1 to 3.
- A hint on every puzzle: the first word of each line.
- An A-Z code key on every puzzle page for tracking guesses.
- Instructions, a worked example and a codebreaker's cheat sheet at the front, so no puzzle experience is needed.
- 8.5 x 11 inch pages, 266 pages in all, black ink on white paper, with write-in boxes. The title says large print; the exact point size will be stated here once it has been measured on the final file, and our guide What “Large Print” Really Means explains how we check it.
Is this different from a general quote cryptogram book?
- A general book mixes proverbs, quotations and sayings. A Shakespeare book keeps to one writer, so you start to recognize his habits.
- Every line here is sourced to a play or poem in the answer key. A general book may give only the author's name.
- The lines in this book were verified against Project Gutenberg editions, according to the publisher's own checks. Spelling varies by edition: original printings spelled words in varied ways and modern editions standardize them, so check a book's sample pages to see which style it uses.
Who is it for, and who should skip it?
It suits people who like pencil-and-paper puzzles and enjoy Shakespeare, whether they are readers, theater-goers or students in an English class. The hints and starter letters mean a first-timer can begin on Level 1, while the Challenge and Tricky levels give experienced solvers more to chew on.
It is a poor fit if you want a puzzle you can finish in a minute (each one needs real trial and error), if you would rather have modern quotes and sayings, or if you need a Bible-text or general-quotation book instead. Cryptograms also involve a lot of erasing, so keep a pencil and eraser handy; they are not included.
If a game afternoon is more your style, our post on how to host a trivia game from a book has a simple plan for group play, and a cryptogram can be a quiet puzzle break between rounds.
Questions people ask
How do you decode a Shakespeare cryptogram?
Start with the hint, then look for the most common letter (usually E), short words like THE and TO, double letters and apostrophes. Each letter stands for one other letter every time, so each correct guess unlocks the rest.
What play is "To be or not to be" from?
Hamlet, Act 3, Scene 1. Hamlet speaks the line at the start of his best-known soliloquy.
Is Shakespeare's text in the public domain?
Yes. The plays and sonnets are centuries old and free to reuse. Modern editions can add copyrighted notes or editing, so this book's lines were verified against Project Gutenberg editions, according to the publisher's checks, and the puzzles are its own.
What are the best-known lines from Hamlet, Macbeth and Romeo and Juliet?
Hamlet: "To be, or not to be, that is the question." Macbeth: "Double, double toil and trouble." Romeo and Juliet: "What's in a name? That which we call a rose by any other name would smell as sweet."
Do Shakespeare cryptograms use modern spelling?
It depends on the edition. Original printings spelled words in varied ways, and modern editions standardize them (for example, "aye" or "ay"). Check the sample pages of any book to see which style it uses.
