Three pages of free printable write the code worksheets using colors and numbers — suited for preschool and kindergarten children building early logic skills and number recognition. Each page shows a color-number key that children follow to write the correct number for each color.
Works with pencils, crayons, or washable markers.
What's Included
Each of the three worksheets includes:
- A color-number key with four color-number pairs displayed at the top
- Five problems, each showing four colors
- Large writing spaces designed for early number writing
- A clean layout that supports focused, independent work
The three pages use different number and color combinations so children get varied practice across all three sheets.
Page Previews

Downloads — Page 1

Downloads — Page 2

Downloads — Page 3
How to Use These Worksheets
- Review the color-number key together before starting.
- Ask your child to name each color aloud.
- Have them write the correct number for each color.
- Encourage slow, careful writing and checking the key as needed.
- Review the completed problems together and talk about the rule used.
Start with page 1 and move through in order, or let children choose any page — each one works independently.
Skills These Worksheets Support
- Logical thinking — applying a color-number rule consistently across problems
- Number recognition — identifying and writing numbers from a key
- Early writing skills — forming numbers in large, guided spaces
- Attention and focus — checking the key carefully before writing each answer
- Fine motor coordination — controlled pencil movement for early writers
More Logic Activities
Looking for more write the code activities? Try Write the Code: Colors to Letters or Write the Code: Colors to Shapes. Browse all Logic Activities.









