Polybius Square Cipher

Encode letters as row-column coordinates and decode coordinate pairs back into text with the Polybius Square cipher. Learn how classical coordinate substitution works using a simple grid-based system.

Input
0 chars · 0 bytes
Try:
Result
✓ Multiple alphabets supported ✓ Customizable delimiters ✓ We never store your messages ✓ Processed on our server
Examples
Encrypt HELLO
Input HELLO
Output 23 15 31 31 34

Classic English Polybius Square. Each letter is replaced by its row and column coordinates.

Decrypt coordinates
Input 23 15 31 31 34
Output HELLO

Coordinates 23, 15, 31, 31, and 34 decode to HELLO in the classical English Polybius Square.

Encode SECRET
Input SECRET
Output 43 15 13 42 15 44

A keyword is not required. Every letter is converted directly into row-column coordinates.

Decode a coordinate message
Input 52 15 31 13 34 42 15
Output WELCOME

Decode a longer sequence of coordinate pairs back into readable text.

How the Polybius Square cipher works

The Polybius Square cipher replaces letters with coordinates taken from a grid. Each symbol is identified by its row and column position, turning readable text into a sequence of number pairs.

In the classical English version, the alphabet is arranged inside a 5×5 square. Because 26 letters do not fit into 25 cells, the letters I and J traditionally share one position.

Unlike transposition ciphers that rearrange letters, Polybius Square is a substitution cipher. Each character is replaced with coordinates while the order of the message remains unchanged.

Polybius Square example

A classical 5×5 Polybius Square for the English alphabet looks like this:

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

Using this square, the word HELLO becomes 23 15 31 31 34.

Historical use and learning value

The Polybius Square was described by the ancient Greek historian Polybius and is one of the earliest known coordinate-based ciphers. It was designed to transmit letters using pairs of numbers.

Today it is mainly used for education, puzzles, escape rooms, and learning the foundations of classical cryptography. Many later cipher systems were influenced by the idea of representing letters as coordinates.

Polybius Square vs other classical ciphers

Unlike Caesar, which shifts letters, or Vigenere, which changes letters using a keyword, Polybius Square converts each character into coordinates. This makes it easier to transmit messages using numbers rather than letters.

The cipher is simple to learn but offers little real security because the coordinate patterns can be analyzed and reversed.

FAQ

The classical English Polybius square uses 25 cells. Combining I and J lets 26 English letters fit into a 5x5 grid.

No. It is a simple substitution cipher and is best used for learning, puzzles, and historical demonstrations.

The method is named after Polybius, an ancient Greek historian who described a coordinate system for representing letters with pairs of numbers.

Yes. This tool can build coordinate grids from different alphabets. The exact coordinates depend on the selected alphabet and grid layout.

Representing letters as coordinates makes messages easier to transmit through signals, codes, or numerical channels while preserving the original text structure.

It is a substitution cipher because each letter is replaced by coordinates. The order of characters in the message does not change.
Related tools

Caesar Cipher

Classic letter-shift cipher with custom shift values.

Playfair Cipher

Classic digraph substitution cipher with keyword matrix encryption.

Vigenere Cipher

Keyword-based polyalphabetic encryption and decryption.

Vernam Cipher

XOR-based Vernam encryption with Base64 output.