- Translator
- Vigenère decoder
Vigenère cipher decoder
Decode a Vigenère message by subtracting its repeating keyword from the ciphertext. Enter your key below, or try an unverified English key guess for longer messages.
Encode or decode with a keyword
Everything runs in your browser. Your text and key stay on this device.
Enable JavaScript for the translator. The worked example and reference square below still work without it.
How do you decode a Vigenère cipher with a key?
Choose Decode, paste the ciphertext, and enter the sender’s keyword. Press Convert to subtract the repeating key from the letters. For example, LXFOPV EF RNHR with LEMON becomes ATTACK AT DAWN. Switch to Encode to reverse the example. This tool uses the repeating-key addition and subtraction described in (UCF, section 3.1).
Use the key trace to check the alignment. Each row names an input letter, the key letter used, the signed shift, and the output. Only the first 60 letter positions appear in the live trace; the copied result contains the whole conversion. If someone gave you a key phrase with spaces, agree on its spelling before removing those spaces for this tool.
The translator preserves uppercase and lowercase. It also keeps spaces, line breaks, numbers, accents, and punctuation unchanged. Only A–Z letters consume key positions. That is an explicit convention of this tool: treatment of characters outside the alphabet varies between implementations (CrypTool, alphabet rules). Check the convention when comparing results from two decoders.
How does the Vigenère table work?
Number the alphabet from A = 0 through Z = 25. To encode, add the message letter’s number to the key letter’s number, wrapping after Z; to decode, subtract the key. A in the key leaves the letter unchanged. The square below expresses that same arithmetic as rows of shifted alphabets (Buffalo, slides 18–19).
In our worked example, A plus L gives L. The next message letter, T, uses E and becomes X. Then T uses M and becomes F. Notice that two identical message letters can produce different output letters because they meet different key letters (UCF, page 1). Repeat LEMON from the beginning after its fifth letter.
| Letter # | Input | Key | Shift | Output |
|---|---|---|---|---|
| 1 | A | L | +11 | L |
| 2 | T | E | +4 | X |
| 3 | T | M | +12 | F |
| 4 | A | O | +14 | O |
| 5 | C | N | +13 | P |
| 6 | K | L | +11 | V |
For encoding, find the key row and read the position under your plaintext letter. For decoding, find the ciphertext letter inside the key row, then read the heading at that position. These lookup instructions follow the addition rule above; you can check any trace row against the square. Our A–Z square was checked against the university arithmetic and CrypTool’s shifted-alphabet examples (CrypTool, encryption examples).
Open the full Vigenère square
| Key | ABCDEFGHIJKLMNOPQRSTUVWXYZ |
|---|---|
| A | ABCDEFGHIJKLMNOPQRSTUVWXYZ |
| B | BCDEFGHIJKLMNOPQRSTUVWXYZA |
| C | CDEFGHIJKLMNOPQRSTUVWXYZAB |
| D | DEFGHIJKLMNOPQRSTUVWXYZABC |
| E | EFGHIJKLMNOPQRSTUVWXYZABCD |
| F | FGHIJKLMNOPQRSTUVWXYZABCDE |
| G | GHIJKLMNOPQRSTUVWXYZABCDEF |
| H | HIJKLMNOPQRSTUVWXYZABCDEFG |
| I | IJKLMNOPQRSTUVWXYZABCDEFGH |
| J | JKLMNOPQRSTUVWXYZABCDEFGHI |
| K | KLMNOPQRSTUVWXYZABCDEFGHIJ |
| L | LMNOPQRSTUVWXYZABCDEFGHIJK |
| M | MNOPQRSTUVWXYZABCDEFGHIJKL |
| N | NOPQRSTUVWXYZABCDEFGHIJKLM |
| O | OPQRSTUVWXYZABCDEFGHIJKLMN |
| P | PQRSTUVWXYZABCDEFGHIJKLMNO |
| Q | QRSTUVWXYZABCDEFGHIJKLMNOP |
| R | RSTUVWXYZABCDEFGHIJKLMNOPQ |
| S | STUVWXYZABCDEFGHIJKLMNOPQR |
| T | TUVWXYZABCDEFGHIJKLMNOPQRS |
| U | UVWXYZABCDEFGHIJKLMNOPQRST |
| V | VWXYZABCDEFGHIJKLMNOPQRSTU |
| W | WXYZABCDEFGHIJKLMNOPQRSTUV |
| X | XYZABCDEFGHIJKLMNOPQRSTUVW |
| Y | YZABCDEFGHIJKLMNOPQRSTUVWX |
| Z | ZABCDEFGHIJKLMNOPQRSTUVWXY |
Can you decode Vigenère without the key?
Sometimes, if the message is long enough and uses a repeating key. Open No key? and press Estimate key and decode. The helper proposes a key for English text and puts its decoded message in the result box. Treat that as a best guess. Frequency analysis needs enough letters in each key position to expose a useful pattern (URI, cryptanalysis).
Our helper searches lengths 1–20, stopping earlier if a column would contain fewer than 10 letters. It refuses inputs with fewer than 40 A–Z letters. Those are local tool limits, not a mathematical guarantee. A long keyword can still defeat this small search, and a short message can have several plausible readings. The helper does not determine whether your input really is Vigenère.
Read the entire proposed message. One recognizable word is a reason to investigate, not proof. Compare up to five ranked guesses, try their keys in the ordinary decoder, and look for consistent sentences. If you have more ciphertext from the same message, paste it in before trying again. Keep a copy of the original so you can undo transcription changes.
What does index of coincidence tell you?
The index of coincidence, or IC, measures how often two letters picked from different positions in a sample match. English has uneven letter frequencies. Its IC is commonly approximated as 0.065, compared with about 0.0385 for uniformly distributed letters (URI, Friedman test). These are reference values, not thresholds that certify English.
For each possible key length, the helper deals letters into columns. With a five-letter key, positions 1, 6, and 11 share a column. A promising length leaves columns that resemble English shifted by a fixed amount (Buffalo, slides 20–24). The displayed IC is the average across those columns.
Our implementation tries every shift in each column and compares its letter counts with a rounded English frequency table (Buffalo, slide 13). It ranks the resulting keys using letter likelihood, closeness to the English IC reference, and a penalty for longer keys that could fit chance patterns. It reduces an exactly repeated proposed key, such as ABCABC, to ABC. The ranking is a heuristic rather than a confidence percentage.
How reliable is this no-key helper?
In our development test on 11 November 2026, we encoded four original English passages with six fixed keys of 3, 5, 7, 9, 12, and 20 letters. Each row below has 24 cases, using the first indicated number of A–Z letters. A success means the top guess recovered every plaintext letter, not merely the right key length.
| Text length | Recovered | Success rate |
|---|---|---|
| 50 letters | 5 / 24 | 20.8% |
| 100 letters | 10 / 24 | 41.7% |
| 250 letters | 17 / 24 | 70.8% |
| 500 letters | 22 / 24 | 91.7% |
| 1,000 letters | 24 / 24 | 100.0% |
This small, fixed test set is an illustration, not an expected success rate for your puzzle. It reuses passage prefixes across lengths and is not an independent evaluation corpus. Names, unusual vocabulary, other languages, transcription errors, and different key lengths may behave differently. Always inspect the suggested reading.
How can you combine Vigenère and Morse?
For a puzzle you design, first encode ATTACK with LEMON to get LXFOPV, then send those six ciphertext letters in Morse. The widget uses the international letter signals defined by (ITU-R M.1677-1, section 1). It plays the encrypted letters, so hearing it will not reveal ATTACK directly.
To solve this constructed clue, use the Morse code translator or the Morse code alphabet to recover the ciphertext, then return here with the keyword. If you are practicing reception, start with learning Morse by ear. The distinction between a signal alphabet and encryption is explained in Is Morse code a cipher?. For a different two-stage puzzle, try the Bacon cipher decoder.
Why is the decoded result still unreadable?
Check the keyword spelling, direction, and where the key starts. Then check whether the source consumed key letters at spaces. This page supports classical repeating-key Vigenère only. Autokey extends the key using message material instead of simply repeating the keyword (UCF, section 3.2). A different variant needs a different decoder.
Copy a short known example before entering the full clue. A missing letter can be easier to spot in the trace than in a long result. The tool does not repair missing characters, infer a custom alphabet, or identify the intended message from context. Use it for exercises and puzzles; do not rely on its best guess to protect private information.
Sources
- CIS3362: Polyalphabetic Ciphers, sections 3.1–3.2. University of Central Florida, Arup Guha, checked 11 November 2026.
- CSE664: Classical Ciphers, slides 13 and 18–24. University at Buffalo, Marina Blanton, Spring 2017; checked 11 November 2026.
- Vigenere Cipher Cryptanalysis. University of Rhode Island, checked 11 November 2026.
- Vigenère: encryption and alphabet rules. CrypTool, checked 11 November 2026.
- Recommendation ITU-R M.1677-1, International Morse code. ITU Radiocommunication Sector, October 2009.