Polybius Square Converter

Replace letters with row and column coordinates in a five by five grid.

Technology and NetUpdated 2026-11-192 min read
Polybius Square Converter
For encryption, any text up to 200 characters. For decryption, digits only with even length.
Converted message
...
Operation...
Square used...

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

  1. Type the message to encrypt or decrypt.
  2. Choose encrypt or decrypt.
  3. Read the converted message as the main result.
  4. Check the square to see the letter arrangement.
  5. For decryption, enter an even number of digits.
  6. Remember that J decodes as I.

Formula

Encryption: letter becomes (row, column). Decryption: pair of digits becomes the letter at that row and column
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.

  1. Locate H in row 2, column 3, giving 23.
  2. E is in row 1, column 5, giving 15.
  3. L is in row 3, column 1, giving 31, twice.
  4. O is in row 3, column 4, giving 34.
  5. Concatenate the pairs to get 2315313134.
  6. The tool reports result 2315313134.

Reference table

Sample Polybius conversions
MessageCoordinatesOperation
HELLO2315313134Encrypt
2315313134HELLODecrypt

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

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.