BYTETOOLS

Vigenère Cipher Encoder & Decoder

Encode and decode text with the Vigenère polyalphabetic cipher using a keyword, with a live view of how the repeating key aligns to your message.

Result

Rijvs, Uyvjn!

Key alignment

HK
eE
lY
lK
oE
, 
  
WY
oK
rE
lY
dK
! 
  • Keyword-based polyalphabetic encryption
  • Encode and decode modes
  • Shows the repeating key aligned to your text
  • Skips non-letters so the key stays in sync
  • Preserves case and punctuation
  • Private, in-browser calculation

How to use the Vigenère Cipher Encoder & Decoder

  1. 1

    Choose Encode or Decode.

  2. 2

    Enter a keyword made of letters.

  3. 3

    Type or paste your message into the text box.

  4. 4

    Read the transformed text and the key-alignment view below.

  5. 5

    Copy the result to your clipboard.

About the Vigenère Cipher Encoder & Decoder

The ByteTools Vigenère Cipher encrypts and decrypts text using a keyword rather than a single shift, making it far stronger than a plain Caesar cipher. Each letter of your keyword sets a different shift, so the same plaintext letter can encode to many different ciphertext letters.

Enter a keyword, choose encode or decode, and the tool applies the classic Vigenère square for you. A key-alignment view shows how the repeating keyword lines up beneath your message, making it easy to teach and understand the polyalphabetic method.

All computation runs locally in your browser with JavaScript, so your message and keyword are never uploaded or stored. Copy the result to your clipboard whenever you are ready.

Frequently asked questions

How does the Vigenère cipher work?

The Vigenère cipher uses a keyword to shift each letter by a varying amount. The first letter of the keyword shifts the first letter of the message, the second shifts the second, and the keyword repeats across the whole text. This mix of shifts is called a polyalphabetic cipher.

How do I decode a Vigenère message?

Switch to decode, enter the same keyword used to encrypt, and paste the ciphertext. The tool subtracts each keyword shift to recover the original letters. Without the correct keyword the message cannot be read directly.

What makes a good Vigenère keyword?

Longer keywords with no repeating pattern are stronger, because a longer key means the shift pattern repeats less often and is harder to detect. A single-letter keyword just reduces the cipher to a plain Caesar shift.

What happens to spaces and punctuation?

This tool leaves spaces, digits and punctuation unchanged and does not advance the keyword on them, so the key stays aligned only to the letters. That keeps encoding and decoding perfectly reversible.

Is the Vigenère cipher secure today?

It resisted casual codebreaking for centuries and was once called 'le chiffre indéchiffrable', but it can be broken with frequency analysis such as the Kasiski examination. It is excellent for learning cryptography but not for protecting modern secrets.

Related tools