100% free · Runs 100% in your browser · No signup needed
Formula: Ci = (Pi + Ki) mod 26 with A=0. Letter case is preserved, non-letters pass through unchanged, and the keyword repeats over letters only.
Try the classic example: key LEMON, plaintext ATTACKATDAWN → LXFOPVEFRNHR
The Vigenère cipher is one of the most famous encryption methods in history — a polyalphabetic substitution cipher that uses a repeating keyword to encrypt a message. For roughly 300 years it was considered unbreakable, earning the nickname "le chiffre indéchiffrable" ("the indecipherable cipher"). Today we know better, which makes it a perfect tool for learning how cryptography works: simple enough to do by hand, rich enough to teach the ideas behind real ciphers.
The Vigenère Cipher tool on fisthost.com/tools lets you encrypt and decrypt messages with any keyword, right in your browser. It preserves letter case, passes non-letters through unchanged, and even explains the underlying square so you can follow along by hand.
The cipher is built on the tabula recta — a 26×26 grid where each row is the alphabet shifted by one more position. Encryption works letter by letter: for each plaintext letter, find the row given by the current keyword letter and the column given by the plaintext letter. Mathematically, with A=0 through Z=25:
Ci = (Pi + Ki) mod 26
Decryption reverses it: Pi = (Ci − Ki) mod 26. The keyword repeats as needed, so keyword letter Ki cycles through the key. Because the shift changes with every letter, the same plaintext letter encrypts to different ciphertext letters — that is what makes it polyalphabetic, and what defeated the frequency analysis that breaks simple substitution ciphers.
This is the classic textbook example. Align the repeating key under the plaintext:
| Plaintext | A | T | T | A | C | K |
|---|---|---|---|---|---|---|
| Key | L | E | M | O | N | L |
| Numbers | 0+11 | 19+4 | 19+12 | 0+14 | 2+13 | 10+11 |
| mod 26 | 11 | 23 | 5 | 14 | 15 | 21 |
| Ciphertext | L | X | F | O | P | V |
ATTACK with key LEMON becomes LXFOPV. Notice the two T's became X and F — different ciphertext for the same letter, the signature of polyalphabetic encryption. Try it in the tool and then decrypt LXFOPV with the same key to watch it reverse.
This is important: the Vigenère cipher is NOT secure by modern standards. Kasiski examination and Friedman analysis break it reliably whenever the ciphertext is long enough, and short keys fall to brute force. Never use it to protect real secrets, passwords, or sensitive communications.
So what is it good for? Plenty:
For anything that actually needs protection, use modern, vetted tools — like the Bcrypt Hash Generator for password hashing — never a classroom cipher.
| Caesar Cipher | Vigenère Cipher | |
|---|---|---|
| Type | Monoalphabetic (one shift) | Polyalphabetic (many shifts) |
| Key | A single number | A keyword, repeated |
| Same letter → | Always the same ciphertext letter | Different ciphertext letters |
| Broken by | Simple frequency analysis / brute force (25 tries) | Kasiski / Friedman analysis (needs longer text) |
| Era | Ancient Rome | Renaissance, trusted for ~300 years |
Try both side by side: the Caesar Cipher shows the simplest possible substitution, and this tool shows the historical leap forward.
Fascinated by ciphers and thinking of building your own crypto playground, puzzle site, or coding blog? FistHost shared hosting starts at just $0.99/month, with a free domain included on the annual plan. Reliable, affordable hosting gives your experiments a permanent home on the web.
No — not by modern standards. It is vulnerable to Kasiski and Friedman analysis and should be used for education and puzzles only, never for real secrets.
Because it defeats simple frequency analysis: the same plaintext letter encrypts to different ciphertext letters. It took the insight of analyzing repeated fragments to recover the key length before frequency analysis could be applied per alphabet.
No. Encryption and decryption run entirely in your browser via JavaScript. Nothing is uploaded or stored.
They pass through unchanged. Only the letters A–Z (in either case) are transformed, and case is preserved.
Blaise de Vigenère was a 16th-century French diplomat and cryptographer. The keyword cipher named for him was actually first described by Giovan Battista Bellaso in 1553 — a fun historical footnote the tool's article preserves.
Continue your cryptography tour: the Caesar Cipher for the classical starting point, the Morse Code Translator for signaling history, the Bcrypt Hash Generator for how passwords are really protected today, and the JWT Generator for modern web tokens.
From puzzle blogs to full web applications, every project deserves dependable hosting. FistHost offers shared hosting from $0.99/month with a free domain on annual plans — get online today with hosting that is fast, affordable, and backed by real support.
No reviews yet. Be the first to review this tool!
Reviews are protected by captcha and moderated before they appear.