Cipher

Polybius Square Translator

The Polybius square turns every letter into two digits: its row and its column on a 5x5 grid. Type a message to see its coordinates, or paste digit pairs to read the letters back.

polybius-square.decode
Text
Coordinates

Result appears here

It is one of the oldest number ciphers, and its grid idea underpins later systems like tap code. Everything happens in your browser; nothing is uploaded.

How the Polybius Square works

The 25 letters (I and J share a cell, since 26 letters cannot fit a 5x5 grid) are arranged in a fixed grid, five rows of five. Each letter is replaced by its row number followed by its column number, both counted from 1.

To decode, read each pair of digits as a row and a column, then find the letter sitting at that position in the grid. The chart below shows every letter's coordinates at a glance.

Examples

HI
23 24
CIPHER
13 24 35 23 15 42
23 24 (decode)
hi

Polybius Square chart

Every letter at a glance. Use it to read or write by hand.

A
11
B
12
C
13
D
14
E
15
F
21
G
22
H
23
I/J
24
K
25
L
31
M
32
N
33
O
34
P
35
Q
41
R
42
S
43
T
44
U
45
V
51
W
52
X
53
Y
54
Z
55

History and origins

The Greek historian Polybius described the square around 150 BCE, originally as a way to signal letters over long distances using torches, one group for the row and one for the column. It is one of the earliest recorded methods for turning letters into numbers.

The same grid idea resurfaced two thousand years later in very different forms, from military tap codes to number-based signalling, because a 5x5 grid of coordinates is easy to memorise and easy to send through almost any two-state medium: taps, flashes or flags.

Frequently asked questions

What happens to the letter J in the Polybius square?

A 5x5 grid has 25 cells for 26 letters, so I and J share one cell. J is treated as I both when reading the chart and when the translator decodes coordinates.

Is the Polybius square the same as tap code?

They share the same 5x5 grid idea, but tap code (used by prisoners of war) merges C and K instead of I and J, and signals the coordinates as taps rather than written digits. Try the tap code translator to see the difference.

Is the Polybius square secure?

No, it is a simple substitution with no key, so anyone who knows the standard grid order can decode it instantly. It is best known today as a teaching tool and a building block for other ciphers and codes.

Learn more

Go deeper on the ideas behind this tool.

Related translators