Welcome to Activity Sprout — Explore Free Learning Resources for Kids!

20 Code Breaking Puzzles for Kids — Farm Animals (Ages 4–10) — Free PDF Printables

Resource Information

Resource typeCode Breaking — printable PDF pack
Number of puzzles20 original farm code-breaking puzzles
Ages4–10 years
LevelsEasy 10 (ages 4–6) · Medium 6 (ages 6–8) · Hard 4 (ages 8–10)
ThemeFarm Animals — cows, pigs, hens, sheep, ducks, goats, the barn, the tractor and the harvest
Skills practisedLogical Reasoning, Pattern Recognition, Vocabulary
FormatFree PDF — A4 and US Letter, colour and black & white, 25 pages (cover + 20 puzzle pages + 4 answer-key pages)
Answer keyIncluded — every puzzle has its decoded message and an explanation of how the code works on the last pages of the PDF
CostFree — no account needed

These code breaking for kids puzzles turn your child into a farm detective: a cow, a pig and a hen have left secret messages all over the farmyard, and only your child can crack them. This free pack has 20 brand-new farm code-breaking puzzles for ages 4–10 — ten easy puzzles with picture codes and A=1 number codes for little ones, six medium puzzles with Caesar shifts and substitution codes, and four hard puzzles with a full substitution cipher, a Mastermind code, a backwards alphabet and a two-step code. Every puzzle gives the key or clue on the page, shows the secret code big and clear, and has a write-in answer line, so children practise letters, numbers and logical thinking while they play spy. Print the whole pack for a rainy afternoon, a classroom farm topic, or a car journey — no account or sign-up needed.


Cheerful farmyard illustration of a smiling cow, pig, sheep, hen and duck with a child detective holding a magnifying glass over a blank secret message scroll beside a red barn

What's Inside — All 20 Puzzles

Every puzzle is listed below, with the code type your child will crack, so you can count them before you print. The decoded message for each puzzle is in the answer key at the back of the PDF — cover the key up if your child wants to solve first!

#PuzzleAgesLevelCode type
1The Cow Word4-5EasyPicture code
2The Pig Word4-5EasyPicture code
3The Hen Code5-6EasyA=1 number code
4The Duck Code5-6EasyColour code
5The Sheep Code5-6EasyA=1 number code
6The Goat Word4-5EasyPicture code
7The Barn Word5-6EasyPicture code
8The Milk Code5-6EasyA=1 number code
9The Egg Word4-5EasyPicture code
10The Farm Code5-6EasyA=1 number code
11The Cow Says Moo6-8MediumCaesar shift 3
12I Feed the Pigs6-8MediumA=1 number code
13The Donkey's Secret Word6-8MediumSubstitution code (key given)
14The Tractor Code6-8MediumA=1 number code
15The Cow Gives Milk6-8MediumCaesar shift 3
16The Turkey Code6-8MediumPicture + number code
17Feed the Farm Animals8-10HardSubstitution cipher (1 free letter)
18Crack the Barn Code8-10HardMastermind code
19The Horses Code8-10HardBackwards alphabet (Atbash)
20The Harvest Code8-10Hard2-step code

How to Choose the Right Level


Friendly cow and pig in a sunny farmyard with hay bales, looking at big colourful shapes (a yellow star, a blue circle and a red triangle) above a blank sheet of paper



  • Ages 4–5 — Easy: Picture codes, where each shape stands for one letter — a diamond, a square and a heart spell COW, a star, a cross and a circle spell PIG. Short farm words, the key printed on the page, and no reading of sentences needed.
  • Ages 5–6 — Easy: A=1 number codes, where A is 1, B is 2, and so on — 8-5-14 spells HEN, 13-9-12-11 spells MILK — plus one colour code, where each colour stands for a letter and spells DUCK. Children practise the alphabet and numbers up to 26.
  • Ages 6–8 — Medium: Caesar shift 3, where every letter has moved three places forward (WKH FRZ VDBV PRR), a full A=1 sentence to decode, a substitution code with the key given (MJKBPQ spells DONKEY), and a picture-plus-number code that cracks TURKEY in two parts. Short sentences and farm words children already know.
  • Ages 8–10 — Hard: A full substitution cipher with only one free letter (F = T) and a word that appears twice to find, a Mastermind code where three clues pin down one secret four-symbol code, a backwards alphabet (A is Z, B is Y) that reads HORSES RUN, and a two-step code where numbers become letters and then must be read backwards to find HARVEST. Real detective work, with the answer key explaining every step.

Not sure where to start? Begin with the Easy puzzles and move up when your child can crack three picture codes in a row without help. For more puzzles by age, see our resources by age page.

How to Use These Puzzles

Clever hen wearing glasses and a goat detective with a magnifying glass examining a sealed secret letter in a wooden box, with a red tractor and sunflowers behind them



  1. Read the instruction first. Every page explains the code in one sentence, such as "Each number stands for a letter — A is 1, B is 2, and so on." Read it together before looking at the secret code.
  2. Use the key on the page. Picture, colour and number codes all print their key in a yellow box. Show your child how to match one symbol at a time — first shape, first letter, then the next.
  3. Write the letters as you go. Each page has a "My decoded message" line. Writing each decoded letter under its symbol stops children losing their place, especially in the longer Medium sentences.
  4. Give a nudge, not the answer. If your child is stuck on a Caesar shift, decode the first letter together (W is T, because the alphabet moved three places) and let them finish the word. On the Hard substitution cipher, point at the word that appears twice and ask what three-letter word it could be.
  5. Check the key — and read how it works. The answer key explains every code, so you can show your child how the message was hidden, not just what it says. That is the part children remember and reuse on the next puzzle.

For teachers and homeschoolers: use one puzzle a day as a morning warm-up, or run the whole pack as a farm-topic spy mission — one point for each decoded message, and a second point for explaining how the code worked. For travel and rainy days: print just the Easy pages for younger children, or the whole pack for mixed-age siblings — everyone can play detective at their own level.

The Puzzles

The full set of 20 puzzles is in the free PDF — one puzzle per page, with the secret code big and clear, the key or clue in a yellow box, and a write-in answer line on every page.

Easy — First Farm Codes (Ages 4–6)

Puzzles 1–10: The Cow Word, The Pig Word, The Hen Code, The Duck Code, The Sheep Code, The Goat Word, The Barn Word, The Milk Code, The Egg Word, The Farm Code.

Medium — Crack the Farm Code (Ages 6–8)

Puzzles 11–16: The Cow Says Moo, I Feed the Pigs, The Donkey's Secret Word, The Tractor Code, The Cow Gives Milk, The Turkey Code.

Hard — Secret Agent Farm Codes (Ages 8–10)

Duck and horse dressed as little secret agents with spyglasses studying a big blank coded map of a farm with a barn and a windmill at sunset


Puzzles 17–20: Feed the Farm Animals, Crack the Barn Code, The Horses Code, The Harvest Code.

Answer Keys

All 20 answers are on the last four pages of the PDF, with an explanation of how each code works — the picture and colour keys, the A=1 numbers, the Caesar shift, the substitution key, the free letter that unlocks the Hard cipher, the Mastermind clues, the backwards alphabet, and both steps of the two-step code. Every puzzle has exactly one decoded message.

Print Guide

  • Print on A4 or US Letter paper — the PDF fits both sizes.
  • Print in colour or black & white — the codes use shapes, numbers and letters, and the one colour code also names each colour in words in its key, so it still works in black & white.
  • Print the whole 25-page pack, or print just the pages your child needs — one puzzle per page makes that easy.
  • If a page looks cut off, check your printer is set to "Fit to page" and that the margins are set to normal.

Frequently Asked Questions

What age are these code breaking puzzles for?

They are written for ages 4–10. The ten Easy puzzles suit ages 4–6, the six Medium puzzles suit ages 6–8, and the four Hard puzzles suit ages 8–10. Mixed-age families can use the whole pack together — everyone cracks codes at their own level.

Is there an answer key?

Yes. Every puzzle has its decoded message on the last pages of the PDF, with an explanation of how the code works — so you can show your child how the message was hidden, not just what it says.

My child has never done a code before. Where should we start?

Start with puzzle 1, The Cow Word. It is a picture code with only three shapes, and the key is printed right on the page: diamond is C, square is O, heart is W. Once your child has cracked COW, the number codes in puzzles 3, 5, 8 and 10 follow the same idea with numbers instead of pictures.

How does the Caesar shift work?

Every letter has moved three places forward in the alphabet, so A became D, B became E, and so on. To read the message, move every letter three places back — W becomes T, K becomes H. The key on the page shows the shift, and the answer key works through the whole message.

Can I print these puzzles in black and white?

Yes. The codes are shapes, numbers and letters, so they print clearly in black and white and use very little ink. The one colour code (puzzle 4, The Duck Code) also names each colour in words in its key, so it still works without colour.

Can I use these puzzles in my classroom?

Yes. The pack is free to print for your own classroom, homeschool group or family. One puzzle a day works well as a morning warm-up, and the Hard puzzles make a good small-group challenge: let each group defend its decoded message before you reveal the key.

More Puzzles You May Like

20 farm animal code breaking puzzles for kids, ages 4–10, in Easy, Medium and Hard levels — free PDF printable, with the key or clue on every page, a write-in answer line, and a full answer key explaining how each code works. Every puzzle was script-verified: each coded message was computed from its answer and decoded back to exactly that answer, with no duplicate codes or answers, and the Mastermind puzzle was brute-forced over all 24 possible codes to confirm exactly one fits all three clues.

Comments