Encrypt with a substitution cipher
Create and use a simple substitution cipher by mapping letters to symbols or other letters, then encrypt and decode secret messages to learn basic cryptography.

About this activity
Create and use a simple substitution cipher by mapping letters to symbols or other letters, then encrypt and decode secret messages to learn basic cryptography.
What you need
Step by step
- 1
Step 1
Gather your materials and find a flat place to work so your cipher will be neat and easy to read.
- 2
Step 2
Write the 26 letters A to Z in a straight line across the top of your paper using your pencil.
- 3
Step 3
Draw a second line under the first and prepare to write the secret codes that will match each letter.
- 4
Step 4
Choose a different symbol or different letter for each A to Z and write that symbol directly under its matching letter without repeating any code.
- 5
Step 5
Title your two lines "Cipher Key" and decorate the area so you can find your key quickly.
- 6
Step 6
Practice encoding by writing your name in plain letters and then writing its coded version below using your key.
- 7
Step 7
Write a short secret message of one or two sentences in plain English on a new line.
- 8
Step 8
Encrypt your secret message by replacing each plain letter with the matching symbol or letter from your cipher key and keep spaces and punctuation the same.
- 9
Step 9
Make a second short message and encrypt it to give to a friend or family member to decode.
- 10
Step 10
Give your friend only the encrypted message and one small hint (for example tell them which symbol is very common) so they can try to decode it.
- 11
Step 11
Count how many times each coded symbol appears in the message to help guess common letters like E and use those guesses to decode further.
- 12
Step 12
Show your cipher key so you and your friend can check the decoded message and celebrate your successful code-cracking.
- 13
Step 13
Share your finished creation on DIY.org
Fun facts
How do you create and use a simple substitution cipher with a child?
Start by making a cipher key: write the alphabet and map each letter to a symbol, another letter, or an emoji. Show your child how to encode a short message by replacing each letter with its mapped symbol. Swap keys and decode each other’s messages, starting with simple words and adding clues. Gradually introduce rules like preserving spaces and punctuation. Keep sessions short and playful, using secret notes or a treasure-hunt format to practice.
What materials do I need for a substitution cipher activity?
You only need basic supplies: paper and pencils or pens, markers for drawing symbols, and a printed or hand-drawn alphabet chart for the cipher key. Optional extras include stickers or emoji sheets, printable cipher templates, a ruler to make grids, and a clipboard for writing. A tablet or phone can run simple cipher apps, but hands-on materials help younger kids learn letter-symbol mapping and improve handwriting and focus.
What ages is a substitution cipher activity suitable for?
This activity is flexible: ages 5–7 can try very simple symbol swaps with adult help, focusing on a few letters at a time. Ages 8–12 can independently create full alphabet substitution ciphers and decode short messages. Teens can explore more advanced techniques like Caesar shifts, frequency analysis, or creating multi-step ciphers. Always adapt complexity to reading level and attention span, and provide adult guidance for younger children.
What are the benefits and fun variations of doing substitution ciphers with kids?
Substitution ciphers build pattern recognition, spelling, vocabulary, logic, and perseverance. They encourage creativity when designing symbol sets and improve fine motor skills while writing. Try variations like Caesar shifts, pigpen cipher, emoji substitutions, timed decoding challenges, or integrating ciphers into scavenger hunts. For safety, remind kids not to encode or share personal or sensitive information, and supervise online tools. Make it social by exchanging encoded notes or creating
Watch & Learn
Need help?
What can we use if we don't have pencil or paper to write the A–Z and the second line for the Cipher Key?
If you don't have pencil and paper, use a marker on a whiteboard, crayon on cardboard, or chalk on the sidewalk and still write A–Z across the top with a second line beneath to make your Cipher Key.
My coded symbols look messy or I accidentally reused a symbol—how do I fix that before encrypting my name or messages?
If symbols get messy or a code repeats, redraw the two straight lines with a ruler, number each letter-column, and carefully check the 'choose a different symbol' step to replace duplicates before encoding your name or messages.
How can I adapt the activity for younger children or make it more challenging for older kids?
For younger kids, limit the alphabet to about 10 letters and use stickers or pictures as codes while they practice encoding their name, and for older kids require all 26 distinct symbols or numbers and have them use frequency counting from 'Count how many times each coded symbol appears' to help decode messages.
What are some fun ways to extend or personalize the substitution cipher activity after making the Cipher Key?
Turn your decorated 'Cipher Key' into a reusable decoder wheel by attaching two paper circles with a split-pin, create themed symbol sets like animals or emojis, or build a puzzle hunt where friends must decode multiple encrypted clues you give them.