Pigpen Cipher Translator & Decoder
: Turn text into pigpen cipher symbols (the Masonic or Freemason's cipher) and decode it by clicking the symbols; classic and alternate layouts, the key chart, and SVG, PNG and printOptions
Pigpen Cipher Translator & Decoder
Type a message and see it in pigpen cipher symbols, the grid-and-X code also called the Masonic or Freemason's cipher. To decode, switch to Decode and click the symbols you see; the letters appear as you go. Pick the classic or the alternate layout, keep the key chart beside you, and save the message as SVG or PNG or print it for a puzzle, a classroom or an escape room. It all runs in your browser.
How to use the pigpen cipher translator
- Choose
Encodeand type or paste your message intoText. The symbols are drawn as you type; spaces and line breaks are kept and long lines wrap between words. - Pick the
Layout:Classic(the usual one) orAlternate. The key chart under the message shows which shape stands for which letter. - To decode, choose
Decodeand click the symbols on the keypad under the text box in the order they appear in the puzzle;SpaceandBackspaceare there too. The result shows the plain text, ready to copy, and the symbols you entered so you can compare them with the puzzle. - Under
Options, set theSymbol size, theSymbols per row, andLetters under symbolsto print an answer key. - Download the message or the key as SVG (sharp at any size) or PNG, or press
Print.
Example
Each letter becomes the lines of its pen in the classic layout: a grid cell or a part of the X, with a dot for the second grid and the second X. The page draws these shapes.
HELLOH: grid, bottom middle
E: grid, centre
L: grid, top right, with a dot
L: grid, top right, with a dot
O: grid, middle right, with a dotDetails
- How the pigpen cipher works. Two noughts-and-crosses grids and two X shapes hold the 26 letters, and each letter is written as the lines around its place, its "pen". In the classic layout A–I in a grid, J–R in a grid with dots, S–V in an X, W–Z in an X with dots. So A, in the top left of the first grid, is a right angle open to the top left; E, in the centre, is a closed square; N is the same square with a dot; S, at the top of the X, is a V shape.
- The alternate layout, the one some books and puzzles use, puts A–I in a grid, J–M in an X, N–V in a grid with dots, W–Z in an X with dots. The same symbol means a different letter in the two layouts (in the alternate layout the V shape is J), so if a decoded message reads as nonsense, switch the layout.
- How to decode a pigpen cipher by hand: draw the key, then for each symbol find the cell or X part with the same lines, and look for a dot. A square with all four sides is always the centre cell; a symbol with a dot comes from the second grid or the second X.
- Pigpen has symbols only for the letters A to Z. Accented letters are written as the plain letter (é as E), and digits, punctuation and letters of other alphabets are drawn as typed; invisible control characters are left out. The symbols are not characters in Unicode, so they cannot be copied and pasted as text; save them as an image instead.
- A long message is wrapped to the number of symbols per row you choose. Past 300 rows the page shows the first 300 and says so; the SVG and PNG files hold the whole message.
- The cipher is centuries old: Freemasons used it in the 18th century for their records, and it is also called the Masonic cipher, the Freemason's cipher, and the tic-tac-toe cipher. Nothing you type leaves the page.
Limits
- Letters A to Z only; other alphabets and digits are drawn as typed, not enciphered. The notes say how many.
- Two layouts, classic and alternate. Rosicrucian and other variants that differ in where the dots go are not offered.
- Decoding is by clicking the symbols; the page does not read symbols from a photo.
FAQ
How do I decode a pigpen cipher?
Choose Decode and click each symbol on the keypad in the order it appears; the plain text builds up in the result. If it reads as nonsense, switch Layout between Classic and Alternate.
What is the pigpen cipher alphabet?
In the classic layout A–I in a grid, J–R in a grid with dots, S–V in an X, W–Z in an X with dots. Each letter is written as the lines around it. The key chart on the page shows every letter with its symbol and can be saved or printed.
Is the pigpen cipher the same as the Masonic cipher?
Yes. Pigpen is the usual name today; it is also called the Masonic or Freemason's cipher because Freemasons used it in the 1700s.
Can I copy and paste pigpen symbols?
Not as text: Unicode has no pigpen characters. Download the message as PNG to paste it into a document or chat, or as SVG to print it at any size.
Is the pigpen cipher secure?
No. It replaces each letter with the same symbol every time, so anyone with the key, or with a little letter-frequency work, reads it at once. It is for puzzles, games and teaching.
Runs entirely in your browser. Nothing is uploaded.