Polybius Square Converter
Replace letters with row and column coordinates in a five by five grid.
What it does
The Polybius square is an ancient coordinate cipher. A five by five grid holds the alphabet, with I and J sharing one cell, and each letter is replaced by its row number followed by its column number.
This tool encrypts text into two digit pairs and decrypts digit strings back into letters. The page opens with HELLO, whose coordinates are 23, 15, 31, 31 and 34.
The original device attributed to Polybius used the Greek alphabet and could signal letters with torches or numbers. The Latin version arranges A to Z in five rows of five with I and J merged.
Because I and J occupy the same cell, a decoded J always comes back as I. Context must decide which letter was intended. Spaces and punctuation are dropped during encryption.
The square is a simple substitution in numeric form, so it does not hide letter frequencies and offers little security by modern standards.
How to use
- Type the message to encrypt or decrypt.
- Choose encrypt or decrypt.
- Read the converted message as the main result.
- Check the square to see the letter arrangement.
- For decryption, enter an even number of digits.
- Remember that J decodes as I.
Formula
- row
- Row number from 1 to 5.
- column
- Column number from 1 to 5.
- coordinate
- The two digit code for a letter.
The standard square reads ABCDE, FGHIJK, LMNOP, QRSTU and VWXYZ across the five rows, with J omitted because I and J share a cell. Some variants combine U and V instead or use a six by six grid for digits.
Worked example
Example: HELLO
The page opens with the message HELLO.
- Locate H in row 2, column 3, giving 23.
- E is in row 1, column 5, giving 15.
- L is in row 3, column 1, giving 31, twice.
- O is in row 3, column 4, giving 34.
- Concatenate the pairs to get 2315313134.
- The tool reports result 2315313134.
Reference table
| Message | Coordinates | Operation |
|---|---|---|
| HELLO | 2315313134 | Encrypt |
| 2315313134 | HELLO | Decrypt |
Limits
- Messages are limited to 200 characters.
- Decryption requires an even number of digits.
- Coordinates must be between 11 and 55.
- I and J share one cell, so J cannot be recovered exactly.
Common mistakes
- Writing column before row.
- Using a 6 by 6 square convention with this tool.
- Expecting J to survive decryption.
- Including spaces in the encrypted output.
- Entering a zero digit, which is outside the grid.
Try it yourself
Quick checks. Answers sit tucked under each question.
Encode HELLO with the standard square.
2315313134.
Decode 2315313134.
HELLO.
Why does J decode as I?
I and J share one cell in the 5 by 5 grid.
Questions
What is a Polybius square?
A grid that converts letters to row and column coordinates.
Why five by five?
There are 25 cells, so two letters must share one cell.
Which letters share?
I and J in the standard Latin version.
How do I decode?
Split the digits into pairs and look up each row and column.
Does it hide letter frequencies?
No. Repeated letters give repeated coordinate pairs.
Can I include digits?
Not with the classic 5 by 5 square used here.
Sources
- Teaching London Computing, Polybius square explanation
- Wikipedia, Polybius square code and coordinate system