Vigenère Cipher

Vigenère Cipher

Encode and decode text with the classic Vigenère cipher. Each letter is shifted by a letter of your keyword, so the same letter can become a different letter each time it appears.

Your encoded or decoded text will appear here.

About the Vigenère Cipher

The Vigenère cipher is a classic method of encryption from the 16th century. It uses a keyword to shift each letter of the message: the first keyword letter shifts the first message letter, the second shifts the second, and so on, repeating the keyword until the whole message is done. Each keyword letter stands for a shift, with A meaning a shift of 0, B a shift of 1, and Z a shift of 25.

Because the shift changes with every letter, the same plain letter can turn into a different cipher letter each time it appears, which makes the cipher much harder to break than a simple Caesar shift. For example, HELLO with the keyword KEY becomes RIJVS.

How to use

  1. Type or paste your text in the Text box.
  2. Enter a keyword using letters only. Spaces and other characters in the keyword are ignored.
  3. Choose Encode to encrypt or Decode to decrypt, then click the main button.
  4. Use Copy result to copy the output, or Load example to see a working example.

Key features

  • Encode and decode with any keyword you choose
  • Letters keep their case, and numbers, spaces, and punctuation are left unchanged
  • The keyword repeats automatically for long messages
  • Copy result and clear actions built in
  • Runs entirely in your browser with no signup

Frequently asked questions

What keyword should I use?

Any word made of letters works. Longer keywords are stronger, because the shift pattern takes longer to repeat. A keyword of one letter is the same as a Caesar cipher.

Do spaces and punctuation change?

No. Only the letters A to Z are shifted. Spaces, numbers, punctuation, and line breaks stay exactly where they are, and upper and lower case letters stay in their own case.

How do I decode a message?

Paste the encoded text, enter the same keyword that was used to encode it, choose Decode, and click the button. Decoding with a different keyword gives the wrong text.

Is the Vigenère cipher secure for real secrets?

No. It is a historical cipher and a fun puzzle, but modern computers can break it easily. Never use it to protect real passwords, private messages, or sensitive data.

What happens if my keyword has numbers or spaces?

Only the letters in the keyword are used. Numbers, spaces, and symbols are ignored, so the keyword “KEY 123” works exactly like “KEY”.

Free to use, no signup needed. This tool runs entirely in your browser — your data never leaves your device.