Pigpen Cipher
The pigpen cipher swaps each letter for a piece of a tic-tac-toe grid or an X, and a dot marks the second set of letters, so J is drawn like A with a dot inside.
Input
Letters A to Z. Other characters are shown as typed.
Pigpen symbols
Pigpen symbols for: nothing yet.
Pigpen has no text characters to copy, so share the PNG or SVG.
Pigpen cipher chart
Describe each symbol in words
- A: lines on the right and bottom
- B: lines on the right, bottom and left
- C: lines on the bottom and left
- D: lines on the top, right and bottom
- E: lines on the top, right, bottom and left
- F: lines on the top, bottom and left
- G: lines on the top and right
- H: lines on the top, right and left
- I: lines on the top and left
- J: lines on the right and bottom, with a dot
- K: lines on the right, bottom and left, with a dot
- L: lines on the bottom and left, with a dot
- M: lines on the top, right and bottom, with a dot
- N: lines on the top, right, bottom and left, with a dot
- O: lines on the top, bottom and left, with a dot
- P: lines on the top and right, with a dot
- Q: lines on the top, right and left, with a dot
- R: lines on the top and left, with a dot
- S: V shape opening up
- T: V shape opening left
- U: V shape opening right
- V: V shape opening down
- W: V shape opening up, with a dot
- X: V shape opening left, with a dot
- Y: V shape opening right, with a dot
- Z: V shape opening down, with a dot
Why use our Pigpen Cipher?
Tap to Decode
Press Pigpen to text and tap the symbol you see on paper. The keys are drawn from the same table as the chart and laid out in the grid and X shapes.
Draw, Then Download
Type a message to see it drawn as symbols, up to 300 letters, then download it as a PNG or SVG. The chart itself downloads as a PNG.
Drawn on Your Device
Everything, including the downloads, is made in your browser; nothing you type is sent. There is no account and nothing to install.
What is the Pigpen Cipher?
The pigpen cipher is a geometric simple substitution cipher: each letter is replaced by the walls of the pen around it in a tic-tac-toe grid or an X (Wikipedia). Every letter always gets the same symbol, so it is a code for puzzles and fun rather than for secrets.
It is also known as the masonic cipher or Freemason cipher. Other names: Rosicrucian, Napoleon and tic-tac-toe cipher. For a letter-to-number puzzle, try the A1Z26 cipher.
Reading the Pigpen Chart: Grid, Grid, X, X
- Letter groups:The chart holds 9, 9, 4, 4 letters: Plain grid, A to I; Dotted grid, J to R; Plain X, S to V; Dotted X, W to Z.
- Walls and dots:The lines of a symbol are the walls of the pen around its letter; a dot means the second grid or the second X, so J is A with a dot.
- X letters:S to V sit in the four arms of the plain X, so each is a V shape; W to Z repeat them with a dot.
- Same shapes:HELLO uses 5 symbols but only 4 different shapes, because both Ls look the same.
- In words:The Describe each symbol in words list under the chart spells out all 26 shapes, for example A: lines on the right and bottom.
Common Use Cases
Escape Room Clues
Decode a pigpen clue on the spot by tapping the shapes instead of copying them onto paper first.
Classroom Activities
Print the chart PNG for a lesson on codes, then let students check their answers with the tap keyboard.
Secret Notes and Cards
Write a birthday or postcard message as symbols, download it as a PNG and add it to a card.
Mixed Cipher Hunts
Mix pigpen with other ciphers in a hunt; the symbols look nothing like letters at first glance.
Old Stones and Records
Read pigpen carved on old gravestones or written in Masonic papers, as long as it uses the grid, grid, X, X key.
Crafts and Print
The SVG download is black lines on white, so it stays sharp when printed large for a poster or a display.
How to Use the Pigpen Cipher Decoder
Switch to decoding
Press Pigpen to text. A keyboard of pigpen symbols takes the place of the text box.
Tap each symbol
Tap the shape that matches each symbol, with Space between words. Delete removes the last tap.
Copy the text
Copy the decoded text. Clear empties it for the next message.
Or write pigpen
To use it as a pigpen cipher translator the other way, press Text to pigpen, type, and download the symbols as PNG or SVG to print or share.
Why It Is Called the Masonic Cipher
Freemason Records
Freemasons used it so often that the cipher took their name. They began using it in the early 18th century to keep records of their history and rites private, and for letters between lodge leaders.
Carved in Stone
Freemason tombstones carry it. One of the earliest stones in Trinity Church Cemetery, New York, carries a pigpen message that reads Remember death.
Older Than the Lodges
Cornelius Agrippa described an early form, the Rosicrucian cipher, in 1531 (Wikipedia). No single inventor is known.
How to Decode Pigpen by Hand
- •Draw the key: Draw the two grids and two Xs, write the letters in, then match each symbol by its walls and dot.
- •Dots first: Sort the symbols by dot: no dot means A to I or S to V, a dot means J to R or W to Z.
- •Short words: It is a simple substitution, so letter counts and short words give it away; the symbols do not help against cryptanalysis (Wikipedia).
- •Repeated shapes: The same shape is always the same letter, so a doubled symbol, like the two Ls of HELLO, is a doubled letter.
- •Other pigpen keys: Other orders exist, such as grid, X, grid, X and grid, grid, grid. A message that decodes to nonsense here probably used one of them.
- •Numbers and marks: Digits and punctuation have no pigpen symbol; when you write a message they are kept as typed and listed under the symbols.
Read or Write Pigpen Now
Have a page of grid and X symbols in front of you? Tap them in order and the letters appear, ready to copy into a note or an answer box.
Writing one instead? Type the message, check the symbols and download a PNG or SVG. Pigpen has no text characters, so an image is the way to send it.
Related tools
Frequently Asked Questions
How do you decode a pigpen cipher?
Press Pigpen to text and tap the shape that matches each symbol on your paper, or match each symbol against the chart by its walls and dot.
What is the pigpen cipher?
A simple substitution cipher that swaps each letter for the piece of a grid or an X around it, with a dot for the second set of letters.
When was the pigpen cipher created?
No single inventor is known. Cornelius Agrippa described an early form in 1531, and Freemasons used it from the early 18th century.
Why is it called the Freemason's cipher?
Freemasons used it so often to keep their records and letters private that it took their name.
Is the pigpen cipher hard to break?
No. Each letter always gets the same symbol, so letter counts and short words give it away.
Why does my pigpen message decode to nonsense?
It was probably written with another key, such as grid, X, grid, X. This page uses grid, grid, X, X.