Cipher
Runs in your browser. Your text never leaves your device.
Pigpen Cipher Translator
The pigpen cipher (Freemason cipher, masonic alphabet) draws each letter as a piece of a grid or an X.
Links carry your text after the # sign. Browsers never send that part of an address to a server, so it only reaches the people you share the link with.
Recent
Nothing yet. Your last 10 conversions, across every cipher, appear here. They are kept on this device only.
Pigpen Cipher at a glance
- Type
- Keyless cipher
- Key space
- None (fixed symbol set)
- Directions
- Encode and decode: Text to Pigpen symbols and back
- Example
HELLO→- Privacy
- Runs in your browser, nothing is uploaded
Type a message to see it drawn in pigpen symbols, or tap the symbols on the on-screen keyboard to decode a note you only have on paper, then save the result as a PNG or SVG image.
It is a favourite for secret notes and treasure maps. The full chart below shows the whole alphabet at a glance, so you can also write and read pigpen by hand.
How the Pigpen Cipher works
Letters are laid out in two tic-tac-toe grids and two X shapes. Each letter takes the shape of the lines around its position, and letters in the second grid and second X get a dot.
To write a letter you draw the corner or edges that surround it. To read pigpen, match each symbol back to its position in the grids using the chart.
Examples
Pigpen Cipher chart
Every letter at a glance. Use it to read or write by hand.
CC BY 4.0. Credit: CipherPad. SVGPNG
History and origins
The pigpen cipher dates to at least the 18th century and was used by Freemasons to keep records private, which is why it is often called the Freemason cipher. It also appears in Civil War correspondence.
Its charm is that it looks mysterious and alien while being genuinely easy to learn, which is exactly why it shows up in puzzles and children's spy kits.
Frequently asked questions
What is the pigpen cipher? #
A substitution cipher that swaps each letter for a symbol made of the lines around it in two grids and two X shapes. It has no key: anyone with the chart can read it, which is why it is used for puzzles rather than secrets.
How does the pigpen cipher work? #
Letters are arranged in two grids and two X shapes. Each letter is written as the lines that surround its cell, with a dot added for letters in the second grid and X. Match the shapes to the chart to read it.
How do I decode pigpen symbols? #
Use the pigpen symbol keyboard in the tool: tap each symbol in the order it appears, and the matching letter is added so the plain text builds up as you go. A symbol with a dot belongs to the second grid or X, so pick the dotted key for it. If a hand-drawn shape is unclear, compare it with the chart below.
Can I type pigpen symbols on a keyboard? #
Not as ordinary text: Unicode has no pigpen characters, so no font or keyboard layout types them. This translator draws each symbol as an image, and you can save the result as a PNG or SVG to paste into a document or print.
Is there more than one pigpen key? #
Yes. The common layout, used here and in the chart, puts A to I in a plain grid, J to R in a dotted grid, S to V in a plain X and W to Z in a dotted X. Older versions fill each cell with two letters and mark the second with a dot, so check which key a puzzle uses before decoding.
Is the pigpen cipher secure? #
No. It is a simple substitution with one published key, so each symbol always means the same letter. A message can be read with the chart in moments, and even without it by counting which symbols are most common.
Why is it called the Freemason cipher? #
Freemasons used it to keep their records private, so the pigpen cipher picked up the Freemason name. The pigpen name comes from the way letters sit in pen-like grid cells.
How old is the pigpen cipher? #
At least 300 years. Freemasons used it in the 18th century, a gravestone from 1794 in the churchyard of Trinity Church in New York carries an inscription in it, and prisoners used it during the American Civil War.
Learn more
Go deeper on the ideas behind this tool.
Not sure this is the right tool?
If you have a message and you are not certain what it is, the cipher identifier reads the character set and the letter statistics and tells you which scheme it most likely uses, and why. It covers every code and cipher on this site.
Related translators
Reference this tool
Mention this page in homework, a write-up or an article with this line:
Pigpen Cipher Translator on CipherPad, retrieved on the date of your visit, https://cipherpad.dev/translate/pigpen
The text on this page is licensed CC BY 4.0: you may share and adapt it, also commercially, as long as you credit CipherPad and link to the page.