Vigenère Cipher

Encode and decode Vigenère text with a keyword.

Ciphertext
UTF-8

Ready

How the Vigenère cipher works

Example Attack at dawn Lxfopv ef rnhr
  1. A keyword repeats under your message, letter by letter.
  2. Each plaintext letter shifts by the position of the keyword letter above it.
  3. Decoding shifts backward using the same keyword.

Why Vigenère defeated frequency analysis

Because the shift changes with every letter, the same plaintext letter can become different ciphertext letters. The uniform letter patterns that break Caesar ciphers simply do not appear, which is why Vigenère was known as "the indecipherable cipher" for centuries.

The keyword is the secret

Anyone who knows the keyword can decode the message instantly. Short keywords repeat and eventually leak patterns; long random keywords were the foundation of one-time pads, the only provably unbreakable cipher.

Related tools

Frequently asked questions

What is a Vigenère cipher?

It is a polyalphabetic cipher that shifts each letter by a different amount, determined by a keyword. The keyword repeats across the message.

Is my input uploaded?

No. EncodeLab performs this conversion locally in your browser. Your input is not sent to an EncodeLab server or stored by us.

Why is Vigenère stronger than Caesar?

A Caesar cipher uses one shift for the whole message. Vigenère changes the shift with every letter, so identical plaintext letters can encode differently and frequency analysis stops working.

How do I decode a Vigenère message?

Enter the same keyword used to encode it. Decoding shifts each letter backward by the keyword position instead of forward.