Tools
English

Neogie Vigenere · Word games

Vigenère Cipher: Encode, Decode and Find the Key

With the key, the message reads at once; without it, the tool suggests the most likely keys.

Settings

Everything happens in your browser: nothing you type is sent.

How does the Vigenère cipher work?

Every letter of the message is shifted as in the Caesar cipher, but by a number that changes each time: it is given by the matching letter of a key, repeated as often as needed. A counts as 0, B as 1, up to Z as 25.

With the key LEMON, “ATTACKATDAWN” becomes “LXFOPVEFRNHR”. The two Ts at the start, encrypted with E and then M, do not give the same letter.

Encrypting and decrypting

Enter the key in the settings, then type the message on either side. The key only moves on over the letters A to Z: digits, spaces, punctuation and accented letters stay as they are, unless you remove accents before encrypting.

Finding an unknown key

Paste the encrypted message without a key. For every key length up to 20 letters, the tool finds the shift that gives each column letter frequencies close to those of the page language, then ranks the resulting keys. The “Use” button applies the one you choose.

The method needs text: a few hundred letters give good results, a few words give none. A key as long as the message cannot be recovered.

A historical cipher

Long held to be unbreakable, it has been broken since the 19th century. It is for puzzles and study, not for protecting data: use modern encryption such as AES for that.

Frequently asked questions

Who invented this cipher?

It is named after Blaise de Vigenère, a 16th-century French diplomat, but the idea of a key using several alphabets had been described before him, notably by Giovan Battista Bellaso.

Why is the suggested key almost right?

With few letters, one column can mislead the statistics. If a word can be guessed, correct the wrong letter in the “Key” box.

Is a longer key safer?

Yes, it resists better, but only a random key as long as the message, used once, would be unbreakable.

Are my message or key sent anywhere?

No. Everything is computed in your browser, and the key is not saved.

Similar tools

Neogie BrailleBraille Translator: Text to Braille and BackType text to see it in braille, or paste braille signs to read them. Neogie A1Z26Letters to Numbers Converter (A=1, Z=26)Type words to get numbers, or paste numbers to read the words. Neogie SemaphoreSemaphore Flag Alphabet: Encode and DecodeType a message to see the flag positions, or tap the drawings to read it. Neogie AffineAffine Cipher: Encode and Decode OnlineChoose a and b, or paste an unknown message: the most likely keys are suggested. Neogie BaconBacon's Cipher: Encode and Decode (A and B)Five signs per letter: write a message or paste A and B groups to read it. Neogie CaesarCaesar Cipher: Encode and Decode OnlinePick a shift, or paste an unknown message and read all 25 attempts, ranked from the most to the least likely. Neogie PlayfairPlayfair Cipher: Encode and DecodeEnter a keyword: the square is drawn and the message is encrypted two letters at a time. Neogie SubstitutionSubstitution Cipher and Frequency AnalysisEncrypt with your own alphabet, or rebuild the alphabet of an unknown message letter by letter. Neogie TranspositionRail Fence and Scytale Transposition CipherThe letters do not change, they change places: pick the method and the key. Neogie AtbashAtbash Cipher: the Reversed Alphabet OnlinePaste your text on either side: the same operation encodes and decodes. Neogie MorseMorse Code Translator with SoundType a message to see and hear it in Morse, or paste dots and dashes to read them. Neogie PigpenPigpen (Masonic) Cipher: Encode and DecodeType a message to draw it in symbols, or tap the symbols to decipher it. Neogie SyllablesOnline syllable counter: poems, haiku, textsType or paste a text: syllables are counted as you go, line by line and word by word. Neogie RhymesRhyming Dictionary: Find Words That RhymeType a word and see the words that rhyme with it, for a poem, a song or a game. Neogie AnagramAnagram generator: all the words from a set of lettersType some letters: all the words you can form with them, from longest to shortest. Neogie IdentifyCipher Identifier: Which Code Is This?A mysterious message? Paste it: leads are listed from the most to the least likely. Neogie TilesBest words from letter tiles, with pointsEnter the letters on your rack: the possible words, ranked from most to least profitable. Neogie ROT13ROT13 and ROT47: Encode and Decode OnlineThe same operation encodes and decodes: paste your text on either side. Neogie GuessWord of the Day Solver: right and wrong letter positionsEnter your guesses and their colours: the tool keeps only the words that are still possible. Neogie CrosswordCrossword and arrow puzzle solver by known lettersType the letters you have and one question mark per empty cell: the matching words appear.