Encode and decode messages using the Pigpen cipher, also known as the Freemason's cipher. While romantically attributed to the Knights Templar, this historical cryptographic tool was actually used by Freemasons and secret societies in the 18th-20th centuries.
Important: Despite its popular name, no authenticated medieval manuscript proves that the Knights Templar (12th-14th centuries) actually used this cipher. The cipher appears in 18th-20th century sources and was likely created by Neo-Templar Masonic orders, not the original medieval Knights Templar.
The Pigpen Cipher, also known as the Freemason's Cipher or Masonic Cipher, is a geometric substitution cipher that replaces each letter with a symbol based on its position in a grid. This cipher has documented use by Freemasons in the 18th century, with evidence found in Masonic lodge records, gravestones, and correspondence.
The cipher is often romantically attributed to the Knights Templar due to its mystical appearance and the Templars' legendary reputation for secrecy. However, historians note that:
The cipher uses two grids: a tic-tac-toe grid and an X-shaped grid. Each grid is divided into sections, with the first grid containing letters A-I, and the second (marked with dots) containing J-R. The X-grids contain S-Z. The symbol for each letter is determined by the shape of the lines surrounding it in the grid, with dots indicating the second set.
Despite its simple structure, the Pigpen cipher was used throughout history for secret communications:
This tool is provided for education and entertainment, not historical reenactment. It demonstrates:
To Encode: Type your plain text message in the input field and click "Encode". Each letter will be converted to its corresponding Pigpen cipher symbol.
To Decode: Click on the symbol keyboard buttons to input cipher symbols, or paste them directly into the input field, then click "Decode" to reveal the original message.
Symbol Keyboard: Use the visual keyboard to click individual cipher symbols and build your encoded message character by character.
Advanced Users: Open the console (press ~ or type commands) to access
additional functions like example, key, and
templarQuote.
Explore more historical and modern cipher tools: