Polybius Cipher
Encode text with the Polybius cipher (5x5 square, I/J merged). Each letter becomes a row/column digit pair. Useful for puzzles and classical cryptography.
—
The Polybius square: letters become number pairs
The Polybius square is one of the oldest ideas in cryptography and perhaps the most reused: the 25 letters go into a five-by-five grid, and each letter becomes identified by its row and column. The word HI becomes 23 24. The technique is credited to the Greek historian Polybius, who proposed it in the second century BC for sending messages at a distance using torches.
Paste the text and receive the coordinate pairs. The alphabet has 26 letters and the grid holds only 25, so I and J share a cell — the standard convention for this cipher. When deciphering, context settles which one it was: in practice the reading rarely leaves doubt.
On its own the square protects nothing: it is a direct substitution, and letter frequency simply becomes pair frequency. Its value lies in being a building block. The square is the first step of Bifid, of the Nihilist cipher and of the ADFGVX cipher used in the First World War — in all of them, turning letters into coordinates is what allows the digits to be shuffled afterwards, destroying the letter structure.
Frequently asked questions
Why do I and J share a cell?
Can a key be used?
What is the link with the tap code?
Related Tools
Polybius Square Cipher
Encrypt and decrypt messages with the Polybius square, which turns each letter into a pair of digits on a 5×5 grid (with I and J combined).
Bifid Cipher with Custom Key
Encrypts text with the Bifid cipher using a 5x5 Polybius square built from your keyword, merging I and J and interleaving row and column coordinates.
ADFGVX Cipher: Substitution Step
Encodes text on a fixed unkeyed 6x6 Polybius square of A-Z and 0-9, turning each character into its ADFGVX pair. No columnar transposition.
Affine Cipher
Encode text with the Affine cipher using E(x) = (a·x + b) mod 26. Here uses a=5, b=8 (coprime with 26). Combines multiplicative and additive substitution.
Interactive Alberti Cipher Disk
Alberti cipher disk with two rotating rings — rotate the inner ring and encrypt/decrypt letter by letter.
Atbash Cipher
Apply the Atbash cipher (A↔Z, B↔Y, C↔X...): each letter is mirrored in the alphabet. Ancient Hebrew cipher used in the Bible. Applying twice returns the original. Everything in your browser.