Pigpen / Masonic Cipher — Symbol Encoder
Encode text into Pigpen (Masonic) cipher symbols. Each letter is represented by a geometric shape derived from tic-tac-toe and X grids. Visual SVG output.
Pigpen / Masonic Alphabet
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
How to Use the Pigpen / Masonic Cipher — Symbol Encoder
- Enter or paste your text in the input field.
- The encoded or decoded result appears automatically.
- Copy the output using the copy button.
- Switch between encode and decode modes if available.
快速参考
| 从 | 到 |
|---|---|
| A | 65 (ASCII) |
| Z | 90 (ASCII) |
| a | 97 (ASCII) |
| 0 | 48 (ASCII) |
| Space | 32 (ASCII) |
| @ | 64 (ASCII) |
使用场景
- •Encoding or decoding data for web development projects.
- •Learning about cryptography and different cipher techniques.
- •Preparing encoded content for APIs or data transmission.
- •Solving cipher puzzles, CTF challenges, or educational exercises.
公式
The Pigpen cipher uses two 3×3 grids and two X shapes. Letters A–I occupy the first grid (no dot), J–R the same grid with a dot. S–V occupy the first X (no dot), W–Z the X with a dot. Each letter is represented by the lines surrounding its position.
常见问题
What is the Pigpen cipher?
The Pigpen (or Masonic) cipher is a geometric substitution cipher that replaces letters with symbols based on their position in a grid or X pattern. It was used by Freemasons in the 18th century and appears in many puzzle games and geocaching.
How does the Pigpen cipher work?
Letters A–I are placed in a 3×3 tic-tac-toe grid; each letter is represented by the lines that surround its cell. Letters J–R use the same grid but with a dot added to the symbol. Letters S–Z use two X shapes (without and with a dot).
Does the Pigpen cipher support Cyrillic?
No. The Pigpen cipher is defined only for the 26 Latin letters. There is no standard Cyrillic variant.
Is the Pigpen cipher secure?
No. Pigpen is a simple mono-alphabetic substitution cipher. Once the symbol set is known, it is trivially decoded. It offers no cryptographic security.
Where is the Pigpen cipher used today?
The Pigpen cipher is popular in puzzle hunts, escape rooms, geocaching, and historical re-enactments. It appears in The Da Vinci Code and various video games.