Vigenere Cipher Online — Encrypt & Decrypt With the Vigenere Cipher
CodexFuse Team · 2026-10-13T18:30:26.887Z · 6 min read min read
Learn how the Vigenere cipher works, encrypt and decrypt with the keyword LEMON, and use the free online tool, plus why it is not safe for real secrets.
The Vigenere cipher is a polyalphabetic substitution cipher that encrypts a message with a repeating keyword, so each plaintext letter can shift by a different amount. It is a teaching and puzzle cipher, not a way to protect real secrets.
This guide explains the Vigenere cipher from first principles. You will learn how the tabula recta works, how to encrypt and decrypt by hand, how to use an online tool, and how to pick a stronger keyword. If you only need a result, open the free online Vigenere cipher tool and test a message there.
What Is the Vigenere Cipher?
The Vigenere cipher is a polyalphabetic substitution cipher that encrypts each letter with a different Caesar shift chosen by a repeating keyword, so identical plaintext letters can become different ciphertext letters. Because the shift changes with every position, simple frequency analysis fails. It is a teaching and puzzle cipher, not a modern security tool.
The word polyalphabetic means many alphabets. A Caesar cipher uses one shifted alphabet. The Vigenere cipher uses up to 26, and the keyword decides which alphabet applies to each letter. In a Caesar cipher, the letter E always becomes the same ciphertext letter. In a Vigenere cipher, each E can become a different letter, so a reader counting frequencies sees a flattened distribution.
The keyword is the secret. Anyone who knows the keyword and the method can decrypt the message. Modern cryptography still follows that principle: the algorithm can be public, but the key must stay private.
How Does the Vigenere Cipher Work?
The Vigenere cipher works by pairing each plaintext letter with a keyword letter and shifting it forward in the alphabet by that keyword letter's value, with A equal to zero. The keyword repeats to match the message length, and decryption reverses each shift. A tabula recta, a square of shifted alphabets, shows every possible pairing. For more on this topic, see our guide on Affine Cipher Online.
Start by converting letters to numbers. A becomes 0, B becomes 1, and so on through Z, which becomes 25. To encrypt, add the plaintext and keyword numbers, subtracting 26 if the sum reaches 26. To decrypt, subtract instead, adding 26 if the result goes below zero.
The tabula recta, in plain terms
The tabula recta is a square table with 26 rows, one for each possible shift. The first row is the plain alphabet, and each row below shifts the alphabet one step further. To encrypt a letter, find the row for the keyword letter and the column for the plaintext letter. The letter where they meet is the ciphertext letter.
How Do You Encrypt a Message With a Keyword?
Write the plaintext, repeat the keyword beneath it until it matches the message length, then add each plaintext letter to the keyword letter below it, wrapping past Z back to A. The resulting letters are the ciphertext. Keep the keyword private, because anyone who knows it can reverse the process.
A fictional worked example with the keyword LEMON
The following example is fictional and is included only to show the steps. Take the fictional plaintext ATTACKATDAWN and the fictional keyword LEMON. Repeat the keyword beneath the message until it lines up: LEMONLEMONLE. Pair the letters and add them: A plus L gives L, T plus E gives X, the second T plus M gives F, and so on. The ciphertext is LXFOPVEFRNHR.
Decryption reverses the same steps. Write the ciphertext, repeat the keyword beneath it, and subtract each keyword letter from the ciphertext letter above it, adding 26 when the result goes below zero. The subtraction returns the original plaintext.
- Write the plaintext in uppercase and remove spaces for the hand calculation.
- Repeat the keyword beneath it until it matches the message length.
- Add each pair of letters, wrapping past Z back to A, to form the ciphertext.
- To decrypt, subtract the keyword letters from the ciphertext letters instead.
Keyword Strength, and What Still Breaks the Cipher
A longer keyword that does not spell a real word makes the cipher harder to analyse, because the shift pattern repeats less often. A short keyword repeats constantly, and the repetition leaks the keyword length to anyone studying the ciphertext. You may also like our in-depth guide to Beaufort Cipher Online.
Even with a decent keyword, the Vigenere cipher is breakable, and it has been breakable for a long time. Analysts can find the keyword length by looking for repeated sequences in the ciphertext, then split the message into groups that each behave like a Caesar cipher and solve each group separately. For that kind of protection, use a strong random password generator and modern encryption, and treat classical ciphers as learning tools only.
Where the Vigenere cipher still belongs
- Classroom lessons about polyalphabetic ciphers and key repetition.
- Puzzle hunts and escape-room style challenges built from fictional messages.
- History lessons about how cryptography developed before computers.
How Do You Use the Vigenere Cipher Tool?
The tool runs in your browser and needs no sign-up. Open it, choose encrypt or decrypt, enter your message and keyword, and read the result. The steps below match what you will see on the page. Use a fictional message for practice, and keep the keyword private.
- Open the Vigenere cipher tool and choose encrypt or decrypt.
- Enter your message, using your own fictional text for practice.
- Enter the keyword, and keep the keyword private if the message matters to you.
- Copy the result, and use the same keyword to reverse the process and check it.
Work with fictional messages when you practice. Do not paste real secrets into any online tool, including this one. A classical cipher cannot protect a real password or a real business message. If you enjoy classical ciphers, compare this one with the Playfair cipher and the Caesar cipher to see how different key designs change the puzzle. For the keyless extreme — a fixed mirror alphabet with no keyword at all — try the Atbash cipher.
Use the Vigenere tool to learn how keyword ciphers work, and use modern encryption and strong passwords for anything that must actually stay private.
Get Started with CodexFuseAnd for the bit-level take on a keyed cipher, run the same message through XOR encryption online: it XORs each character against a cycling key instead of shifting letters, then shows the ciphertext as hex — decrypting uses the exact same operation.
Frequently Asked Questions
What is the Vigenere cipher?
The Vigenere cipher is a polyalphabetic cipher that encrypts each letter with a different shift chosen by a repeating keyword. Identical plaintext letters can become different ciphertext letters. Find hundreds more practical how-tos on our blog.
Is the Vigenere cipher secure?
No. The Vigenere cipher is not secure for real secrets. Analysts can recover the keyword length from repeated sequences. Use AES-256 for anything that must stay private.
How do you decrypt a Vigenere cipher?
Repeat the keyword beneath the ciphertext, then subtract each keyword letter from the ciphertext letter above it, adding 26 when the result goes below zero.
What is the tabula recta?
The tabula recta is a square table of 26 shifted alphabets. The row for the keyword letter and the column for the plaintext letter meet at the ciphertext letter.
What keyword should I use for a puzzle?
Use a keyword that is long, not a common word, and known only to the people solving the puzzle. A longer keyword repeats less often, which makes the puzzle harder.
Learn it well, enjoy it as a puzzle, and keep real secrets behind modern encryption.















