Vigenère Cipher
Vigenère Cipher
Encode and decode text with the classic Vigenère cipher. Each letter is shifted by a letter of your keyword, so the same letter can become a different letter each time it appears.
About the Vigenère Cipher
The Vigenère cipher is a classic method of encryption from the 16th century. It uses a keyword to shift each letter of the message: the first keyword letter shifts the first message letter, the second shifts the second, and so on, repeating the keyword until the whole message is done. Each keyword letter stands for a shift, with A meaning a shift of 0, B a shift of 1, and Z a shift of 25.
Because the shift changes with every letter, the same plain letter can turn into a different cipher letter each time it appears, which makes the cipher much harder to break than a simple Caesar shift. For example, HELLO with the keyword KEY becomes RIJVS.
How to use
- Type or paste your text in the Text box.
- Enter a keyword using letters only. Spaces and other characters in the keyword are ignored.
- Choose Encode to encrypt or Decode to decrypt, then click the main button.
- Use Copy result to copy the output, or Load example to see a working example.
Key features
- Encode and decode with any keyword you choose
- Letters keep their case, and numbers, spaces, and punctuation are left unchanged
- The keyword repeats automatically for long messages
- Copy result and clear actions built in
- Runs entirely in your browser with no signup
Frequently asked questions
Any word made of letters works. Longer keywords are stronger, because the shift pattern takes longer to repeat. A keyword of one letter is the same as a Caesar cipher.
No. Only the letters A to Z are shifted. Spaces, numbers, punctuation, and line breaks stay exactly where they are, and upper and lower case letters stay in their own case.
Paste the encoded text, enter the same keyword that was used to encode it, choose Decode, and click the button. Decoding with a different keyword gives the wrong text.
No. It is a historical cipher and a fun puzzle, but modern computers can break it easily. Never use it to protect real passwords, private messages, or sensitive data.
Only the letters in the keyword are used. Numbers, spaces, and symbols are ignored, so the keyword “KEY 123” works exactly like “KEY”.
