Skip to content
D DocNectar

Free ADFGVX Cipher Encoder and Decoder

Encrypt or decrypt text with the ADFGVX cipher, the WWI German field cipher combining grid substitution with columnar transposition.

100% Free No Signup Works on all devices

Built and fact-checked by the DocNectar team — see our editorial standards

Thanks for rating!

Key Features

Instant Calculation

Get accurate results in real time with our optimized algorithm.

Mobile Friendly

Fully responsive design. Works on all devices & screen sizes.

Privacy Focused

Your data stays on your device. We don't store any inputs.

100% Free

No hidden costs. This tool is completely free forever.

ADFGVX was a real field cipher used by the German army in World War I, combining a 6x6 grid substitution (covering all 26 letters and 10 digits) with a second, separate columnar transposition step for extra security.

This tool encrypts or decrypts text using ADFGVX with two keywords you choose: one for the grid, one for the transposition.

How it works

The 26 letters and 10 digits (36 characters total) fill a 6x6 grid keyed by your first keyword, with rows and columns labeled A, D, F, G, V, and X (letters chosen because they sound very different in Morse code, reducing transmission errors). Each character of your text is replaced with its row and column letters, then the entire resulting letter sequence is columnar-transposed — reordered into columns based on the alphabetical order of your second keyword's letters. Decryption reverses both steps in order.

  1. Enter mode.
  2. Enter text.
  3. Enter grid Keyword.
  4. Enter transposition Keyword.
  5. Click Calculate to see your results.

Examples

Grid keyword "PLAYFAIR", transposition keyword "GERMAN"

"ATTACKAT1200PM" (including digits) encrypts to an ADFGVX letter sequence — note this cipher explicitly supports digits, unlike most classical letter-only ciphers.

Who should use it

  • Puzzle and escape-room style word games with historical context.
  • Teaching how combining substitution and transposition strengthens a cipher.

Industry applications

  • Cryptography education and military history
  • Games and puzzles

Advantages

  • Combines two different cipher techniques (substitution and transposition) in one cipher.
  • Supports digits as well as letters, unlike most classical ciphers.
  • Genuine historical significance from real WWI battlefield use.

Limitations

  • More involved to work through by hand than a single-step cipher.
  • No real security against modern cryptanalysis, despite its historical strength.

Common mistakes to avoid

  • Mixing up the two keywords, or using a different pair for decryption than encryption — both must match exactly.
  • Forgetting that ADFGVX handles digits as well as letters, unlike most of the other classical ciphers on this site.

Best practices

  • Use ADFGVX for puzzles or to study how combining substitution with transposition made classical ciphers meaningfully stronger.

Tips

  • If your result looks wrong, decrypt in two mental steps: first undo the transposition (needs the transposition keyword), then undo the substitution (needs the grid keyword) — checking each stage separately makes mistakes easier to spot.

Frequently asked questions

Yes, with no signup and no limit on how many conversions you run.
Its 6x6 grid was specifically designed to cover all 26 letters plus the 10 digits (36 characters total), unlike a 5x5 Polybius-style grid which only fits the alphabet.
One keyword builds the substitution grid; the second, independent keyword controls the columnar transposition step. Using two separate keys is what made ADFGVX genuinely difficult to break in 1918 without both.
No — it was eventually broken by French cryptanalysts even during WWI, and offers no real security against modern computing. It remains an excellent teaching example of combining substitution with transposition.

Get new calculators and guides in your inbox

No spam — just new tools like ADFGVX Cipher Tool and practical guides.

Favorites