Vigenère Cipher
Encode or decode text with the Vigenère cipher, a polyalphabetic substitution that shifts each letter by an amount taken from a repeating keyword.
This guide is not yet available in your language and is shown in English.
Tool guide
What this tool does
Vigenère Cipher encrypts text by shifting each letter using a different Caesar shift for every position, taken from a repeating keyword rather than one fixed shift. This historically resisted simple frequency analysis far better than a plain Caesar cipher, since the same plaintext letter can map to different ciphertext letters depending on its position.
For centuries the Vigenère cipher was considered unbreakable, earning the nickname "le chiffre indéchiffrable" (the indecipherable cipher), because unlike a plain Caesar cipher it does not use the same shift for every letter: each letter of a repeating keyword determines a different shift for the corresponding position in the message.
This tool applies that keyword-driven shifting to any pasted text: the keyword repeats across the whole message (LEMON becomes LEMONLEMONLEMON... to match the message length), and each letter of the message is shifted by the alphabet position of the corresponding keyword letter. Spaces and punctuation pass through unchanged and do not consume a position in the keyword, so the keyword only advances across actual letters.
How to use Vigenère Cipher
- Paste or type the text you want to encode or decode.
- Choose Encode or Decode.
- Enter a Keyword made of letters only.
- Read the resulting ciphertext or plaintext.
- Use the swap button to quickly check that decoding the output with the same keyword returns your original text.
Tips for better results
- The same keyword must be used to decode a message that was encoded with it; a different keyword will produce nonsense, not an error message.
- A longer, less predictable keyword makes the cipher harder to break by classical techniques like the Kasiski examination, which looks for repeating patterns to estimate the keyword length.
- Non-letter characters don’t consume a position in the keyword, so punctuation and spacing in your message won’t shift the keyword’s alignment with the letters around them.
- Despite its historical reputation, the Vigenère cipher is fully breakable with modern cryptanalysis and computing power; treat it as a historical and educational cipher, not real security.
Common use cases
- Solving or setting a Vigenère cipher puzzle for a game, escape room or classroom cryptography lesson.
- Learning how polyalphabetic substitution improves on a simple single-shift Caesar cipher.
- Demonstrating classical cryptanalysis techniques, like the Kasiski examination, by trying to break a Vigenère-enciphered message.
- Lightly obscuring non-sensitive text for a puzzle, not for genuine confidentiality.
Common mistakes to avoid
- Using the Vigenère cipher for real security; it is fully breakable today and should be treated as a historical or educational tool only, never for genuinely sensitive data.
- Entering a keyword with non-letter characters; only letters contribute to the shift, so numbers or symbols in the keyword field are stripped out automatically.
- Mixing up encode and decode with a mismatched keyword, which produces unreadable output rather than a clear error, since any text is technically valid input.
Frequently asked questions
How is the Vigenère cipher different from a Caesar cipher?
A Caesar cipher applies one fixed shift to every letter, while the Vigenère cipher applies a different shift to each letter, taken from the corresponding letter of a repeating keyword, which makes simple frequency analysis far less effective against it.
What happens to spaces and punctuation?
They pass through completely unchanged and do not advance the keyword’s position, so only the letters in your message are shifted and consume keyword positions.
Is the Vigenère cipher secure today?
No, despite its historical reputation as unbreakable, it is fully breakable with modern cryptanalysis techniques and computing power; it should be used for puzzles and education, not real confidentiality.
Does the keyword case matter?
No, the keyword is treated case-insensitively for determining each shift amount, though the message’s own letter case is preserved in the output.
Feedback & suggestions
Help us improve Vigenère Cipher. We read every message.