gizmobench
BrowseDaily

Vigenère Cipher Decoder

Decode a Vigenère cipher when you have the keyword: this page opens in decode mode with Elew aa tf tks kdk buwzyl aw aevuijvp. in the box and SHADOW as the key, which reads Meet me by the old bridge at midnight. Replace both with your own and the answer changes as you type. Spaces and punctuation come through untouched and do not use up a key letter, which is the rule that decides whether a decode agrees with the textbook or quietly disagrees with it.

Plain textVigenère, key SHADOW
Meet me by the old bridge at midnight.
Cipher
Mode
Key
Autokey

Each letter of the key shifts one letter of the message, and the key repeats for as long as the message lasts. Letters A to Z shift; spaces, punctuation, digits, accented letters and emoji pass through untouched, and they do not use up a key letter.

Vigenère calculation steps

A = 0 through Z = 25. Subtract the key position, then wrap modulo 26. Showing the first 48 letters; spaces and punctuation do not advance the key.

LetterInputKeySourceArithmeticOutput
1ESkeyword4 - 18 mod 26 = 12M
2lHkeyword11 - 7 mod 26 = 4e
3eAkeyword4 - 0 mod 26 = 4e
4wDkeyword22 - 3 mod 26 = 19t
5aOkeyword0 - 14 mod 26 = 12m
6aWkeyword0 - 22 mod 26 = 4e
7tSkeyword19 - 18 mod 26 = 1b
8fHkeyword5 - 7 mod 26 = 24y
9tAkeyword19 - 0 mod 26 = 19t
10kDkeyword10 - 3 mod 26 = 7h
11sOkeyword18 - 14 mod 26 = 4e
12kWkeyword10 - 22 mod 26 = 14o
13dSkeyword3 - 18 mod 26 = 11l
14kHkeyword10 - 7 mod 26 = 3d
15bAkeyword1 - 0 mod 26 = 1b
16uDkeyword20 - 3 mod 26 = 17r
17wOkeyword22 - 14 mod 26 = 8i
18zWkeyword25 - 22 mod 26 = 3d
19ySkeyword24 - 18 mod 26 = 6g
20lHkeyword11 - 7 mod 26 = 4e
21aAkeyword0 - 0 mod 26 = 0a
22wDkeyword22 - 3 mod 26 = 19t
23aOkeyword0 - 14 mod 26 = 12m
24eWkeyword4 - 22 mod 26 = 8i
25vSkeyword21 - 18 mod 26 = 3d
26uHkeyword20 - 7 mod 26 = 13n
27iAkeyword8 - 0 mod 26 = 8i
28jDkeyword9 - 3 mod 26 = 6g
29vOkeyword21 - 14 mod 26 = 7h
30pWkeyword15 - 22 mod 26 = 19t

This workflow needs the keyword. Unknown-key Vigenère solving requires separate cryptanalysis; the Caesar ranking applies to a single repeating shift.

The tabula recta

The row is the key letter, the column is the plaintext letter, and the cell where they meet is the ciphertext letter. Vigenère walks the key one letter at a time, taking a row per letter. The rows your key uses are highlighted.

Key letterABCDEFGHIJKLMNOPQRSTUVWXYZ
AABCDEFGHIJKLMNOPQRSTUVWXYZ
BBCDEFGHIJKLMNOPQRSTUVWXYZA
CCDEFGHIJKLMNOPQRSTUVWXYZAB
DDEFGHIJKLMNOPQRSTUVWXYZABC
EEFGHIJKLMNOPQRSTUVWXYZABCD
FFGHIJKLMNOPQRSTUVWXYZABCDE
GGHIJKLMNOPQRSTUVWXYZABCDEF
HHIJKLMNOPQRSTUVWXYZABCDEFG
IIJKLMNOPQRSTUVWXYZABCDEFGH
JJKLMNOPQRSTUVWXYZABCDEFGHI
KKLMNOPQRSTUVWXYZABCDEFGHIJ
LLMNOPQRSTUVWXYZABCDEFGHIJK
MMNOPQRSTUVWXYZABCDEFGHIJKL
NNOPQRSTUVWXYZABCDEFGHIJKLM
OOPQRSTUVWXYZABCDEFGHIJKLMN
PPQRSTUVWXYZABCDEFGHIJKLMNO
QQRSTUVWXYZABCDEFGHIJKLMNOP
RRSTUVWXYZABCDEFGHIJKLMNOPQ
SSTUVWXYZABCDEFGHIJKLMNOPQR
TTUVWXYZABCDEFGHIJKLMNOPQRS
UUVWXYZABCDEFGHIJKLMNOPQRST
VVWXYZABCDEFGHIJKLMNOPQRSTU
WWXYZABCDEFGHIJKLMNOPQRSTUV
XXYZABCDEFGHIJKLMNOPQRSTUVW
YYZABCDEFGHIJKLMNOPQRSTUVWX
ZZABCDEFGHIJKLMNOPQRSTUVWXY
These are puzzle ciphers, not security. Vigenère went unbroken for three centuries and then stopped: repeated patterns in the ciphertext give away the key length, and each position then falls to the same frequency count this page runs on Caesar. Use them for puzzles, ciphers in games and homework. Anything that actually needs to stay private wants modern encryption.
Accuracy. Exact for the classical ciphers as defined: letters shift, everything else passes through and, in Vigenère, does not consume a key letter. The Caesar cracker ranks shifts by English letter frequency and is a guess, shown as one.

Common questions

How do I decode a Vigenère cipher?
Put the ciphertext in the Ciphertext box, the keyword in the Key field, and leave the mode on Decode. The key is repeated across the message one letter per letter, and each key letter shifts its letter back instead of forward. Elew aa tf tks kdk buwzyl aw aevuijvp. under SHADOW comes back as Meet me by the old bridge at midnight.
Can I decode a Vigenère cipher without the key?
This workflow requires a keyword. Unknown-key Vigenère solving needs key-length and key-recovery analysis, which is not provided here. The additional Caesar Crack mode ranks single shifts; it does not solve a general Vigenère key.
What happens if the key is wrong?
Every valid keyword gives a result, so a wrong key can produce letters without an error. Readable output is evidence to check against the puzzle context, not proof of the original key. The tool verifies the arithmetic for the key you supplied.
Does the key have to be one word?
It has to be letters. Spaces, digits and punctuation are not part of a Vigenère key, so the field asks you to take them out and tells you what the key becomes without them. Case does not matter: lemon and LEMON are the same key.
What is autokey, and do I need it?
Plaintext autokey starts with the keyword and then continues with message letters instead of repeating the keyword. Select it only when that is the cipher convention. The decoder recovers plaintext in sequence and uses those recovered letters as the later key.
Is the ciphertext sent anywhere?
The cipher runs in your browser. This page holds its verified ciphertext, SHADOW keyword, decode mode and repeating-key setting when it opens. Editing one field remembers only that choice and preserves your other saved fields. Clear resets the settings and remembers an empty message.

Exact for the classical ciphers as defined: letters shift, everything else passes through and, in Vigenère, does not consume a key letter. The Caesar cracker ranks shifts by English letter frequency and is a guess, shown as one.