Skip to content
Kids Spy Network

Spy skills

Secret Codes for Kids
Five codes to write and crack at home

A secret code needs a pencil, a piece of paper and someone to send it to. Here are five that children can learn in an afternoon, each with an example to try.

Children have been passing secret notes for as long as there have been brothers and sisters to keep them from. A secret code turns a message into something only the right person can read, and working one out is a puzzle in its own right. This page explains how codes work, gives five to try with a worked example of each, and suggests ways to use them at home, from lunchbox notes to treasure hunts. Each code is written out for the word SPY so you can check your working. You don’t need to buy anything. A pencil, some paper and an alphabet written across the top of the page will do for all five.

Where secret codes come from

People have hidden messages in writing for thousands of years. Roman writers recorded that Julius Caesar wrote private letters by shifting each letter three places along the alphabet, which is why that method carries his name. Morse code arrived with the electric telegraph in the 1840s, and the pigpen cipher was used by Freemasons in the 1700s to keep their records private.

Strictly speaking, a code replaces a whole word or phrase and a cipher replaces each letter. Most of what children call secret codes are ciphers. Nobody will mind if you use either word.

How a secret code works

Every code has three parts:

  • The message. What you really want to say.
  • The key. The rule for changing it, which both people know.
  • The coded message. What ends up on the paper.

Writing the coded message is called encoding. Turning it back is decoding. Working it out without being told the key is cracking it.

Five secret codes to try

1. The number code

Each letter becomes its place in the alphabet: A is 1, B is 2, through to Z at 26. Put a dash between the numbers so 1 and 2 don’t turn into 12.

SPY becomes 19-16-25.

2. The Caesar shift

Move each letter the same number of places along the alphabet. With a shift of three, A becomes D, B becomes E and C becomes F. When you run out of alphabet, start again at A, so Y becomes B.

SPY becomes VSB.

To decode, shift each letter back by three. Change the size of the shift and you have a new code.

3. The mirror alphabet

Write the alphabet forwards, then write it backwards underneath. A swaps with Z, B with Y, C with X. The handy part is that the same key works in both directions.

SPY becomes HKB.

4. The pigpen cipher

Each letter is swapped for the shape of the lines around it in a grid, so a message looks like a row of corners, boxes and dots. The grids, and how to draw them, are on our pigpen cipher page.

5. Morse code

Each letter is a pattern of short and long signals, written as dots and dashes. It’s the one to choose for messages by torch, by tapping or by whistle.

SPY becomes ... .--. -.--

The whole alphabet is on our Morse code for kids page.

Want the message to vanish as well? Write it in invisible ink first.

How to use secret codes at home

  • Start with their name. A child’s own name in code is the quickest way in.
  • Leave notes. In a lunchbox, under a pillow, on the fridge.
  • Write the key on a card they can keep in a pocket, and make a second one for whoever they write to.
  • Put a coded clue in a treasure hunt. There are 30 clues to go with it on our treasure hunt clues page.
  • Let them set one for you. Writing a code is as much fun as cracking one, and it’s good to be the one who’s stuck for a change.
  • Keep first messages short. Three or four words is plenty.

What to look for in a code-breaking activity

If you’re buying a book, kit or game about codes, a few things are worth checking:

  • The key is included. A child should be able to work it out from what’s on the page, without an adult looking up the answer.
  • There’s a reason to crack it. A code that opens the next part of a story holds attention longer than a page of exercises.
  • The difficulty is mixed. An easy code first, then something that takes more thought.
  • There’s a way to get help. Hints or an answer sheet for the grown-up.

That’s how we build our own missions. Each one is a printed case for ages 5 to 11 where solving each part unlocks a video from a senior agent and the next part of the case. A mission takes about an hour. There are more ideas on our spy activities for kids page.

What is the easiest secret code for a child to learn?

The number code, where A is 1, B is 2 and so on to Z at 26. A child who knows the alphabet can write and read it straight away, and it's easy to check.

What is the difference between a code and a cipher?

A code swaps a whole word or phrase for something else, like saying the eagle has landed to mean dinner is ready. A cipher swaps each letter for another letter, number or symbol. Most things children call secret codes are ciphers.

How do you crack a code without the key?

Look for the letter or symbol that turns up most often. In English that is usually E. One-letter words are nearly always A or I, and a common three-letter word is often THE. Fill those in and the gaps start to suggest the other letters.

What age can children start using secret codes?

Once they know the alphabet and can count to 26, usually around age 5 or 6, they can manage the number code with help. The shift code and the mirror alphabet suit ages 7 and up.

Do Kids Spy Network missions use codes?

Yes. Each mission has codes to crack, and solving each part unlocks a video from a senior agent. Everything needed to crack them is in the mission.

Best Sellers

Explore Printable Missions

Verified reviews

What parents say
after their kids have done a mission

4.2out of 5 from 20 reviews

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.

Verified purchase

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!

Louise Menzies, New Zealand · Read this review on Bookme
Verified purchase

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.

Amy, New Zealand · Read this review on Bookme
Verified purchase

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!

Stephanie Andrade, New Zealand · Read this review on Bookme

Read more reviews

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.