Spy skills
The Pigpen Cipher
The key, and how to write a message
The pigpen cipher swaps each letter for a small shape made of lines and dots. It looks impossible to read, and it takes about five minutes to learn.
The pigpen cipher is the one that looks most like a real spy code. Each letter turns into a corner, a box or a pointed shape, and half of them carry a dot. The whole key comes from four simple grids that a child can draw from memory, so there’s nothing to carry and nothing to lose. Here’s the key, then how to write and read a message with it.
The pigpen cipher key
There are four grids:
- A noughts-and-crosses grid holding A to I.
- The same grid with a dot in every space, holding J to R.
- A large X holding S, T, U and V.
- The same X with dots, holding W, X, Y and Z.
Step by step: how to write a pigpen message
- Draw the four grids. Two noughts-and-crosses grids and two large X shapes.
- Fill in the alphabet in order. A to I in the first grid, reading left to right and top to bottom. J to R in the second grid. S, T, U and V in the first X, starting at the top and going left, right, then bottom. W, X, Y and Z in the second X the same way.
- Add a dot to every space in the second grid and the second X.
- Write your message in ordinary letters first.
- For each letter, draw only the lines that touch its space. A sits in the top left corner of the first grid, so it has a line on its right and a line underneath. E sits in the middle, so it is a full square.
- If the letter comes from a dotted grid, put the dot inside the shape. N sits in the middle of the second grid, so it is a square with a dot.
- Leave a small gap between letters and a bigger one between words.
Here is the word AGENT:
How to read a pigpen message
Work one shape at a time. First, is there a dot? That tells you which pair of grids to look at. Next, is it made of straight sides like part of a box, or is it a pointed shape? Boxes come from the noughts-and-crosses grids and points come from the X shapes. Then match the sides to the space on the key and read off the letter.
Tips
- Draw the key from memory a few times. Once a child can do that, they never need the key card again.
- Use squared paper to keep the shapes the same size.
- Start with names. Then move on to short notes.
- Make your own version. Fill the grids in a different order, or put the dots in the first grid, and only the people who know your version can read it.
Common mistakes
- Forgetting the dot. Without it, N turns into E and J turns into A.
- Drawing the whole grid. Only the lines touching the letter’s space are drawn.
- Mixing up the four X letters. They all look like arrowheads. S points down, T points right, U points left and V points up, because each one is the corner of the X nearest the middle.
- Squashing the shapes together. Two shapes that touch look like one new shape.
More codes to try
Pigpen is one of five on our secret codes for kids page. Morse code is the one for sending messages by torch, and invisible ink hides the message altogether.
Our printable spy missions are full of puzzles like this one. Each is a printed case for ages 5 to 11, where solving each part unlocks a video from a senior agent. A mission takes about an hour.
More ideas for your agents
What is the pigpen cipher?
It's a secret alphabet where each letter is replaced by the shape of the lines around it in a grid. Half the letters have a dot added to tell them apart.
Why is it called pigpen?
The grids look like the fenced pens on a farm, with each letter sitting in its own pen. It's also known as the Freemasons' cipher, because Freemasons used it in the 1700s.
How do you read a pigpen message?
Find each shape on the key. Check whether it has a dot, check which sides have lines, and read off the letter that sits in that part of the grid.
Is the pigpen cipher easy to crack?
Yes, for anyone who has seen the key, and it can be worked out without one from a long enough message. It's for fun and for keeping notes from little brothers, not for real secrets.
Verified reviews
What parents say
after their kids have done a mission
Every review is a verified purchase on Bookme, an independent booking site.
Rating for the Boredom Buster Pack (Five Secret Missions) as shown on Bookme on 19 November 2026.
Fun for the holidays!
This was fun and different to do with the kids during the school holidays. It was a great way to get them thinking, reading and solving clues!
Awesome
It's actually 9 missions (2 of them have multiple parts) and it's amazing. My 7 year old needed adult help and my 10 year old just needed a little help. A great school holiday activity.
Absolutely brillaint
My eight year old loves spies and spy missions, and these were perfect for her. The missions have codes to crack, newspaper clippings to peruse, and clues to piece together. They are sufficiently varied, and complex enough to keep her engaged without being so tricky that I need to step in. They also come with certificates of completion and training activities. It's the best $25 I've ever spent!
Do children really think
they are secret agents?
Yes, here are some of the messages we receive from children when accepting their mission:
- "It is sorta strange because i was just on the couch one minute and then the next minute im a secret agent"
- "I feel great! I didn’t even know that super spy’s were real!!!and I changed my name to whatever’s on the top."
- "I am SO excited to be a secret agent, I have been waiting for this day since I was 5!!!!"
- "amazing!!! and I even have a detective coat that I am wearing right now and I will easily crack the code."
- "Thank you for choosing me. I don’t yet have professional spy moves but I’m trying my hardest to learn"
- "I feel overwhelmed that you chose ME for a secret spy mission"
- "I feel good. I like being an agent because Mum says I am good at spotting things."
- "I returned home to a secret message from you guys on my bed. I started to read it and after the first page, I was so happy I actually jumped for joy. Thank you so much for letting me be apart of this!"
- "I am honoured to be a part of this secret agency. I will try my hardest to solve cases no matter how difficult. I will keep every thing top secret and secure from the outer world."
Over 10,000 Missions Deployed!
Mystery discount
Sign up for a mystery discount
Sent straight to your inbox
Tell us where to send it and we'll email you a mystery discount to use on your first mission.



