Encrypt and decrypt messages with the Vigenère cipher, the classic 16th-century polyalphabetic cipher. Enter a keyword, type or paste your text, and switch between encrypting and decrypting — with an autokey option. Case and punctuation are kept so messages stay readable.
| Plaintext | Key | Ciphertext |
|---|---|---|
| ATTACKATDAWN | LEMONLEMONLE | LXFOPVEFRNHR |
Each letter is shifted by the corresponding keyword letter, repeating the keyword along the message.
After the keyword, the message itself becomes the key, so there's no repeating pattern.
No. Kasiski examination and frequency analysis break it; use it for puzzles, not secrets.
They pass through unchanged and don't use up the keyword.
No. It's processed in your browser.
Each letter is shifted by the matching letter of the keyword, with A meaning a shift of 0 and Z a shift of 25, wrapping around the alphabet; decryption subtracts the shift. Upper and lower case are preserved, and characters outside A–Z — spaces, digits, punctuation, accented letters — are copied unchanged without advancing the keyword, so the key stays aligned with the letters. Non-letters in the keyword are ignored. In the autokey variant the keyword is used once and then continues with the plaintext itself, which removes the repeating period that makes ordinary Vigenère easy to break.