Pigpen cipher
Type a message to see it in pigpen symbols, or tap symbols to decode one. The key chart is below.
Tap each symbol in your message, in order:
Pigpen key
The chart is drawn with JavaScript. In words: A to I fill a tic-tac-toe grid left to right, top to bottom; J to R the same grid with dots; S, T, U, V the top, left, right and bottom of an X; W, X, Y, Z the same X with dots.
Common questions
What is the pigpen cipher?
A substitution cipher that swaps each letter for a piece of a grid. Letters A to I sit 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 an X with dots. Each letter is written as the lines around its cell.
Why is it called the Freemason's cipher?
Freemasons used it in the 1700s for their records and correspondence, so it is also called the Masonic cipher. Its exact origin is older and uncertain.
Is pigpen secure?
Not at all. It is a simple substitution, so anyone who knows the grid can read it, and even without the grid it falls to letter-frequency analysis. It is for puzzles, escape rooms and secret notes, not secrets.
Are there other pigpen layouts?
Yes. Some versions fill the grids in a different order (for example A, B, C in the first grid and the dotted grid alternating). This page uses the most common layout, shown in the chart below. If a message decodes to nonsense, it may use a different one.
More solvers and ciphers
- Minesweeper solverPaint your board; see which squares are safe and the odds on the rest.
- Nonogram solverType the clues, get the picture, and whether it has one answer.
- Word ladder solverThe shortest chain between two words, one letter at a time.
- Scytale cipherThe Spartan rod cipher, with a try-every-rod decoder.
- Atbash cipherA becomes Z, B becomes Y. Encode and decode at once.