Skip to main content

Pigpen Cipher Translator and Decoder

Turn letters into Masonic grid-and-X symbols, drawn live as SVG, with a plain-text key so you can decode it back, browser-only

  • Runs locally
  • Category Text
  • Best for Removing repetitive cleanup work from everyday writing and operations.
Pigpen cipher (also called the Masonic or Freemason cipher). Each letter becomes a fragment of a tic-tac-toe grid or an X, with an optional dot. Type below and watch the symbols draw as SVG. Pigpen has no key and is read the instant someone recognises the grid, so treat it as a puzzle, not as encryption.
Your text
Symbols
Symbols appear here as you type.
Round-trip keys
g-tl g-tm g-tr …
Alphabet reference · 26 letters
AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXXYYZZ

What this tool does

Free Pigpen cipher translator that encodes text into the classic Masonic symbols and decodes them back, entirely in your browser. The Pigpen cipher, also called the Masonic or Freemason cipher, swaps each letter for a fragment of a tic-tac-toe grid or an X, with an optional dot inside. The 26 letters sit in four groups: A to I in the plain grid, J to R in the dotted grid, S to V in the plain X, and W to Z in the dotted X. Type a message and every letter draws itself as a crisp inline SVG glyph, scaling cleanly at any size. Because there is no Unicode character for a Pigpen symbol, the tool also prints a stable plain-text key for each glyph, such as g-tl for the letter A, so a puzzle can be written, shared and decoded as ordinary text. A full A to Z reference chart is built in. This is a puzzle and teaching cipher, not real encryption: once someone recognises the grid it reads on sight. Copy the symbols key, share a link, and nothing is uploaded.

Tool details

Input
Text
The page exposes text boxes, numeric controls, file pickers, or structured inputs depending on the tool.
Output
Live result + Copy + Preview
The result area focuses on usable output, with copy, download, or preview actions when supported.
Privacy
Browser-side processing
The main tool logic does not call an external API, so inputs normally stay in the current tab.
Save / share
Shareable URL state
Key settings are encoded in the URL so another person can reopen the same setup.
Performance budget
Initial JS <= 11 KB
No WASM budget is declared, keeping the tool quick to open on mobile.
Best fit
Text · Content Creator
Category and role tags drive related tools, internal links, and quick fit checks.

How to use

  1. 1. Input

    Paste or drop your content into the tool panel.

  2. 2. Process

    Click the button. All processing is local in your browser.

  3. 3. Copy / Download

    Copy the result or download to disk in one click.

How Pigpen Cipher fits into your work

Use it to clean, compare, reshape, or extract plain text before it goes into a document, CMS, spreadsheet, or prompt.

Text jobs

  • Removing repetitive cleanup work from everyday writing and operations.
  • Making text easier to compare, paste, publish, or feed into another tool.
  • Working with content locally when the text is private or unfinished.

Text checks

  • Scan for unintended whitespace, duplicate lines, and lost punctuation.
  • For long text, test the first few lines before applying the whole change.
  • Copy the final output only after checking the preview.

Good next steps

These links move the current task into a more complete workflow.

  1. 1 Base64 Encoder & Decoder Encode or decode Base64 — text, files, and Data URLs. Runs entirely in your browser. Open
  2. 2 Atbash Cipher Mirror the alphabet, A↔Z B↔Y, no key, self-reciprocal so the same button encodes and decodes, browser-only Open
  3. 3 Caesar Cipher Encoder & Decoder Encrypt, decrypt and brute-force a Caesar shift cipher — all 25 shifts at once, ROT13 shortcut, browser-only Open

Real-world use cases

  • Build an escape-room or puzzle-hunt clue

    You are designing a room and want a clue solvers can crack with a pencil and a grid drawn on scratch paper, no key card to find. Type the location of the next key into the encode box, watch the Pigpen symbols appear, and print that strip of glyphs on a clue card. Players who know the grid read it letter by letter. Copy the round-trip key so a co-designer can paste it back here and reopen the exact same clue without redrawing a single symbol.

  • Solve a Pigpen string in a CTF or treasure hunt

    A challenge hands you a row of grid-and-X drawings, or a transcript someone wrote out as keys. Switch to decode mode, paste the space-separated keys such as g-tl g-tm g-tr, and the plaintext falls out instantly. Because Pigpen is a fixed substitution there is no key to grind through, so this is the fastest path once you recognise the telltale grid corners and X wedges in a puzzle image.

  • Teach classical ciphers in a classroom or club

    Pigpen is a vivid first lesson because the symbol is something students draw rather than compute. Show the class that A is the top-left corner of the grid and J is the same corner with a dot, have them encode their own name, then decode a classmate's. The built-in A to Z chart doubles as a handout, and pairing it with the Atbash and Caesar tools contrasts a geometric cipher against a letter shift in one session.

  • Make geocaching logs and scout-activity markers

    Geocachers and scout leaders love Pigpen for trail markers and log stamps because the glyphs are fun to carve, stamp or chalk and need no equipment to read. Encode a short coordinate hint or a station name, copy the symbol key, and reproduce the shapes on a physical marker. Anyone with the grid in hand decodes it on the spot, and the shared link lets the next organiser regenerate the same symbols cleanly.

Common pitfalls

  • Expecting Pigpen to keep a secret safe. It is a single fixed substitution with no key, so anyone who recognises the grid reads it on sight. Use it for puzzles, lessons and games, never for passwords, private notes or anything that has to stay confidential.

  • Mixing up the dot. A and J share the same grid corner; the only difference is the dot that marks the second group, and the same goes for S versus W on the X. Drawing a dotted symbol without the dot, or adding a stray one, silently turns A into J or W into S. Check the reference chart when a decode comes out one letter off.

  • Trying to encode spaces, digits or Chinese as symbols. Pigpen only covers the 26 Latin letters A to Z, so everything else is skipped rather than drawn. A symbol count shorter than your text is expected, because punctuation and spaces simply have no glyph.

Privacy

Every step runs as plain JavaScript inside your browser tab: the letter lookup, the SVG drawing, the round-trip keys and the decode. Your text is never uploaded, logged or sent to any server, and there is no record of what you encoded. The one caveat is the shareable URL, which puts your input text in the query string, so a link pasted into chat will record that text in the recipient server access log. Pigpen is trivially reversible by design, so never put a real secret here in the first place; for anything sensitive, use the copy button and paste the symbols key instead of sharing the URL.

FAQ

Tool combos

Folks in your role tend to reach for these alongside this tool.

Made by Toolora · 100% client-side · Updated 2026-05-30