Skip to content
100% local

Pigpen cipher

Encode text into the pigpen (Freemason) symbol cipher, or decode it back to letters.

Input
48
Output

Pigpen cipher

The pigpen cipher, also called the Freemason's cipher, replaces each letter of the alphabet with a geometric symbol taken from a grid instead of another letter or number. This tool converts text into that symbol alphabet and back, so you can encode a message for a puzzle, an escape room, a classroom activity, or simply decode a pigpen message someone sent you.

Choose a direction to convert text to pigpen symbols or pigpen symbols back to text. The grid assignment option switches between two letter-to-symbol mappings—standard, where A to Z fill the grids in order, and rotated, where the same 26 shapes are assigned back to front—so you can use a slightly different cipher than the textbook version. Output as descriptive characters renders each symbol as a compact, copyable sequence of box and wedge glyphs with an optional dot; output as an SVG image draws the actual pigpen shapes as vector line art you can paste into a document or resize freely, with symbol size controlling how large each drawn glyph is. Turn on the legend to print the full A-Z symbol key alongside your result, and keep spaces and punctuation on to preserve word breaks and other characters exactly as typed, or off to output only the converted letters.

Decoding is lenient: any symbol that doesn't match a known letter is left as-is or skipped rather than guessed at, and diacritics are folded to their base Latin letter before conversion (é becomes E, for example), since the pigpen cipher only covers A through Z. Very long input is handled safely—results are capped so the tab never freezes on a huge paste, and an oversized SVG render is rejected with a clear message before it's built.

Everything runs locally in your browser; nothing you type is ever uploaded. Copy the result, download it as a .txt file, or send it straight back into the input to decode what you just encoded.

FAQ

What is the pigpen cipher?
It is a simple substitution cipher that replaces each letter with a geometric symbol drawn from sections of a grid, rather than another letter. It has been used since at least the 18th century, notably by Freemasons.
Does the cipher provide real security?
No. It is easy to break once you know or guess the grid layout, since it is a straightforward one-to-one letter substitution. Treat it as a puzzle or novelty cipher, not as encryption.
What is the difference between the standard and rotated grid assignment?
Standard assigns the symbols to A through Z in order. Rotated assigns the same 26 symbols to the alphabet in reverse, producing a different-looking cipher text for the same message.
Can I decode a pigpen message someone else wrote?
Yes—switch the direction to "Pigpen to text" and paste the symbol sequence using the same grid assignment it was encoded with. Descriptive-character notation decodes; a picture of hand-drawn symbols does not, since this tool only reads text.
Is my text uploaded anywhere?
No. The pigpen cipher runs entirely in your browser—nothing you type or paste is sent to a server.