1001Ferramentas
🔡Security

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.

Cifrado

The substitution half of a wartime cipher

ADFGVX is remembered as the German field cipher of 1918, and it keeps showing up in CTFs, museum puzzles and classical cryptography books. If you arrived holding something like DD AV DX DX FF, or you need to produce that shape, this is what the page does: every letter or digit becomes a pair built only from the six letters the cipher is named after.

The matrix is 6x6, filled with A through Z followed by 0 through 9 in plain order, with no keyword scrambling the cells. Each character position becomes a row and a column, and those indexes are labelled A, D, F, G, V and X, chosen precisely because their Morse codes are easy to tell apart and telegraph operators made fewer mistakes. H sits at DD, E at AV, L at DX and O at FF, so HELLO becomes DD AV DX DX FF. Everything that is not a letter or digit is stripped first.

Now the honest part: this is half a cipher. Historical ADFGVX scrambled the matrix with a keyword and then ran a columnar transposition with a second keyword, and that second stage is what scattered the letters and gave analysts a hard time. Without it you are left with plain substitution, which falls to bigram frequency analysis. Use this page to study or to build stage one, never to actually hide anything. It all runs in your browser.

Frequently asked questions

Why those six letters specifically?
A, D, F, G, V and X have Morse codes that are hard to confuse with each other, which cut down on reception errors over the telegraph lines used at the front.
Is the columnar transposition included?
No. This page does substitution only, and the matrix is fixed at A through Z plus 0 through 9 in order, without the keyword that scrambled the cells in the original.
Can the input contain numbers?
Yes, digits 0 through 9 occupy the last cells of the 6x6 matrix. Accents, spaces and punctuation are removed before conversion.

Related Tools