ADFGVX Cipher

Encrypt and decrypt text online with the World War I ADFGVX cipher, using a keyed 6×6 Polybius square and columnar transposition.

Input
0 chars · 0 bytes
Try:
Result
✓ Fractionation via a keyed 6×6 Polybius square ✓ Columnar transposition by a second keyword ✓ We never store your messages ✓ Processed on our server
Examples
Encrypt with two keys
Key: PRIVACY Transposition key: BATTLE
Input ATTACK AT DAWN
Output VVVVAAAAGFFXGFDFGAGGGXGX

Square key PRIVACY builds the 6×6 grid; transposition key BATTLE rearranges the fractionated letters.

Decrypt with the same keys
Key: PRIVACY Transposition key: BATTLE
Input VVVVAAAAGFFXGFDFGAGGGXGX
Output ATTACKATDAWN

The same square key and transposition key are required to recover the plaintext.

Encrypt letters and digits
Key: SECRET Transposition key: GERMAN
Input AGENT 007
Output AVXVFAFVGVGDFDAX

ADFGVX includes digits in its 6×6 square. With square key SECRET and transposition key GERMAN, spaces are removed and AGENT 007 becomes this ADFGVX-label ciphertext.

Decrypt an ADFGVX-label ciphertext
Key: SECRET Transposition key: GERMAN
Input AVXVFAFVGVGDFDAX
Output AGENT007

Paste the ciphertext made only from A, D, F, G, V, and X, then reuse square key SECRET and transposition key GERMAN to recover the message and its digits.

How the ADFGVX cipher works

ADFGVX is a German field cipher from World War I. This historical cipher combines fractionation in a keyed 6×6 Polybius square with columnar transposition, making it substantially more complex than either stage on its own.

To encrypt text with the ADFGVX cipher, enter a message, a square key, and a transposition key. The square key places the 26 English letters and digits 0–9 into the 6×6 grid. Its rows and columns are labelled A, D, F, G, V, and X, letters selected because their Morse-code signals are easy to distinguish. Each plaintext character is replaced by its row-and-column pair; the transposition key then changes the order of those ADFGVX labels to create the ciphertext.

To decrypt, use exactly the same two keys and paste the ciphertext made from A, D, F, G, V, and X. The tool reverses the columnar transposition first, then reads every label pair back through the keyed Polybius square. Spaces and punctuation are not encrypted, so the recovered result contains the supported letters and digits only. This online ADFGVX cipher is useful for learning classical cryptography, historical study, and puzzles; it is not suitable for protecting modern sensitive data.

FAQ

The letters A, D, F, G, V and X label the rows and columns of the 6×6 square. They were chosen because their Morse code representations are very different, reducing transmission errors.

The square key mixes the 6×6 Polybius grid, and the transposition key drives the columnar transposition step. Both are required to encrypt and decrypt.

ADFGX is the earlier version with a 5×5 square for 25 letters only. ADFGVX extends it to a 6×6 square that also includes the digits 0–9.

Before transposition, every plaintext symbol is converted into a row-and-column pair from A, D, F, G, V, and X. Columnar transposition rearranges those labels but does not introduce other ciphertext letters.

Yes. In the English implementation, the keyed 6×6 Polybius square contains the alphabet plus digits 0–9, so messages such as AGENT 007 can be encrypted and decrypted with the same two keys.

This implementation needs every supported alphabet to fit in 36 cells. The French alphabet used by the site has too many characters for the 6×6 square, so it cannot be processed reliably by this ADFGVX cipher tool.

No. ADFGVX is a historical cipher intended for education, puzzles, and studying World War I cryptography. Use modern, well-reviewed encryption for confidential or personal information.
Related tools

Caesar Cipher

Classic letter-shift cipher with custom shift values.

XOR Cipher

Online XOR encryption and decryption with text or hex keys.

Playfair Cipher

Classic digraph substitution cipher with keyword matrix encryption.