Vigenere Cipher Calculator

Encrypt or decrypt alphabetic text with a repeating Vigenere key while optionally preserving spaces and punctuation.

934.0K uses Updated · 2026-05-21 Runs locally · zero upload
AD

How to Use Vigenere Cipher Calculator

Use the Vigenere Cipher Calculator to encrypt or decrypt alphabetic text with a repeating Vigenere key while optionally preserving spaces and punctuation.

  1. Prepare the input - Paste the plaintext or ciphertext you want to process. Choose encrypt when starting from readable text, or decrypt when starting from a Vigenere ciphertext.
  2. Choose the rule - Enter an alphabetic key such as LEMON, ORANGE, or a custom phrase. Non-letter characters in the key are ignored so only A through Z contribute shifts.
  3. Check the result - Decide whether to preserve non-letter characters. Keeping punctuation makes the result easier to read; removing it creates a continuous cipher stream.
  4. Use the output - Compare the output with the displayed formula so you can verify whether each plaintext letter moved forward or backward by the key letter shift.

Formula & Theory - Vigenere Cipher Calculator

The Vigenere Cipher Calculator uses these rules:

encryption: Ci = (Pi + Ki) mod 26
decryption: Pi = (Ci - Ki + 26) mod 26
key stream = cleaned key repeated across alphabetic characters

Vigenere is a polyalphabetic substitution cipher. Instead of shifting every letter by the same amount, it repeats a key and uses each key letter as a different Caesar shift. A key letter A means shift 0, B means shift 1, and Z means shift 25.

The calculator advances the key only when it processes a letter. If non-letter preservation is enabled, spaces and punctuation remain in place without consuming a key character. Case is preserved by applying the shift within the uppercase or lowercase alphabet range.

Use Cases for Vigenere Cipher Calculator

The Vigenere Cipher Calculator is most useful in these concrete workflows:

  • Solving classical cryptography exercises and historical cipher examples.
  • Demonstrating why repeated-key substitution is stronger than a single Caesar shift but still vulnerable to analysis.
  • Creating puzzle text where punctuation and spacing should remain readable.
  • Testing encryption and decryption symmetry with custom keys.

Frequently asked questions about Vigenere Cipher Calculator

Does the key repeat automatically?

Yes. The cleaned alphabetic key is repeated for as many letters as the message contains.

Are numbers encrypted?

No. The Vigenere algorithm here applies to letters; numbers and symbols can be preserved or ignored.

Is my data stored?

No. All calculations happen in your browser; nothing is sent to a server.