Polybius Square and Tap Code
Beta: this tool hasn't been fully reviewed yet. Double-check results before relying on them.
Inputs
Results
The square
| 1 | 2 | 3 | 4 | 5 |
|---|
Your input is too long to share as a link, so the page address no longer includes it.
The Greek historian Polybius described a 5×5 grid of letters that turns each letter into two numbers, easy to signal with torches. The same idea became the tap code, knocked on walls and pipes by prisoners, famously by American POWs in Vietnam. Both are fun for puzzles, escape rooms and teaching how letters can become numbers.
How to use it
- Choose Encode or Decode and the square: Polybius for numbers, Tap code for knocks.
- Type the text. When decoding, digits can be spaced or run together; tap code accepts dots or periods, with a space between the row and column.
- Copy the result.
Examples: “HELLO” in Polybius numbers is 23 15 31 31 34. “Hi” in tap code is ·· ··· ·· ···· (2-3 for H, 2-4 for I).
Questions and answers
Why does tap code drop K instead of J?
Tap code was designed for English messages, where C can stand in for K with little confusion. The Polybius square used here merges I and J instead, the most common classical layout.
Is the Polybius square a secret code?
Not on its own: anyone who knows the grid can read it. It becomes harder to crack when the grid is scrambled with a keyword, or combined with other ciphers, as in the ADFGVX cipher.
How do I tap the message?
Knock the row number, pause briefly, then knock the column number. Leave a longer pause between letters. Some people use an X as a full stop.
Link with pre-filled values
Add # and these parameters to the end of this page's address to open the tool with values already filled in.
| Parameter | What it sets |
|---|---|
text | The message, or number pairs / knocks to decode. |
mode | encode or decode. |
style | polybius (number pairs) or tap (dots). |
Example: https://toolabelle.com/polybius-square/#text=Escape+at+dawn&mode=encode&style=polybius