Skip to content
Book of Riddles

Cipher tools

Pigpen cipher translator and decoder

Type a text and see it in pigpen symbols, then download the picture as SVG or PNG. Or switch to “Symbols to text” and tap the symbols of a message to read it.

What do you want to do?

Text to translate

13 letters

Symbols

Black symbols on white. Digits and punctuation stay as plain characters.

ABCDEFGHIJKLMNOPQRSTUVWXYZ
Each sign belongs to the letter inside it.

Your text never leaves your device. Everything is worked out in your browser.

The key picture below shows which symbol belongs to which letter.

How the pigpen cipher works

Each letter is drawn as the part of a grid that surrounds it. The first grid, like a tic-tac-toe frame, holds A to I, the second grid holds J to R with a dot in each field. Then come two crosses shaped like an X: S, T, U and V for the first, W, X, Y and Z with a dot for the second. “HELLO” takes 5 symbols.

This is a plain substitution: every letter has exactly one symbol. Only the look is unusual. To read a symbol, ask which lines surround it and whether it has a dot, then find that spot in the key picture.

Layouts differ between sources. This tool uses the common one, the same as in the pigpen puzzles on this site. Digits and punctuation stay as ordinary characters between the symbols.

How to decode pigpen without the key picture

With the usual layout, the key picture is all you need: tap the symbols in order and read the letters.

If the symbols are shuffled, so that the grid no longer runs from A to Z, it is an ordinary substitution cipher. Count the symbols: the most common one is probably E, and short words give the rest. This is the method the oldest known description of codebreaking uses, counting letters.

The puzzles of the family below include pigpen messages with a shown key and some with a scrambled grid.

A short history of the pigpen cipher

Every statement comes with its source and the exact words.

  • The Rosicrucians and the Freemasons used variations of it, the latter so often that it is frequently called the Freemason’s cipher.

    Source

    Wikipedia (en), „Pigpen cipher“

    Variations of this cipher were used by both the Rosicrucian brotherhood and the Freemasons, though the latter used the pigpen cipher so often that the system is frequently called the Freemason's cipher.
  • One of the earliest gravestones in Trinity Church Cemetery in New York, opened in 1697, carries text in this cipher: “Remember death”.

    Source

    Wikipedia (en), „Pigpen cipher“

    One of the earliest stones in Trinity Church Cemetery in New York City, which opened in 1697, contains a cipher of this type which deciphers to "Remember death"
  • Tradition: It is said that the cipher is ancient and came from Hebrew rabbis. That is tradition, not documented fact.

    Source

    Wikipedia (en), „Pigpen cipher“

    The cipher is believed to be an ancient cipher and is said to have originated with the Hebrew rabbis.

Frequently asked questions

What other names does the pigpen cipher have?

It is also called the Freemason cipher or Freemason alphabet, the Masonic cipher, and in German Freimaurer-Chiffre or Freimaurer-Alphabet. The history section below gives the source for the Freemason name.

How do I save the symbols as a picture?

Type your text, then use “Download SVG” for a sharp vector picture or “Download PNG” for a normal image. “Copy image” puts the picture on the clipboard where the browser allows it. The picture shows black symbols on white.

How do I decode a message written in pigpen?

Switch to “Symbols to text”. Tap the symbol you see in the message, one after the other. The letters appear below, and you can add spaces. Typing letters on the keyboard works as well.

Is the pigpen cipher secure?

No. It is a plain substitution, which falls to letter counting. It is a game cipher.

Is my text sent to a server?

No. The symbols and the images are made in your browser, nothing is uploaded.

To recognise the plain text when cracking, the tool uses the most common words from wordfreq (Robyn Speer, CC BY-SA 4.0).