Secret Code Activities for Kids: 20 Codes to Crack (+ Answers)
20 secret code activities for kids ages 5 to 13, each with a ready-to-use coded message and its answer. Plus a 4-lock secret agent escape room to run.
The best secret code activities for kids start with a code the child can crack in under five minutes, then get a little harder each round. For ages 5 to 7, use color codes, backwards words and missing vowels. For ages 8 to 10, use A1Z26 numbers, phone keypad codes and a Caesar shift of 3. For ages 11 to 13, move up to Atbash, Morse, pigpen, binary and two-step codes. Below you will find 20 of them, each with a coded message you can copy and the answer printed right underneath.
A secret code activity is simply a message the child has to decode to get something: the next clue, a treasure location, the password to a hidden note. The code is the game, and the reward is the moment it clicks. Every example in this guide has been decoded letter by letter, so you can print it, hide it in an envelope, or type the answer into a virtual lock without worrying about a typo in the solution.
Which Codes Work for Which Age?
The wrong difficulty is the number one reason a code game flops. Too easy and the child is bored in thirty seconds; too hard and they quietly drift away. Use this table as a starting point, then adjust to the child in front of you.
| Age group | Best codes | Message length | Help needed | |---|---|---|---| | 5-7 | Color codes, backwards words, missing vowels, riddles with a number answer | 3 to 6 elements | A visible key and an adult nearby | | 8-10 | A1Z26 numbers, phone keypad, Caesar shift 3, acrostics, pattern and arrow locks | 4 to 10 elements | A key on the table, no adult needed | | 11-13 | Atbash, Caesar with wrap-around, Morse, pigpen, Polybius, binary, two-step codes | 4 to 12 elements | Only a hint if they are stuck for several minutes |
Reading level matters more than age. A fluent 6-year-old can outrun a reluctant 10-year-old, so let the child pick between two codes if you are unsure. If you want themed ideas for the older end of this range, our guide to escape room ideas for teens goes further.
Ages 5 to 7: Codes Without Heavy Reading
At this age, keep every message short, keep the key visible the whole time, and let the child win quickly. All five codes below can be run as a paper activity or typed into a virtual lock.
1. The Color Dot Code
Give each color a number and let the child read a row of colored dots. Use big, clear colors: red = 1, blue = 2, green = 3, yellow = 4.
Coded message: yellow, red, blue, green
Answer: 4123
This is a perfect first code because the "decoding" is just matching. Draw the dots on an envelope, and the number opens a numeric lock or a combination box. Add a color name under each dot if any child might have trouble telling colors apart.
2. Backwards Writing
Write each word backwards. Younger children enjoy it because it feels like magic, and you can pretend it is the language of a faraway pirate crew.
Coded message: YEK EHT SI EREH
Answer: HERE IS THE KEY
Hold the paper up to a mirror and the children will see why this works so well as a prop. Keep words short and avoid long names at this age.
3. Missing Vowels
Remove the vowels and put a blank where each one was. The child fills them back in.
Coded message: B_N_N_
Answer: BANANA
Choose a word with only one obvious solution and show a picture of the object nearby for the youngest players. This is a great clue for a snack-table hunt: the final answer tells children which fruit bowl to check.
4. The Riddle Color Lock
No letters at all: a riddle whose answer is a sequence of colors. Children then tap the colors in order on a color lock.
Coded message: "Look up at the sky. Now look at a fire truck. Last, think of a lemon."
Answer: blue, red, yellow
Everything stays inside the lock's palette (red, blue, green, yellow, purple, orange, pink, cyan, teal, lime), so the answer is always something the lock can accept. Keep the sequence to three or four colors for this age group.
5. The Counting Riddle
Four tiny questions, four digits. The child answers each one and puts the digits together.
Coded message: "How many days in a week? How many wheels on a bicycle? How many sides on a triangle? How many fingers on one hand?"
Answer: 7235
Because every answer is one digit, a 6-year-old can do it with help, and the final number opens a four-digit numeric lock. Hang each question on a different wall to make it a mini scavenger hunt.
Ages 8 to 10: The First Real Ciphers
At this stage kids enjoy discovering how a code works. They can follow a chart on their own, make a mistake, notice it and fix it. This is the sweet spot for codes for kids to crack with a real sense of achievement.
6. A1Z26 (Letters to Numbers)
A = 1, B = 2, C = 3, and so on up to Z = 26. Print the alphabet with numbers underneath so the child can look up each one.
Coded message: 13 15 15 14
Answer: MOON
The code is easy to learn and works anywhere numbers feel natural: a scoreboard, a price list, a row of house numbers on a map. It pairs well with a password lock.
7. The Phone Keypad Code
On an old phone keypad, each number carries letters: 2 is ABC, 3 is DEF, 4 is GHI, 5 is JKL, 6 is MNO, 7 is PQRS, 8 is TUV, 9 is WXYZ. Pressing a key once gives its first letter, twice gives the second, three times the third.
Coded message: 44 33 555 7
Answer: HELP
Read it as: 44 is H (second letter on the 4 key), 33 is E, 555 is L, and 7 is P. Children who have never used a keypad phone find this a delightful bit of history, and the printed keypad doubles as the key.
8. Caesar Shift of 3
Each letter moves three places forward in the alphabet: A becomes D, B becomes E, and so on. To decode, the child moves each letter three places back.
Coded message: SLUDWH
Answer: PIRATE
Check it with the child: S goes back to P, L to I, U to R, D to A, W to T, H to E. A paper wheel with two rings of letters makes this tactile. Start with a shift of 1 or 2 if a child is nervous, then raise it once they are confident.
9. The Hidden Word Poem (Acrostic)
The first letter of each line spells the answer. Nothing to decode with a chart, only careful reading.
Coded message:
Kittens nap in sunny spots
Every morning starts slowly
Yellow tulips lean in the breeze
Soft rain tapped the roof
Answer: KEYS
Print the poem on a card with each line on its own row. Children love realizing the poem was the code all along.
10. The 3×3 Pattern Clue
A pattern lock uses a 3×3 grid. Number the dots 1 to 9, left to right, top to bottom, then describe the shape.
Coded message: "Draw the first letter of the word LOCK. Start at the top left, go straight down to the bottom left, then straight across to the bottom right."
Answer: dots 1, 4, 7, 8, 9 in that order
The child traces the letter L on the grid. Because the clue tells them where to start and the path, there is exactly one answer.
11. The Treasure Map Arrows
Direction locks work with arrows. Hide the arrows in a short story, so children have to translate the story into moves. Keep the sequence to eight steps or fewer.
Coded message: "The knight climbed two floors of the tower. Then he crossed the bridge to the east. He went down into the well, and finally walked east again to the garden."
Answer: up, up, right, down, right
The story gives the child a way to remember the path, and you can draw the little tower, bridge, well and garden to make it feel like a map.
12. The Mini Melody
A musical lock uses piano notes on one octave, C to B, with no sharps or flats. A song everyone knows makes a perfect clue.
Coded message: "Play the first line of Twinkle, Twinkle, Little Star."
Answer: C, C, G, G, A, A, G
That is seven notes, below the eight-note maximum. Sing the song to the child once, or hum it, and let them find each note on a printed keyboard.
Try it yourself
14 lock types, multimedia content, one-click sharing.
Enter the correct 4-digit code on the keypad.
Hint: the simplest sequence
0/14 locks solved
Try it now →Ages 11 to 13: Real Cryptography
Pre-teens love a code that feels grown-up. They can handle multi-step ciphers, compare answers with a friend, and enjoy the cleverness of the design. For a deeper catalog of historical examples, see 15 famous codes and ciphers for escape games, solved and explained.
13. Atbash (The Mirror Alphabet)
The alphabet is flipped: A becomes Z, B becomes Y, C becomes X, all the way to Z becoming A. Write the two alphabets one above the other as the key.
Coded message: TLOW
Answer: GOLD
Decoding: T is the mirror of G, L of O, O of L, W of D. Because the code is symmetrical, the same chart encodes and decodes, which makes it easy to build your own.
14. Caesar With Wrap-Around
Shift each letter five places forward. When you run past Z, you wrap back to A. That is where many children make their first mistake, which is exactly why it is a good puzzle.
Coded message: EJGWF
Answer: ZEBRA
To decode, move each letter five places back: E goes back to Z (wrapping past A), J to E, G to B, W to R, F to A. A paper wheel removes the wrap-around struggle if you want to lower the difficulty.
15. Morse Code
Dots and dashes, written out, flashed with a flashlight, or played as short and long beeps. Give the table to the child.
Coded message: -.. --- --- .-.
Answer: DOOR
The letters are D (dash dot dot), O (three dashes), O again, and R (dot dash dot). A flashlight version, with short and long flashes in a dark room, is very dramatic. For more ideas, try the Morse code treasure hunt.
16. Pigpen (Described in Words)
Pigpen puts letters into shapes taken from two tic-tac-toe grids. In the first grid, the letters A to I sit in the nine cells, and each letter is drawn as the walls around its cell. The key for A to I:
- A: a corner with one line going up and one going left
- B: a "U" shape, open at the top
- C: a corner with one line going up and one going right
- D: a box open on the left
- E: a complete square
- F: a box open on the right
- G: a corner with one line going down and one going left
- H: an upside-down "U" shape, open at the bottom
- I: a corner with one line going down and one going right
Coded message: corner up-right, corner up-left, corner down-left, full square
Answer: CAGE
Print the real symbols for your players, since the shapes are much easier to read than to describe. Pigpen is visually striking, which makes it a favorite for treasure maps.
17. Every Other Letter
Hide the real message between filler letters. The child reads only the letters in odd positions: first, third, fifth, and so on.
Coded message: SQEZCXRBEMTK
Answer: SECRET
The letters in positions 1, 3, 5, 7, 9 and 11 spell the answer, and the filler letters Q, Z, X, B, M and K are ignored. Tell players the rule, or hide it in a clue for a harder version.
18. The Polybius Square
A 5×5 grid holds the alphabet, with I and J sharing a cell. Each letter becomes two numbers: the row, then the column.
| | 1 | 2 | 3 | 4 | 5 | |---|---|---|---|---|---| | 1 | A | B | C | D | E | | 2 | F | G | H | I/J | K | | 3 | L | M | N | O | P | | 4 | Q | R | S | T | U | | 5 | V | W | X | Y | Z |
Coded message: 43 11 21 15
Answer: SAFE
Row 4, column 3 is S. Row 1, column 1 is A. Row 2, column 1 is F. Row 1, column 5 is E.
19. Five-Bit Binary
Computers use only 0 and 1. In a five-bit version, each letter is its A1Z26 number written in binary. The key for the digits is 16, 8, 4, 2, 1: add the values where a 1 appears.
Coded message: 00010 01111 11000
Answer: BOX
Check each group: 00010 is 2 (B), 01111 is 8 + 4 + 2 + 1 = 15 (O), and 11000 is 16 + 8 = 24 (X). This one makes children feel like real programmers.
20. The Two-Step Code
Combine two simple ciphers. The sender first writes the word backwards, then shifts every letter one place forward.
Coded message: SFHJU
Answer: TIGER
Step one: shift every letter one place back, which gives REGIT. Step two: read it backwards, which gives TIGER. Always tell players how many steps there are, or reveal the first step as a hint.
A Secret Agent Mini Escape Room in 4 Locks
Here is a complete mission you can run at a birthday party or in class. It uses four virtual locks in a row (a chain), so the players unlock one, read the next clue, and move on. Everyone plays on their own phone or on a shared tablet, which keeps the pace natural.
Story: "Agent, the silver key has been hidden at Headquarters. Four locks protect the location. Crack them in order."
| Lock | Type | Clue | Answer | |---|---|---|---| | 1. Agent badge | Numeric (4 digits) | "Count the letters: SPY, CODE, MISSION, KEY." | 3473 | | 2. Secret password | Password | The message IDOFRQ, with the note "Each letter was pushed three places forward." | FALCON | | 3. Color sequence | Color | "Grass, ocean, sunshine." | green, blue, yellow | | 4. Final route | Directional (4 directions) | "Climb two flights of stairs, walk left through two doors, then take the slide down." | up, up, left, left, down |
Reading the answers: SPY has 3 letters, CODE 4, MISSION 7, KEY 3, giving 3473. IDOFRQ shifted three places back gives FALCON. Grass is green, the ocean is blue, sunshine is yellow. The final route is five steps, well under the eight-step limit.
The hidden message behind lock 4 can say where the silver key (or the party bag) is waiting. For a classroom, make the last message a curriculum fact the children have to read out loud. For a birthday, make it the location of the cake.
If you would rather not build everything by hand, a virtual lock takes a few minutes to set up: pick a lock type, type the code, add the hidden message and share the link. You can read more on how virtual locks work, or take ideas from our guide to virtual lock puzzles for secret code challenges.
Practical Tips for Running Code Games
Test once, not ten times. On CrackAndReveal's free plan, you get unlimited locks and 30 player attempts in total across all your locks, and your own test attempts count toward that budget. A four-lock chain tested once uses only four attempts, which leaves plenty for a small group. Wrong answers from kids also count, so for a big class, the one-time Event Pass (9 dollars, 30 days of unlimited attempts, no renewal) is worth considering. Taxes are included and there is a 14-day money-back guarantee.
Keep the key in reach. A code is only fun if the child can figure out how it works. Always include the decoder chart or a hint for the first one.
Match the cipher to the age, not the topic. If the story is about dragons, the cipher can still be a simple A1Z26. Difficulty comes from the cipher and the length, not from the setting.
Let kids create codes too. A child who writes their own cipher and sends it to a friend learns the system more deeply than any worksheet could teach. Our guide to digital secret messages shows how to turn their messages into locks.
Mind the clock. Ages 5 to 7 are done after about 20 minutes. Ages 8 to 10 can go for 30 to 45 minutes. Older kids can go an hour. Break longer events into rounds.
Check the answer before printing. Decode your own message once, letter by letter, before you hand it out. A single wrong letter ruins the moment.
FAQ
What is the easiest secret code for kids to start with?
The color dot code. Each color stands for a number, and the child simply matches dots to numbers. It needs no reading, and it works for a 5-year-old with an adult nearby. After that, try backwards words or missing vowels.
What secret codes work best for a kids' birthday party?
Use a mix: a color code for the youngest guests, A1Z26 or a phone keypad code for the middle group, and one Morse or Caesar clue for the older ones. A chain of four locks with the final clue pointing to the cake or the gift bags is simple to run. See also our birthday escape game for ages 5 to 7.
How do I make a Caesar cipher for children?
Pick a shift (3 is a good start), then replace each letter with the one three places later in the alphabet, wrapping from Z back to A. Write your message, encode it letter by letter, then decode it again to check. A cut-out paper wheel with two rings lets children do both directions.
Can kids play these code games on their phones?
Yes. With a virtual lock, the child opens a link on any phone, tablet or computer and types in the answer. Nothing to install. You pick the lock type, such as numeric, password, color sequence, directional, pattern or musical, to match the code you chose.
How many codes should I use in one session?
For ages 5 to 7, three to four codes. For ages 8 to 10, four to six. For ages 11 to 13, five to eight, ideally with a story that links them. Stop while the children still want more.
How do I make code activities educational without it feeling like homework?
Let the skill hide inside the puzzle. A Caesar shift is modular arithmetic, A1Z26 is a mapping between letters and numbers, binary is how computers store text, and acrostics practice careful reading. The child just thinks they are decoding a spy message.
Is there a code a child can crack alone?
Yes. A1Z26, a phone keypad code and Atbash are all good solo codes as long as the key is on the table. Keep the first message short so the first success comes quickly.
Conclusion
Secret code activities are one of the few kids' games where the learning and the fun are the same thing. Start with an easy win for the child's age, give them the key, and raise the difficulty one small step at a time. The 20 codes above, from color dots to two-step ciphers, cover ages 5 to 13, and every answer is already checked for you.
For a bigger event, link four locks into the secret agent mission, test it once, and let the children do the rest. For more ideas to extend the game, take a look at our ultimate guide to escape room codes and combinations and our treasure hunt ideas for kids by age.
Ready to create your first lock?
Create interactive virtual locks for free and share them with the world.
Get started for free