• Skip to main content
  • Skip to primary sidebar

What Do We Do All Day logo

  • Home
  • Books
  • Activities
  • Games
  • Parenting
menu icon
go to homepage
subscribe
search icon
Homepage link
  • Books
    • Picture Books
    • Chapter Books (ages 6-9)
    • Middle Grade (ages 8-13)
    • Graphic Novels
    • Audiobooks
    • Young Adult Books
    • Nonfiction
    • Classics
  • Games
  • Activities
    • Literacy
    • Math Activities for Kids
    • Science
    • Play Activities
  • Parenting
  • About
    • Facebook
    • Instagram
    • YouTube
  • ×
    You are here: Home / Play Activities / Pigpen Cipher: A Secret Algorithm That's Fun for Kids

     

    Pigpen Cipher: A Secret Algorithm That's Fun for Kids

    • Facebook

    Kids love secret codes! Who wouldn't want to be able to write messages to friends that no one else (especially those pesky grown-ups) will be able to read? The pigpen cipher is a fun switch from the typical number and letter substitution codes.  (like this one), rely on numbers as a substitution for letters, but the pigpen cipher substitutes symbols for letters of the alphabet.

    Two examples of pigpen code

    Table of contents

    • How is a Cipher Different than a Code?
    • History of Pigpen Cipher 
    • How Pigpen Cipher Works
    • How to Write in Pigpen Cipher
    • Pigpen Cipher Variations
    • More Fun for Budding Spies:

    How is a Cipher Different than a Code?

    If you think "cipher" and "code" are synonymous, you are not alone.

    "A code is a mapping from some meaningful unit [emphasis mine]—such as a word, sentence, or phrase— into something else—usually a shorter group of symbols." (Source)

    Codes can be numbers like writing 55 every time you mean "bread," but you can also think of codes as substitutions of one group of words for another. For example, "The blue horse has left the zoo," may be code for "I took the blueberries out of the fridge."

    A cipher on the other hand, is the system, or algorithm that is used for making substitutions. The cipher has no inherent meaning. The most common cipher kids start experimenting with is the Caesar cipher, in which one number stands in for one letter, like 1 for A, 2 for B, and so on.

    History of Pigpen Cipher 

    The  cipher is centuries old, and therefore there are several variations of the pigpen cipher. The exact origins are unknown, but starting in the 18th century, it was frequently used by the Freemasons, you might sometimes hear it referred to as the Freemasons cipher, or masonic cipher.

    How Pigpen Cipher Works

    Each letter of the alphabet is substituted with a simple geometric picture symbol. Symbols are created using grids and crosses so that each letter is represented by fragments of a grid or cross with or without a dot. The name "pigpen" refers to this grid pattern.

    Pigpen is easy to learn and fun to decipher so anyone can quickly flex their cryptography skills! Even kids who don't like writing will enjoy composing messages to friends and family, perhaps even sending grandma a coded postcard in the mail.

    Kids who love to engage in pretend play will get a kick out of practicing their spy and detective work using secret codes. Writing secret messages in the pigpen cipher is also a great spy party game! Be sure to check out all our spy activities for kids.

    How to Write in Pigpen Cipher

    Have your child draw the following decoder before attempting to write a coded message:

    Pigpen codebreaker alphabet with symbols

    The letters are distributed over two tic-tac-toe grids and two crosses. One grid and one cross also contain dots in each space.

    Now, practice writing letters individually. Each letter is surrounded by 2 or more lines of the grid and may include a dot.

    For example, "E" is written as a box, "N" is written as a box with a dot inside. "W" is written as a "V" with a dot at the inside low point.

    Here is an example of a message in the process of being decoded:

    Pigpen coded message partially decoded to "lets play a"

    Now kids are ready to write in secret code and be professional codebreakers!

    Can they decode this message?

    Pigpen code written on paper.

    How about this one?

    Message written in pigpen cipher.

    Be careful! A good spy never lets the cipher fall into the wrong hands!

    Pigpen Cipher Variations

    Creating pigpen cipher variations is a great cryptography challenge for kids. They can experiment with the placement of different letters in grid spaces, the order of the grids and crosses or the location of the dot.  

    More Fun for Budding Spies:

    Now that your children have mastered writing in code they will want to learn more about the history of cryptanalysis, spy work, as well as practice their new coding skills.

    • Spy books for kids: novels and how-to books for young detectives and secret agents with more examples of secret writing
    • Compute and Find: a secret code scavenger hunt with superheroes. My boys loved this after school activity which combines math with code breaking!
    Want Your Kids to Love Being Unplugged?
    Subscribe to our newsletter and as a thank you, receive 10 waiting games kids can play anytime anywhere.
    Your email will *never* be shared or sold to a 3rd party. Click here to view our privacy policy.
    « 18 Girl Detectives on the Case: Books Like Enola Holmes
    Transportation Coloring Pages »

    Reader Interactions

    Comments

    1. Lynn Campbell says

      December 21, 2021 at 6:40 am

      I do secret messages in this code and others for my treasure hunts with my grandchildren. The 13 and 14 yo are so, but the 10 yo loves them.

      Reply
      • Erica says

        December 22, 2021 at 8:37 am

        Sounds like fun!

        Reply
    2. Harper Kuo says

      November 13, 2023 at 4:45 pm

      Helped me so much for Science Olympiad!!!

      Reply
    3. Harper Kuo says

      November 13, 2023 at 4:46 pm

      Helped me finally understand how to do the pigpen code!

      Reply
    4. me says

      March 17, 2026 at 4:17 pm

      helped with homework

      Reply

    Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Primary Sidebar

    Hi, I'm Erica! I believe parents can stay sane without giving their kids an electronic device. Learn how!

    More about me →

    Newsletter

    Join over 19,000 subscribers who said "Yes! I want to unplug my kids!" We'll send you 10 waiting games your kids can play anytime, anywhere. Join here.

    Footer

    ↑ back to top

    About

    • Terms of Use/Privacy Policy
    • About the Site
    • No AI

    Newsletter

    • Sign Up! for emails and join over 19,000 other families finding ways reduce screen time.

    Other Stuff

    We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites. As an Amazon Associate I earn from qualifying purchases

    Copyright © 2026 What Creative Media LLC

    Want Your Kids to Love Being Unplugged?
    Subscribe to our newsletter and as a thank you, receive 10 waiting games kids can play anytime anywhere.
    Your email will *never* be shared or sold to a 3rd party. Click here to view our privacy policy.
    Want More Free Activity Ideas?
    Join our email list and as a thank you gift I'll send you a list of 10 waiting games that will make your kids smarter.
    Your email will *never* be shared or sold to a 3rd party. Click here to view our privacy policy.
    Want your kids to love being unplugged?
    Join our newsletter and as a thank you, I'll send you a list of 10 waiting games.
    Your email will *never* be shared or sold to a 3rd party. Click here to view our privacy policy.