Pigpen Cipher
Type a message and see it in pigpen cipher, with the key. Print it as a code breaking worksheet, or use it to decode and write pigpen by hand.
- Answer key included
- Nothing is uploaded
- Letter and A4
- Free PDF

How the pigpen cipher works
Pigpen swaps each letter for a symbol. The symbols come from four simple drawings: two tic tac toe grids and two large X shapes. The letters A to I sit in the first grid, J to R in the second grid, S to V in the first X and W to Z in the second X. Each letter's symbol is just the lines that surround it. The second grid and the second X add a dot, so the two sets can be told apart.
So A, in the top left corner of the first grid, is drawn as a corner shape like a backward L. E, in the middle, is a full square. N, in the middle of the second grid, is a square with a dot.
Pigpen cipher key
| Letters | Drawing | Dot |
|---|---|---|
| A B C D E F G H I | Tic tac toe grid | No |
| J K L M N O P Q R | Tic tac toe grid | Yes |
| S T U V | X shape (top, left, right, bottom) | No |
| W X Y Z | X shape (top, left, right, bottom) | Yes |
The full picture key is printed at the top of the worksheet. Untick Print the key on the puzzle to make solvers work from memory or from a key you hand out separately.
How to decode a pigpen message
Look at the shape of each symbol and ask which part of the grid has walls in those places. A shape open on the left and top, like a letter L turned backward, belongs to a top left corner. Then check for a dot to see which grid it is. To check a message someone has given you, type your guess here and compare the symbols.
Where it comes from
Pigpen is several hundred years old. It is often called the Freemason's cipher, because Masonic lodges used it in the 1700s to keep their records private. It gives no real security today, since it is a simple substitution, but it is one of the best first codes for children and a favorite in escape rooms, scout groups and treasure hunts.
What you can change
- Title
- Your message
- Print the key on the puzzle
- Name and date line
- Paper size
- Add the answer key
The preview updates as you go. When it looks right, press Download PDF or Print.
Common questions
Is there more than one version of pigpen?
Yes. Some versions put the letters in a different order or use dots differently. This page uses the most common layout: two grids, then two X shapes.
Can pigpen show numbers?
The standard alphabet has no symbols for digits. Numbers and punctuation in your message are printed as they are.
Is my message saved or uploaded?
No. It stays in your browser.
Does the PDF include the answer?
Yes. With Add the answer key ticked, the last page shows the letters under the symbols.
How do I save it as a PDF?
Press Download PDF. The file is made in your browser in about a second and saved to your downloads folder.
Is this free to use?
Yes. Print as many copies as you like for home, a classroom, a care home, a church group or a club newsletter. Please do not sell the puzzles.
Last reviewed November 2026. Trouble printing? See printing help.




