Free quizzes

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.

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.

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.

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.

Is this different from a general quote cryptogram book?

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.