Polybius Square

Each letter becomes two digits: its row and its column in a 5 by 5 grid.

Number pairs

How it works

Put the alphabet in a grid of five rows and five columns, and number both. Every letter can now be named by two digits: row first, then column. A is 11, B is 12, and Z is 55. With 25 squares for 26 letters, I and J share a square.

The Greek historian Polybius described the idea in the 2nd century BC, as a way to signal letters over a distance with torches. Hold up a number of torches on the left for the row and on the right for the column.

By itself the square is a code, not a secret, since the grid is standard. Its importance is that it turns letters into pairs of small numbers, which other ciphers then scramble. The tap code used by prisoners, the Nihilist cipher and the German ADFGVX cipher of the First World War are all built on it.

You can add a key by filling the grid with a keyword first, then the remaining letters.

Worked example

H is in row 2, column 3, so it is 23. HELLO is 23 15 31 31 34.

The Polybius square

Row number first, then column number.

12345
1ABCDE
2FGHI/JK
3LMNOP
4QRSTU
5VWXYZ

Common questions

Why do I and J share a square?

The grid has 25 squares and the alphabet has 26 letters. I and J are combined because they are rarely confused in context.

How do I decode a pair like 34?

Go to row 3, then across to column 4. In the standard grid that is O.

Related tools