Trifid Cipher
Encodes each letter of a message as its three coordinates in the 3x3x3 Delastelle grid, the fractionation step that the Trifid cipher is built on.
Triplas
—
Three layers of three by three
Felix Delastelle published the Trifid early in the 20th century as the three dimensional sibling of his Bifid, and it shows up regularly in classical cipher collections and CTF puzzles. Most people arrive here wanting to see the triplets: each letter becomes three digits from 1 to 3, something like 132 122 213 213 223, and the question is where exactly those numbers come from.
There are 27 slots arranged as three 3x3 layers, because 3 cubed is 27, which fits the 26 letters plus one spare character, here a full stop. A letter's position becomes layer, row and column, each from 1 to 3. H sits in the eighth slot, giving layer 1, row 3, column 2, which reads as 132. HELLO comes out as 132 122 213 213 223. The alphabet is in plain order with no keyword scrambling it, and the filter drops anything that is not a letter, so the full stop never actually appears.
This page gives you the coordinate encoding, which is the first half of the Trifid. In the full cipher you write the three coordinates on three lines, cut the block by a chosen period, read row by row inside each block and convert back to letters; that fractionation is what makes each output letter depend on three input letters. Without it you have plain substitution. Good for study and puzzles, not for security. Everything runs in your browser.
Frequently asked questions
Why 27 slots and not 26?
Is this output the complete Trifid?
How do I read a triplet like 132?
Related Tools
Custom Polybius Square
Build a 5×5 Polybius square with a key letter and encrypt/decrypt messages using numeric coordinates.
Tap Code (Prison) Cipher
Convert text to pairs of taps (5×5 prison tap code) and back — visual representation included.
Encrypt Text
Apply classic ciphers (Caesar, ROT13, Atbash) or Base64. Useful for puzzles, CTFs and testing — do not use for real security.
Affine Cipher with Explicit Keys (a, b)
Encrypts text with E(x) = (a·x + b) mod 26, refuses any key a that shares a factor with 26, and prints the modular inverse needed to decrypt.
Beaufort Cipher
Enciphers letters with the Beaufort cipher, a reciprocal Vigenere variant where each output letter is key minus plaintext mod 26, so the key also decodes.
Hill Cipher 2×2
Encrypt text with a 2×2 matrix mod 26 (Hill cipher) — algebraic explanation and key invertibility check.