Bifid Cipher Encoder & Decoder
Encrypt plaintext into Bifid cipher text or decrypt a Bifid message back to readable text — then see exactly how the keyworded square and coordinate fractionation work.
Use a keyworded 5×5 square and adjustable period to explore coordinate fractionation in a classical hand cipher.
The Bifid cipher is a fractionating cipher: it splits each letter into two parts, scrambles those parts, and reassembles them into new letters. It starts with a Polybius square — a 5×5 grid in which every letter has a row and a column coordinate from 1 to 5.
Encryption runs in three moves. First, write each letter’s row and column beneath it. Second, for a block of letters, list all the row digits first and then all the column digits — this is the step that mixes coordinates that started life on different letters. Third, read the combined digit stream back in pairs, treating each pair as a new row–column coordinate, and look it up in the square to get the ciphertext.
The period is the block size — how many letters are fractionated together before the digits are recombined. A period of 5 means five letters are converted, mixed, and rebuilt before the next five are handled. The Bifid cipher was invented around 1895 by Felix Delastelle, who also designed the related Four-square and Trifid systems.
Unlike a plain Polybius square, Bifid keys its grid with a word. Write the keyword first (dropping repeated letters), then fill in the rest of the alphabet in order. Because the grid holds only 25 cells, I and J share one cell. Using the keyword CIPHER — the tool’s default — the letters land like this:
| 1 | 2 | 3 | 4 | 5 | |
|---|---|---|---|---|---|
| 1 | C | I/J | P | H | E |
| 2 | R | A | B | D | F |
| 3 | G | K | L | M | N |
| 4 | O | Q | S | T | U |
| 5 | V | W | X | Y | Z |
Read the row first, then the column: H sits in row 1, column 4, so its coordinate is (1, 4). Change the keyword and every coordinate changes with it — that keyword is the cipher’s key. You can watch the grid rebuild live under the Cipher Square tab in the tool above.
Step 2 — coordinates. Look up each letter of HELLO in the square above and write its row and column:
| Letter | Row | Column |
|---|---|---|
| H | 1 | 4 |
| E | 1 | 5 |
| L | 3 | 3 |
| L | 3 | 3 |
| O | 4 | 1 |
Step 3 — fractionate. List every row digit across the block first, then every column digit:
Rows : 1 1 3 3 4
Columns: 4 5 3 3 1
Combined: 1 1 3 3 4 4 5 3 3 1
Step 4 — read back in pairs. Split the combined stream into coordinate pairs and look each one up in the square:
| Pair | (1,1) | (3,3) | (4,4) | (5,3) | (3,1) |
|---|---|---|---|---|---|
| Letter | C | L | T | X | G |
So HELLO → CLTXG. Notice the second and third letters of the ciphertext are built from digits that came from different plaintext letters — that mixing is what hides the original letter positions and makes Bifid stronger than a plain Polybius substitution.
To decrypt, reverse the flow: turn each ciphertext letter back into its two digits and list them in one row (1 1 3 3 4 4 5 3 3 1), split that row in half, then read the first half as rows and the second half as columns, paired position by position — which returns HELLO. Try it: paste CLTXG into the tool, set mode to Decrypt, keyword CIPHER, period 5.
Bifid belongs to the family of Delastelle fractionating ciphers. It is historically interesting because it combines substitution with transposition instead of replacing each plaintext letter with one fixed ciphertext letter, which breaks the simple letter-frequency patterns that give away a basic substitution cipher.
Because it turns letters into coordinates, Bifid is a natural comparison point for the Polybius square, Playfair, Four-square, and the Nihilist cipher, which also use 5×5 squares but combine coordinates differently.
For deeper historical context, the biography of Felix Delastelle helps place the method among late nineteenth-century manual cipher systems. Today it is best used for classroom cryptography, puzzle hunts, and demonstrations of why combining simple operations does not create modern security.
Keyword Builds the Square
Repeated keyword letters are removed, then the remaining alphabet fills the grid. J is treated as I.
Period Changes Output
Sender and receiver must use the same period or decryption will not line up.
Educational Only
Bifid is valuable for learning classical cryptography, not for protecting sensitive data.
What is the Bifid cipher?
A classical fractionating cipher invented by Felix Delastelle around 1895. It turns each letter into row and column coordinates on a keyworded 5×5 Polybius square, mixes the row digits with the column digits across a block, then reads the mixed digits back through the square as new letters.
How does the Bifid cipher work step by step?
Write each letter’s row and column under it, list all the row digits of a block first and all the column digits second, then read that combined digit stream back in pairs as coordinates. With keyword CIPHER and period 5, HELLO gives rows 1 1 3 3 4 and columns 4 5 3 3 1, which combine to 1 1 3 3 4 4 5 3 3 1 and decode in pairs to CLTXG.
What does the Bifid period control?
The period is how many letters are fractionated together before the coordinate digits are recombined. A larger period mixes coordinates across more letters, so the same message and keyword can produce different ciphertext at different periods. Sender and receiver must agree on the period.
How do you decrypt a Bifid message?
Rebuild the same square, convert each ciphertext letter in a block into its two coordinate digits and list them in one row, split that row in half, then read the first half as row digits and the second half as column digits paired position by position. Looking up each pair in the square returns the plaintext.
Why are I and J combined in the Bifid cipher?
A 5×5 square has only 25 cells but the alphabet has 26 letters, so two must share a cell. This tool merges I and J, so J is treated as I on input; when decrypting, a recovered I may stand for either letter and context decides.
Is the Bifid cipher secure today?
No. It is valuable for classroom cryptography, puzzle hunts, and CTF challenges, but its short period and small key space make it easy to break with modern methods. Never use it to protect sensitive data.