▶ TrainingGet Pro

Vigenère Cipher

The Vigenère cipher uses a keyword to give each letter a different shift. This tool encodes, decodes and can even hunt for a missing key.

Open the Vigenère Cipher tool ↗

Opens Unscramble Words 4U, our free word-puzzle site, in a new tab. Free, with no sign-up.

What it does

Think of Vigenère as a run of Caesar ciphers taking turns. Each keyword letter sets a shift (A means none, B means one, C means two and so on), and the keyword repeats along the message. Type your text, enter a keyword such as LEMON, then pick Encode or Decode. Letters are the only characters altered, and the key only moves forward when it is used on a letter, so spaces and punctuation stay where they are.

The Crack it without the key button tries every key length between 1 and 16 letters, works out the likeliest shift for each position, and offers the best few keys with their decoded text for you to pick from. It works best on long messages; around a hundred letters or more usually gives a clear winner. Historically, the method was described by Giovan Battista Bellaso in 1553 and later credited to Blaise de Vigenère. It was long thought unbreakable until methods published in the 1800s showed otherwise.

Screenshot of the Vigenère Cipher on Unscramble Words 4U, ready to use
The Vigenère Cipher as it first appears on Unscramble Words 4U.Tip: Longer, unpredictable keywords are harder to crack than short everyday words.

How to use it

  1. Type or paste your message into the text box.
  2. Enter a keyword using letters only; anything else is ignored.
  3. Choose Encode to hide the message or Decode to reveal it with the same keyword.
  4. Press Copy result to use the output elsewhere.
  5. No keyword? Use the "Crack it without the key" button, then pick one of the suggested keys to apply it.
Screenshot of the Vigenère Cipher showing results for the example “Meet me at the library”
Example: we entered “Meet me at the library” to show the kind of result you get.Tip: Show learners that the same plain letter can turn into different coded letters, which is why simple letter counting fails on Vigenère.

More tips

Ideas for the classroom and home learning

Questions

Can my keyword include spaces or digits?

No. The key uses letters alone; any other character is skipped.

Why did the cracker suggest the wrong key?

With a short text, each position in the key has too few letters to analyse. Try a longer passage.

How is it different from Caesar?

Caesar uses one shift for every letter. Vigenère changes the shift letter by letter according to the keyword.

Is Vigenère secure today?

No. Counting letter patterns defeats it, which is exactly what the cracker demonstrates, so keep it for puzzles and lessons.

Open the Vigenère Cipher tool ↗

Opens Unscramble Words 4U, our free word-puzzle site, in a new tab. Free, with no sign-up.

Vigenère is a historical cipher for puzzles and learning, not a way to protect real information.

Related

← All word games and codes