HomeBlogSecret Codes for Treasure Hunts: 8 Kid-Friendly Ciphers Explained
Secret Codes for Treasure Hunts: 8 Kid-Friendly Ciphers Explained
Clues & Riddles

Secret Codes for Treasure Hunts: 8 Kid-Friendly Ciphers Explained

Quick answer Learn 8 secret codes for treasure hunts, from Caesar cipher to invisible ink. Step-by-step guide for kids aged 4–12, with worked examples and age recommend
Key takeaways

  • Secret codes turn an ordinary treasure hunt into a puzzle game—kids decode, solve, and feel like spies or detectives
  • Caesar cipher (letter shift) and simple number-to-letter substitution are the easiest for ages 6–10; invisible ink and invisible ink and UV pens add theatrical fun (ages 5+)
  • Mirror writing, Morse code, and pig pen cipher work for ages 9+, but always provide a decoder key so kids can crack it without adult help
  • Codes work best as a mid-hunt twist: give kids a coded clue that points them to the next location, OR code the final prize location itself
  • Test every code on your target age group first—too easy and it’s boring, too hard and they give up, but the sweet spot makes them feel clever

Why Secret Codes Turn a Hunt Into an Adventure

After watching Oscar and Lily solve their first coded treasure hunt clue—both of them bent over a scrap of paper, pencils poised, whispering like they’d cracked the meaning of life—I realised something: kids don’t just want clues. They want to feel like spies.

Secret codes do that. A simple shift cipher turns “LOOK UNDER THE TREE” into a puzzle that makes a 7-year-old feel brilliant when they crack it. And the beauty is: you don’t need anything fancy. A pencil, some paper, and a basic code system are all it takes.

This guide covers the codes that actually work for treasure hunts, from the easiest (invisible ink, mirror writing) to the medium-difficulty ones (Caesar cipher, Morse code) to the trickier options (pig pen, binary). Each includes a ready-to-use template, age recommendations, and the decoder key your kids need.

Hannah’s tested tip The first time I used a coded clue, I didn’t provide a decoder key. Lily got frustrated after five minutes and wanted to quit. I wrote the key out, she decoded it herself, and suddenly she was unstoppable. Always give them the tools to succeed—the joy is in cracking it, not in guessing.
A child decoding a secret message on a treasure hunt
Always hide the cipher key somewhere they can find it.

Caesar Cipher (Ages 6–11)

The Caesar cipher is the simplest letter-shift code. You shift each letter by a fixed number (usually 3). So A becomes D, B becomes E, and so on. Kids love this because it feels “real” like a spy code.

How It Works

Pick a shift number. Shift 3 is most common. Here’s the alphabet shifted by 3:

  • Normal: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
  • Shifted +3: D E F G H I J K L M N O P Q R S T U V W X Y Z A B C

So “LOOK UNDER THE TREE” becomes “ORRN XQGHU WKH WUHH”

Decoder Key for Shift +3

Print this for your kids (or write it on a card they have to keep safe):

Plain:    A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Cipher:   D E F G H I J K L M N O P Q R S T U V W X Y Z A B C

To decode: Match the cipher letter to the plain letter below it.

Example Coded Clue

“ORRN XQGHU WKH ZDVKLQJ OLQH” = “LOOK UNDER THE WASHING LINE”

Best for: Ages 7–9. Younger kids (6) can do it with help. Older kids (10+) find it too easy but enjoy the speed of cracking it.

Hannah’s tested tip Oscar solved a Caesar cipher in about 90 seconds once he understood the pattern. I switched to Shift +5 for the next hunt to keep him engaged. Small tweaks keep it challenging without being frustrating.

Number-to-Letter Substitution (Ages 7–11)

Each letter gets a number (A=1, B=2, C=3, etc.). Kids decode by matching numbers to letters on the key. It feels different from a letter shift, which keeps things fresh even if it’s mechanically similar.

How It Works

  • A=1, B=2, C=3, D=4, E=5, F=6, G=7, H=8, I=9, J=10, K=11, L=12, M=13, N=14, O=15, P=16, Q=17, R=18, S=19, T=20, U=21, V=22, W=23, X=24, Y=25, Z=26

“LOOK” = 12-15-15-11

Example Coded Clue

12-15-15-11 21-14-4-5-18 20-8-5 19-8-5-4 = “LOOK UNDER THE SHED”

Decoder Key

Just provide the alphabet with numbers above each letter:

1=A, 2=B, 3=C, 4=D, 5=E, 6=F, 7=G, 8=H, 9=I, 10=J, 11=K, 12=L, 13=M,
14=N, 15=O, 16=P, 17=Q, 18=R, 19=S, 20=T, 21=U, 22=V, 23=W, 24=X, 25=Y, 26=Z

Best for: Ages 7–10. It’s slightly trickier than Caesar cipher because kids have to match numbers, not just shift letters.

Invisible Ink (Ages 5–11)

Invisible ink is pure magic for kids. Write your clue in lemon juice, milk, or baking soda solution, then reveal it with heat. No decoder key needed—just the “reveal moment.”

Methods

Lemon juice or milk: Write your clue with a paintbrush or cotton bud dipped in lemon juice or milk. Let it dry completely. Hold the paper near (not touching) a lamp bulb or pass it over a radiator. The writing turns brown.

Baking soda solution: Mix 1 teaspoon baking soda with a little water. Write your clue. Once dry, brush over the paper with grape juice concentrate diluted in water. The writing appears purple.

UV pen (easiest): Write with a UV pen and give kids a UV torch to reveal the clue. No heat required, less fire risk.

Example Clue

Write (invisibly): “Your next clue is under the plant pot by the door.” Kids use heat or UV light to reveal.

Best for: Ages 5–11. Very young kids (4–5) need adult supervision to handle heat. UV pens are safest.

Hannah’s tested tip I once used lemon juice and Lily held the paper too close to the light bulb and singed it slightly. She thought it was the most exciting thing ever (“It’s burning the secret!”), but after that I switched to UV pens. Same magic, less drama.

Mirror Writing (Ages 6–11)

Write your clue backwards (as it would appear in a mirror). Kids hold it up to a mirror to read it, or use a piece of reflective material. Low-tech, memorable, and feels clever.

How to Do It

Write left-to-right, but reverse the letters:

  • Normal: “LOOK UNDER THE SHED”
  • Mirrored: “DEHS EHT REDNU KOOL”

Kids hold it to a mirror (or shiny phone screen) and read it backwards.

Example Clue

Write on a card: “GNIREWOLF EHT HTIW TNEVIROCS EHT NI”

In the mirror, it reads: “IN THE CONCEITS WITH THE FLOWERING”

Best for: Ages 6–10. It’s simple enough for younger kids but fun for older ones too.

Morse Code (Ages 8–11)

Morse code uses dots and dashes to represent letters. It feels very “spy” and works well as a printed clue card or even written on a whiteboard.

Basic Morse Code Alphabet

A: ·—    B: —···   C: —·—·   D: —··    E: ·     F: ··—·   G: ——·    H: ····
I: ··    J: ·———   K: —·—    L: ·—··   M: ——    N: —·     O: ———    P: ·——·
Q: ——·—  R: ·—·    S: ···    T: —     U: ··—    V: ···—   W: ·——    X: —··—
Y: —·——  Z: ——··

Example Clue

“LOOK UNDER THE TREE” in Morse:

·—·· ——— ——— — / ··— —· —·· ·· ·— / ·— ···· · / ·— ·— ··

Best for: Ages 9–11. Requires more patience and pattern-matching than younger kids usually enjoy.

Hannah’s tested tip Oscar spent 20 minutes decoding a Morse code clue and felt like he’d cracked the Enigma machine. Sometimes the effort is half the fun. Just make sure the decoded message is worth the work.

Pig Pen Cipher (Ages 8–11)

Also called Freemason’s cipher, this uses symbols based on two grids. Each letter is replaced with the shape of the grid section it occupies. Kids think it’s brilliant.

The Grids

Grid 1:        Grid 2:
1 2 3          1 2 3
———          /———| 1| 2| 3|     /1|2|3———          /———| 4| 5| 6|     |5|6/
———          ———/
| 7| 8| 9|     |8|9/
———          ———/

A=┐  B=┌  C=┐  (from grid 1)  J=•  K=••  etc. (grid 2 with dots)

For example:

  • L = ├
  • O = ┤
  • O = ┤
  • K = •—

Best for: Ages 9–11. It’s visually interesting and feels “real.”

Binary Code (Ages 10+)

Binary uses 1s and 0s (1 = on/off, 0 = off). Each letter has an 8-digit binary code. It’s trickier but feels very “hacker.”

Basic Binary

A = 01000001   B = 01000010   C = 01000011   D = 01000100   E = 01000101
L = 01001100   O = 01001111   O = 01001111   K = 01001011

“LOOK” = 01001100 01001111 01001111 01001011

Best for: Ages 11+ or kids who are into tech and maths.

How to Use Codes in Your Treasure Hunt

Mid-Hunt Twist

Give kids a coded clue that points them to the next location. Example: “This is your third clue, and it’s coded. Use your decoder key to crack it. Then go to that location.”

Layered Hunt

Start with simple clues (1–3), then introduce a code at clue 4. Kids have already warmed up mentally.

Final Location

Code the location of the treasure itself. Kids decode, then rush to find it. The final victory moment is a rush.

Decoder Key as Part of the Hunt

Hide the decoder key as one of the “prizes” along the way. Kids find it mid-hunt, then use it to crack the next coded clue. Adds an extra step.

Hannah’s tested tip I once hid three different decoder keys in three locations, and kids had to use each one for a different coded clue. It was chaos, but brilliant chaos. Everyone felt like a spy agency working together.

Common mistakes (and easy fixes)

  • Code too difficult for the age: A 6-year-old won’t decode binary in an hour. Match complexity to maturity.
  • No decoder key provided: Kids give up if they can’t solve it. Always give them the tools.
  • Decoded message is vague: “FIND THE TREASURE” coded up is still vague. “LOOK UNDER THE SHED” is clear once decoded.
  • Too many codes in one hunt: Five coded clues in a row bores kids. Use codes as a special twist, not the whole hunt.
  • Forgetting handwriting clarity: If your handwriting is messy, a coded message becomes impossible. Write clearly or type it.

Frequently asked questions

What’s the easiest secret code for young kids (4–5)?
Invisible ink or UV pen. No decoding needed—the reveal itself is magical. Mirror writing works too if they have access to a mirror. Save letter-based codes (Caesar, substitution) for ages 6–7+.
What’s the best code for ages 6–8?
Caesar cipher (shift 3) or number substitution. They’re simple enough to crack in a few minutes but feel genuinely clever. Always provide a decoder key printed out or written on a card kids can keep and use.
Can codes work in outdoor treasure hunts?
Yes, but avoid codes that need heat (invisible ink outdoors is tricky). Caesar cipher, number codes, mirror writing, and Morse code all work outdoors. Provide the decoder key on a waterproof card or laminated sheet.
How do I write an invisible ink clue without it getting damaged?
Handle it carefully—once the heat reveal happens, the paper is brittle. Or use a UV pen instead, which doesn’t require heat and won’t damage the clue. If you do use lemon juice, let kids practice the heat-reveal on a test paper first.
What if kids decode the clue but then don’t understand what to do next?
Make sure the decoded message is crystal clear: not “THE PLACE WITH WATER” but “LOOK UNDER THE BIRD BATH.” The code is the puzzle; the destination should be obvious once solved.
Can I mix codes in one hunt (Caesar cipher + Morse code)?
Yes, but keep it to 2 different codes maximum. More than that gets confusing. Give kids different decoder keys clearly marked (“Clue 3: Use the Caesar Shift-3 key”; “Clue 6: Use the Morse code key”).

Related guides you might find useful

How to Write Treasure Hunt Clues · Treasure Hunt Clues for Kids · Best Treasure Hunt Hiding Spots

The Magic of Codes

There’s something about a coded message that transforms a treasure hunt. Suddenly it’s not just “go find the thing”—it’s “crack the code, then find the thing.” Kids feel like detectives, spies, codebreakers. And when they decode their first clue successfully, that moment of “I did it!” is genuinely brilliant.

Start simple. Master the Caesar cipher. Once your kids get the idea, add complexity. And remember: the best code is one they can crack. Too easy and it’s boring; too hard and they quit. The sweet spot is when they’re thinking hard but not frustrated.

Written and play-tested by Hannah—a Yorkshire mum of two and former primary-school teaching assistant. Last reviewed June 2026.

Hannah
About the author

Hannah is the mum behind Riddlelicious — a former primary-school teaching assistant who tests every printable hunt on her own two before it reaches the shop.

Keep reading

27 hunts · ages 4 to grown-up

Find the perfect treasure hunt

Print-at-home adventures by age, theme & occasion — pay, print and play in minutes.

⚡ Instant PDF download🔒 Secure checkout🫖 Mum-tested in Yorkshire💬 Hannah answers personally