CipherWiz

Pigpen Cipher Translator

Write any message in the pigpen (Masonic) cipher, download it as an image, or decode pigpen symbols by tapping the key. Free, runs in your browser.

How it works

The pigpen cipher replaces each letter with a symbol drawn from two grids and two X shapes. Write A to I in a tic-tac-toe grid, J to R in a second grid with a dot in each cell, S to V in an X, and W to Z in a second X with dots. The symbol for a letter is the shape of the lines around its place: A, in the top left corner of the grid, is drawn as its right and bottom sides, like a corner; E, in the middle, is a full square. Letters in the dotted grid and the dotted X get the same lines with a dot inside. The cipher has no key, so anyone with the chart can read it. Only letters are encoded; digits and punctuation are dropped. To decode, tap the symbols in the key under the result in the order you see them in the message.

Example: P sits in the bottom-left cell of the dotted grid, so it is drawn as the top and right sides of that cell with a dot inside. E, in the centre of the first grid, is a full square, and S, the top of the plain X, is a V shape.

Pigpen cipher key

The grids that define the symbols. Each letter is drawn as the lines around its own place, with a dot for the second grid and the second X. The full set of 26 symbols is shown in the decoder key above.

GridLettersDot
First tic-tac-toe gridA B C / D E F / G H Ino
Second tic-tac-toe gridJ K L / M N O / P Q Ryes
First X (top, left, right, bottom)S T U Vno
Second X (top, left, right, bottom)W X Y Zyes

Where the pigpen cipher is used

Freemasons used the cipher in the 18th century for their records, and it appears on gravestones such as the 1794 stone of James Leeson at Trinity Church in New York. Today it is popular in escape rooms, scavenger hunts, video games and classrooms because it looks mysterious but is easy to learn.

Frequently asked questions

How do I decode a pigpen message?

Use the symbol key below the translator: tap the symbols in order and the letters appear in the decoded text box. You can also match each symbol to the chart by hand.

Why is it called the pigpen cipher?

The letters sit in grid cells like pigs in pens. It is also called the Masonic or Freemason's cipher because Freemasons used it in the 18th century.

Are there other versions of the pigpen alphabet?

Yes. Some charts place the letters in a different order, for example the dotted grid on the X. This translator uses the most common version shown in the chart on this page; check that the sender used the same one.

Can I copy pigpen symbols as text?

There are no standard pigpen characters in Unicode, so the symbols are drawn as an image. Use the download button to save them as a picture.

Is the pigpen cipher secure?

No. It is a simple substitution with a well known chart, used for puzzles, escape rooms and teaching.

Is my text sent to a server?

No. Everything runs in your browser and the text you type is not sent anywhere.

More text tools

The most common pigpen layout is used. Other charts arrange the letters differently.