Vigen\u00e8re Cipher

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.

Example (key LEMON)

PlaintextKeyCiphertext
ATTACKATDAWNLEMONLEMONLELXFOPVEFRNHR

When to use it

  1. Solve or set a puzzle hunt or escape-room clue.
  2. Teach classical cryptography.
  3. Decode a CTF challenge.
  4. Compare Vigenère with the Caesar cipher.

How to Use

  1. Choose encrypt or decrypt.
  2. Enter the keyword.
  3. Type your text and copy the result.

Features

  1. Encrypt and decrypt
  2. Autokey variant
  3. Keeps case and punctuation
  4. Key alignment on letters only
  5. Swap output to input
  6. Runs in your browser

FAQs

How does the Vigenère cipher work?

Each letter is shifted by the corresponding keyword letter, repeating the keyword along the message.

What is the autokey variant?

After the keyword, the message itself becomes the key, so there's no repeating pattern.

Is Vigenère secure?

No. Kasiski examination and frequency analysis break it; use it for puzzles, not secrets.

What happens to spaces and numbers?

They pass through unchanged and don't use up the keyword.

Is my text sent anywhere?

No. It's processed in your browser.

Technical Details

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.

Security Tools

Security Tools

  • TOTP Generator
  • Passphrase Generator
  • JWT Generator & Decoder
  • CSP Generator
  • security.txt Generator
  • AES Encryption
  • Bcrypt Hash Generator
  • BIP39 Mnemonic Generator