Vigenere Cipher Encoder
Encrypt text with the classic Vigenère cipher, which shifts each letter by the next letter of a keyword. Type the keyword and your message to get the cipher text.
Input
Output
Guide
What is the Vigenère cipher?
The Vigenère cipher shifts each letter of a message by a different amount, taken from a keyword. Each keyword letter stands for a shift, A for 0, B for 1 and so on up to Z for 25, and the keyword repeats along the message. Giovan Battista Bellaso described it in 1553, and it was later named after Blaise de Vigenère. Long called the indecipherable cipher, it was broken in the 19th century, and Friedrich Kasiski published the method in 1863. Today it's a classic of puzzle hunts, escape rooms and cryptography lessons.
Tool description
Type a Keyword, then type or paste your message into the Plain text box, and the cipher text appears in the Cipher text box as you type, ready to copy. The Keyword field keeps letters only and turns them upper case, so lemon tree becomes LEMONTREE. Until there's a keyword, the tool asks for one. Only the letters A to Z are shifted, and they keep their case. Spaces, digits, punctuation and letters outside A to Z, such as é, stay as they are and don't use up a keyword letter. To decrypt a message, press the swap button between the boxes, which also moves the result into the input, or use the Vigenere Cipher Decoder.
How the keyword works
With the keyword LEMON, the first letter moves 11 places (L), the second 4 (E), the third 12 (M), and so on. After N, the keyword starts over, and it skips the spaces:
Plain text Picnic at noon
Keyword LEMONL EM ONLE
Cipher text Amobvn ef bbzrExamples
| Plain text | Keyword | Cipher text |
|---|---|---|
Plant the tulips today |
GARDEN |
Vlrqx gne kxpvvs krhne |
Happy birthday! |
CAKE |
Jazta bsvvhnea! |
See you at the park at noon |
LEMON |
Diq mbf ef hup tmfx lx zcby |
Good to know
- A one-letter keyword makes it a Caesar cipher:
Dshifts every letter by 3, andAleaves the text as it is. - A longer keyword is harder to break, but the Vigenère cipher can't keep real secrets: in a long message, the repeats of the keyword give it away.
- Accented letters in the keyword are dropped, not turned into plain letters, so
cafégives the keywordCAF.