Create and decode messages using a Playfair cipher grid with a keyword, pairing letters and applying rules to reveal secret phrases safely.


Step-by-step guide to decode a Playfair cipher
Step 1
Gather your materials.
Step 2
Pick a short secret keyword and write it at the top of your paper.
Step 3
Use your ruler and pencil to draw a 5 by 5 square grid.
Step 4
Write the letters of your keyword into the grid from left to right top to bottom skipping any letter that already appeared.
Step 5
Fill the remaining empty boxes with the rest of the alphabet from A to Z skipping J and any letters already used until the grid is full.
Step 6
On a new line write a short secret message using only letters (no spaces or punctuation).
Step 7
Change any J in your message into I.
Step 8
Break the message into letter pairs (digraphs); if a pair has the same letter put an X between them and continue pairing; if one letter is left at the end add an X to make a final pair.
Step 9
Encode each pair using the Playfair rules: if both letters are in the same row replace each with the letter to its right (wrap to the left edge if needed); if both are in the same column replace each with the letter below it (wrap to the top if needed); otherwise replace each letter with the letter in the same row but in the column of the other letter (swap columns to form a rectangle).
Step 10
Ask a friend to encode a message using your completed grid so you can practice decoding.
Step 11
Decode a message from your friend by reversing the Playfair rules: move left for same-row pairs; move up for same-column pairs; and swap columns for rectangle pairs.
Step 12
Decorate your grid and secret notes with colouring materials to make your spy code look amazing.
Step 13
Share your finished creation on DIY.org.
Final steps
You're almost there! Complete all the steps, bring your creation to life, post it, and conquer the challenge!

Help!?
What can I use if I don't have a ruler, pencil, or colouring materials listed in the instructions?
If you don't have a ruler or pencil, use the straight edge of a book and a pen, and substitute colouring materials with crayons, markers, or coloured paper scraps to decorate your 5x5 grid and secret notes.
I'm getting confused when pairings don't seem to match the decoding rules—what common mistakes should I check?
Check that you converted any J to I (step about changing J), that you inserted an X between identical letters when making digraphs (step about breaking the message into letter pairs), and that you applied row/column wrap rules correctly when decoding same-row or same-column pairs.
How can I adapt the activity for different age groups?
For younger kids, have an adult pre-draw the 5x5 grid on paper and help form digraphs and insert X, while older kids can make it harder by using longer secret messages or expanding to a 6x6 grid that includes J and digits.
How can we extend or personalise the Playfair cipher activity after we've decoded a few messages?
Personalise by decorating the grid with colours and stickers, use coloured pencils to mark rows and columns for faster decoding, create themed keywords for different missions, or ask friends to encode messages to post your creations on DIY.org.
Watch videos on how to decode a Playfair cipher
Facts about classical ciphers and basic cryptography
🕵️ British forces used the Playfair cipher during the Second Boer War and World War I because it was practical for manual use.
🧩 Playfair encrypts pairs of letters (digraphs), which hides single-letter frequency patterns and makes simple frequency attacks harder.
🗝️ The cipher uses a 5×5 grid and commonly combines I and J into one cell, so the alphabet fits into 25 squares.
🔐 The Playfair cipher was invented by Charles Wheatstone in 1854 but later named after Lord Playfair who popularized it.
💻 Though easy to learn and use by hand, modern computers can crack Playfair quickly — it’s perfect for teaching code-thinking, not real-world security.


Only $6.99 after trial. No credit card required