Below you find a key length estimator for cipher texts, with an honest note on how little it can do with short texts.
How the Vigenère cipher works
The keyword is written over the message again and again. Each keyword letter says how far to shift the letter under it, with A meaning no shift, B one place, C two places and so on. With the keyword LEMON, “ATTACKATDAWN” becomes “LXFOPVEFRNHR”: A + L = L, T + E = X, T + M = F, A + O = O, C + N = P, then the keyword starts again.
In the table (the tabula recta) the row belongs to the key letter and the column to the plain letter. The field where they meet is the cipher letter. To decrypt, find the key letter in the left column, run along its row to the cipher letter and read the plain letter at the top of that column.
In this tool the keyword moves on only for letters. Spaces, digits and punctuation do not use up a key letter and are copied unchanged. Some books count the spaces too, so a text from another source may need “Letters only” to match.
How to crack a Vigenère cipher
The same plain letter turns into different cipher letters, so a simple letter count no longer shows E. The way in is the key length. If it is 5, then every fifth letter was shifted by the same key letter, and each of those five columns is just a Caesar cipher.
Two methods find the length. The Kasiski test looks for sequences of three or more letters that appear twice: the distance between them is often a multiple of the key length. The index of coincidence measures how uneven the letter counts are. For the right length each column looks like ordinary language and the index rises to about 0.067 in English, while a wrong length stays near the 0.038 of random letters.
The estimator below does both and then guesses each key letter by comparing letter counts. This needs text: as a rule of thumb you want at least ten to twenty letters for every letter of the key. With less, the numbers are mostly chance, and the page says so.
A short history of the Vigenère cipher
Every statement comes with its source and the exact words.
Giovan Battista Bellaso described it first, in 1553. It resisted every attempt to break it until 1863, three centuries later.
Source
Wikipedia (en), „Vigenère cipher“
First described by Giovan Battista Bellaso in 1553, the cipher is easy to understand and implement, but it resisted all attempts to break it until 1863, three centuries later.
In the 19th century it was wrongly credited to Blaise de Vigenère and so got its present name.
Source
Wikipedia (en), „Vigenère cipher“
In the 19th century, the scheme was misattributed to Blaise de Vigenère (1523–1596) and so acquired its present name.
The tabula recta, the table of letters that goes with this cipher, was invented by Johannes Trithemius.
Source
Wikipedia (en), „Vigenère cipher“
invented the tabula recta, a critical component of the Vigenère cipher.
Friedrich Kasiski was the first, in 1863, to publish a general method for breaking it.
Source
Wikipedia (en), „Vigenère cipher“
In 1863, Friedrich Kasiski was the first to publish a general method of deciphering Vigenère ciphers.
Frequently asked questions
What keyword should I use?
Any word or phrase made of letters. A longer keyword is harder to crack. A keyword of one letter is just a Caesar cipher. The tool shows the key it actually uses, with umlauts written out and everything but letters removed.
Why is it called the Vigenère cipher if Vigenère did not invent it?
The name goes back to a 19th century mix-up. The history section below gives the sources.
Why does counting letters not work on it?
Each plain letter is shifted by a different key letter along the text, so the counts are spread out and E no longer stands out. You have to split the text into columns first.
How can I decrypt a Vigenère text without the key?
Paste the cipher text, open “Estimate the key length” and read the best length. The page then suggests a keyword from the letter counts of each column. Try it and read the result. It works well for long texts and poorly for short ones.
Is my text sent to a server?
No. Everything is worked out in your browser. The share link contains the keyword and settings, but never the text.
To recognise the plain text when cracking, the tool uses the most common words from wordfreq (Robyn Speer, CC BY-SA 4.0).




