Skip to content

Menu

Vigenère Cipher

Encrypt/decrypt with Vigenère cipher

Runs entirely in your browserCrypto & HashingFree, no sign-up
Loading tool

01What is Vigenère Cipher?

The Vigenère cipher shifts each letter of a message by an amount set by a repeating keyword. A key letter of A shifts by 0, B by 1, and so on up to Z at 25. It's the classic polyalphabetic cipher, and this tool lets you run it both ways and watch every step. Here's how this version handles input. The keyword is upper-cased and stripped to letters only, so lemon 2! behaves exactly like LEMON. If nothing is left after stripping, the text comes back unchanged. In the message, uppercase and lowercase letters keep their case. Spaces, digits and punctuation pass straight through, and they don't use up a key letter. Most textbook examples follow that convention. It means Hello World with KEY shifts the W by K, carrying on the cycle from where hello stopped. Only the plain A to Z letters are shifted. Accented letters like é are treated as punctuation and left alone. Decryption runs the same shifts backwards. The result updates as you type, so you can flip between Encrypt and Decrypt and see the change instantly. The standard worked example is ATTACKATDAWN with the keyword LEMON. Encrypt it and you get LXFOPVEFRNHR. The first letter, A, meets key letter L, a shift of 11, and becomes L. The second, T, meets E, a shift of 4, and becomes X. Decrypt LXFOPVEFRNHR with LEMON and ATTACKATDAWN comes back. Below the result, a Step-by-Step table lists each letter, the key letter applied, the shift amount and the output letter. For long messages it shows the first 30 steps. You can also open the full 26 by 26 tabula recta, the grid people used to do this by hand. Rows whose letters appear in your keyword are highlighted. Copy Result puts the output on your clipboard. Your message and keyword are processed in the page itself, and nothing about them is saved or uploaded. Keep the limits in mind. Vigenère is a historical cipher and offers no real protection. Kasiski examination and frequency analysis recover the key from enough ciphertext. The tool also doesn't try to crack ciphertext for you. You need the keyword to decrypt.

Teachers, students and puzzle makers who want to see exactly how each letter of a Vigenère message is shifted. The tool runs entirely in your browser, so your data never leaves your device.

02How to use Vigenère Cipher

  1. Type your message into Input Text.
  2. Enter a Keyword. Only its letters are used.
  3. Choose Encrypt or Decrypt under Mode.
  4. Read the Result, then click Copy Result.
  5. Check the Step-by-Step table, or click Show Vigenère Table (Tabula Recta) to see the full grid.

03Worked examples

Input: ATTACKATDAWN, keyword LEMON, Encrypt
Result: LXFOPVEFRNHR
The textbook example. A plus L (shift 11) gives L, T plus E (shift 4) gives X.
Input: LXFOPVEFRNHR, keyword LEMON, Decrypt
Result: ATTACKATDAWN
Decrypt reverses each shift with the same keyword.
Input: Hello World, keyword KEY, Encrypt
Result: Rijvs Uyvjn
Case is kept and the space doesn't use a key letter, so W is shifted by K.
Input: Meet at 9pm!, keyword K3Y, Encrypt
Result: Wcor kr 9zk!
The 3 is dropped from the keyword, so it acts as KY. The 9 and ! pass through.
Input: Hello, keyword 123, Encrypt
Result: Hello
The keyword has no letters left after stripping, so the text is returned unchanged.

04Common use cases

  • Solving or building a Vigenère stage in a CTF, escape room or puzzle hunt when you already know or suspect the keyword
  • Teaching polyalphabetic substitution in a cryptography class with the step table on the projector
  • Checking hand-worked homework answers letter by letter against the Step-by-Step table
  • Adding a cipher clue to a game, geocache or ARG and testing that it decrypts cleanly
  • Showing how a one-letter keyword reduces Vigenère to a Caesar shift
  • Demonstrating why classical ciphers fail before moving on to modern encryption

05Tips

  • Because spaces and punctuation don't advance the key, removing spaces before encrypting gives different ciphertext. Agree on the convention with whoever decrypts.
  • Digits in the keyword are silently dropped, so K3Y works as KY. Check the Key column in the step table if a result looks off.
  • A one-letter keyword turns this into a Caesar cipher. A keyword of all A's leaves the text unchanged.
  • Short, repeated keywords leak patterns. A random key as long as the message, used once, becomes a one-time pad.

06Related concepts

polyalphabetic cipher, tabula recta, Caesar cipher, Kasiski examination, classical cryptography.

Frequently Asked Questions

What is Vigenère Cipher?

Vigenère Cipher is a free, browser-based developer tool on AIDToolStack. Encrypt/decrypt with Vigenère cipher It requires no installation or sign-up and works entirely in your browser.

Is Vigenère Cipher free to use?

Yes. No sign-up, no fees and no usage cap.

Does Vigenère Cipher store my data?

No. It runs in your browser; nothing is uploaded.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe