# Pigpen Cipher > Turn text into the pigpen (Masonic) cipher and back: the symbols are drawn for you, a tap-to-type symbol keyboard decodes, and you can print the key and a worksheet or save your message as PNG or SVG. - Page: https://linguaholic.com/tools/pigpen-cipher/ - Type: free online tool (Converters & translators), no sign-up, runs in the browser - Publisher: Linguaholic (https://linguaholic.com/), made by Marcel Iseli - Last updated: November 19, 2026 - Open it pre-filled: https://linguaholic.com/tools/pigpen-cipher/?text=Meet+me+at+noon - `text`: message to show in pigpen symbols (up to 2,000 characters) (for example `Meet me at noon`) - `key`: key layout: classic (default; A-I grid, J-R dotted grid, S-V X, W-Z dotted X), grid-x (A-I grid, J-M X, N-V dotted grid, W-Z dotted X) or pairs (two letters per pen, the second with a dot); alias variant (for example `pairs`) - `mode`: decode opens the symbol keyboard (pigpen to text); default encode (text to pigpen) (for example `decode`) ## What is the pigpen cipher? The **pigpen cipher** writes every letter as a little drawing instead of a letter. The alphabet is spread over two tic-tac-toe grids and two X shapes, and each letter is replaced by the shape of the cell, the “pen”, it sits in. The second grid and the second X carry a dot in every cell, so each of the 26 letters gets its own symbol. A square box is E; a box with a dot is N. It is also known as the **Masonic cipher** or the **Freemason’s cipher**, because Freemasons used it in the 18th century, and sometimes as the tic-tac-toe cipher. It is one of the most loved codes for kids, escape rooms and treasure hunts: it looks mysterious, but anyone with the key can read it in a minute. ## How to use the pigpen cipher translator 1. **Text to pigpen:** type your message. The symbols appear as you type. Pick a color, add the letters underneath if you want a learning aid, then save it as a PNG picture or an SVG file, or print it as a worksheet. 2. **Pigpen to text:** tap the symbols of a pigpen message on the symbol keyboard, in order, with Space between words. The decoded letters appear underneath, ready to copy. 3. **Key layout:** if your message was written with a different key, switch the layout. Symbols you already tapped are read again with the new key. Everything runs in your browser, free and with no sign-up. To decode a message in a cipher you do not know, paste it into our [Cipher Decoder](https://linguaholic.com/tools/cipher-decoder/), which tries every cipher at once. ## Frequently asked questions **What is the pigpen cipher?** A substitution cipher that writes each letter as the shape of the 'pen' around it in a key of two tic-tac-toe grids and two X shapes. The letters in the second grid and the second X get a dot, so all 26 letters have their own symbol. **How do you read the pigpen cipher?** Find the symbol's shape in the key: the lines show which cell of a grid or which arm of an X the letter sits in, and a dot means the dotted grid or X. In the classic key, a square box is E and a box with a dot is N. **How do I decode pigpen symbols with this tool?** Open the Decode tab and tap the symbols on the keyboard in the order of your message. Each tap adds the letter; use the space and back buttons as you go. **Why is it called the Masonic or Freemason's cipher?** Freemasons used it in the 1700s to keep records and notes private, so it is also called the Masonic cipher or Freemason's cipher. The grid idea is older; similar letter grids appear in 16th-century books on secret writing. **Are there different pigpen keys?** Yes. The classic key puts A to I in a grid, J to R in a dotted grid, S to V in an X and W to Z in a dotted X. Other versions alternate grid and X, or put two letters in every pen. The tool has all three; both sides need the same key. **How do you write numbers in pigpen?** The classic pigpen cipher has no symbols for digits. Spell numbers out as words (SEVEN), or agree on your own symbols. The tool keeps digits and punctuation as they are. **Can I print the pigpen key?** Yes. The Print key button prints the key chart, and Print worksheet prints your message in pigpen with empty boxes to write the answer in, plus practice puzzles. **Can I download my pigpen message as an image?** Yes. Save it as a PNG picture or an SVG file that stays sharp at any size, with the color you choose. **Is the pigpen cipher secure?** No. Each letter always has the same symbol, so the code can be broken by counting symbols like any simple substitution. It is meant for puzzles, notes and escape rooms. **Is this pigpen translator free?** Yes. It is free, needs no sign-up and runs in your browser; nothing you type is uploaded. ## Related tools - [Cipher Decoder](https://linguaholic.com/tools/cipher-decoder/): Paste any coded message: the decoder tries every cipher and code we have, from Caesar and Vigenère to Morse and binary, ranks the readings by how English they look and tells you which cipher it probably is. - [Tap Code](https://linguaholic.com/tools/tap-code/): Translate text to tap code and back: the 5×5 knock code American prisoners of war tapped through cell walls, with the full chart and how to tap it. - [Polybius Square](https://linguaholic.com/tools/polybius-square/): Decode and encode the Polybius square cipher, which turns each letter into its row and column in a 5×5 grid (I and J share a cell). - [A1Z26 Cipher](https://linguaholic.com/tools/a1z26-cipher/): Decode and encode the A1Z26 cipher, where A=1, B=2 and Z=26: letters to numbers and numbers to letters, with a full chart and puzzle tips. - [Morse Code Translator](https://linguaholic.com/tools/morse-code-translator/): Translate text to Morse code and decode it back, hear it as adjustable-speed sound with a visual flasher, and read the full Morse alphabet, number, and punctuation chart. - [Scytale Cipher](https://linguaholic.com/tools/scytale-cipher/): Encode and decode the scytale, the rod cipher of ancient Sparta: see the strip wind around the rod, choose how many letters fit around it, crack a message without the key and print strip templates for the classroom.