Polybius Square and Tap Code

Inputs

Results

The square

12345

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

  1. Choose Encode or Decode and the square: Polybius for numbers, Tap code for knocks.
  2. 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.
  3. 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.

ParameterWhat it sets
textThe message, or number pairs / knocks to decode.
modeencode or decode.
stylepolybius (number pairs) or tap (dots).

Example: https://toolabelle.com/polybius-square/#text=Escape+at+dawn&mode=encode&style=polybius

Related tools