Pigpen Cipher
PigPen Decoder
PigPen Encoder
Answers to Questions (FAQ)
What is the PigPen cipher? (Definition)
The Pig Pen Cipher, also known as the Freemason Cipher (or masonic alphabet), is an encryption system that was historically used by some members of Freemasonry to protect their communications.
It is based on a special arrangement of letters in a grid (cross or grid like tic tac toe) in order to use 26 symbols to represent the letters of the alphabet by substitution.
How to encrypt using PigPen cipher?
To encode a message with the Pig Pen number, each letter of the masonic alphabet is associated with a unique symbol.
The symbols are designed with a 3x3 grid/grid, crosses and dots as a basis.
The Pigpen correspondence/lookup table is therefore:
| A | ![]() | B | ![]() | C | ![]() | D | ![]() | E | ![]() | F | ![]() | G | ![]() |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| H | ![]() | I | ![]() | J | ![]() | K | ![]() | L | ![]() | M | ![]() | N | ![]() |
| O | ![]() | P | ![]() | Q | ![]() | R | ![]() | S | ![]() | T | ![]() | U | ![]() |
| V | ![]() | W | ![]() | X | ![]() | Y | ![]() | Z | ![]() | ||||
| dCode.fr | |||||||||||||
Numbers have no associated symbols.
Multiple variants exist for the creation of the alphabet and each changes the association of symbols and letters (see below).
How to decrypt using PigPen cipher?
How to recognize PigPen ciphertext?
The ciphered message is made from symbols with right angles (corners) which sometime has a dot (50 of symbols have a dot).
The appearance of the glyphs is angular and the message can have a visual similarity to a maze with dots.
The message has a maximum of 26 distinct characters.
The presence of notions such as pigs, pens, gate or farm are clues.
The reference to Charles M. Schulz's comic book Peanuts reminds us that one of his characters is called Pigpen.
The generalization of the Freemasons to the Illuminati is a common drift.
The eye of providence (all seeing eye) is a symbol of the Freemasons.
What are the variants of the Freemason's PigPen cipher?
It exists multiple variants for associating symbols and letters, here are those identified by dCode:
| #0 | ABCDEFGHIJKLMNOPQRSTUVWXYZ (Original version, filling grids β,ββ’ then crosses β,ββ’) |
| #1 | ABCDEFGHIJKLMNOPQRSTVUWXZY (Variant modifying cross filling by rotation β²) |
| #2 | ABCDEFGHINOPQRSTUVJKLMWXYZ (β then β then ββ’ then ββ’) |
| #3 | NOPQRSTUVWXYZABCDEFGHIJKLM (ββ’, ββ’ β, β) |
| #4 | IJKLMNOPQRSTUVWXYZABCDEFGH (β, ββ’, β, ββ’) |
| #5 | ACEGIKMOQBDFHJLNPRSUWYTVXZ (Variant alternating β and ββ’ then β and ββ’ called Sandi Kotak in Indonesia) |
| #6 | ACEGIKMOQBDFHJLNPRSUYWTVZX (Variant of variant #5, filling crosses by rotation ββ²) |
| #7 | ABCDEFGHILMNOPRSTV-------- (Version Heinrich Cornelius Agrippa von Nettelsheim) |
| #8 | BDFHJLNPRACEGIKMOQT-V-S-U- (Version La Buse) |
The Knight Templars cipher, the rosicrucian cipher, tic tac toe cipher, or the Dada Urka cipher are very similar and have very close symbols.
Any other variant remains decipherable by mono-alphabetic substitution.
Why was Pig Pen cipher created?
Used by the Freemasons, this encryption allowed a secret and relatively secure written correspondence.
Why this cipher is named Pig Pen?
Symbols can be assimilated to pens and dots could be interpreted as small pigs.
When PigPen was invented?
The Pig Pen Cipher is of ancient origin, but its exact date of invention is not known with certainty.
It has been widely used by Freemasons throughout their history, but its precise origins remain a subject of debate among historians.
About Pigpen Cipher
π Pigpen Cipher
Tool to decrypt/encrypt the Masonic alphabet. The Freemasons' Pig Pen cipher (Pigpen) is explained with the substitution alphabet using geometric symbols, grids, crosses, and dots for secret writing.
Author: dCode.fr
Tag(s) : Symbol Substitution
π Similar pages
π Keywords
freemason,masonic,pig,pen,pigpen,grid,dot,corner,all,seeing,eye,alphabet
ποΈ Source code
dCode retains ownership of the "Pigpen Cipher" source code. Any algorithm for the "Pigpen Cipher" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Pigpen Cipher" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Pigpen Cipher" or any other element are not public (except explicit open source licence). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.
β Cite dCode β
The content of the page "Pigpen Cipher" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source (Creative Commons CC-BY free distribution license).
Exporting the results is free and can be done simply by clicking on the export icons β€ (.csv or .txt format) or β§ (copy and paste).
To cite dCode.fr on another website, use the link:
In a scientific article or book, the recommended bibliographic citation is: Pigpen Cipher on dCode.fr [online website], retrieved on 2026-03-27,
π Support dCode
dCode and more
π‘ Need Help ?
Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!
dCode
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)