What the Polybius square is
The Polybius square is a cipher from ancient Greece, named after the historian Polybius. It writes the alphabet into a 5 by 5 grid, with 25 squares for 26 letters, so I and J share one square. Each letter is named by two numbers: its row and its column.
To encode a letter, you find it in the grid and write its row number followed by its column number. H sits in row 2, column 3, so H becomes 23. To decode, you read each pair and find the letter at that row and column. The square is the whole key, and anyone who has it can read the message.
How to use the encoder
Type your message in the box and press Encode, or just keep typing and the tool encodes as you go. Letters become two-digit pairs separated by spaces, and spaces in your message become slashes. Type J and it encodes as I, because the two letters share square 24.
To decode, paste number pairs like 23 15 31 31 34 into the same box and press Decode. The tool reads each pair as a row and a column and writes the letter back. A pair with a digit outside 1 to 5 becomes a question mark.
Worked example
Encode HELLO. H is row 2, column 3, so 23. E is row 1, column 5, so 15. L is row 3, column 1, so 31, and it appears twice. O is row 3, column 4, so 34. The full code is 23 15 31 31 34.
Decode it back: 23 is row 2, column 3, which is H. 15 is row 1, column 5, which is E. 31 is L, again L, and 34 is O. The message reads HELLO again. Another check: CAT encodes as 13 11 44, and Z alone is 55.
Who uses this cipher
School teachers use it to introduce codes and ciphers, because the grid is easy to draw on a board and the maths is just counting rows and columns. Puzzle makers hide Polybius codes in escape rooms, treasure hunts and puzzle books.
History students meet it when they study ancient Greek signalling, where the same square sent messages by torch. It is also the base of the tap code, which prisoners of war used to tap messages through walls.
Honest limitations
This is a teaching cipher, not security. The code keeps the same letter pairs every time, so anyone who sees enough coded text can guess the common letters and break it by hand. It also has no key: everyone uses the same standard square.
It only handles the basic Latin alphabet. Accents, numbers and punctuation become question marks or stay out of the code. And I and J are the same letter in the code, so a decoded message can read oddly where a J should be.
Frequently asked questions
Why do I and J share a square? The grid has 25 squares but the alphabet has 26 letters, so one square must hold two letters. I and J were treated as the same letter in Latin, so they share square 24.
Can I encode numbers? Not with the standard square. The grid holds letters only. Write numbers out as words, like FIVE, if you need them in the message.
How do I show a space? This tool writes a slash for each space, so the reader can see where words break. Some versions of the cipher leave spaces out entirely.
Is the Polybius square still used today? Only for teaching and puzzles. Modern encryption uses maths that a grid cannot match, and no serious system relies on a fixed 5 by 5 square.
También disponible en español: Codificador De Cuadrado De Polybius – Convierte Letras En Pares De Números
