Skip to content

Christmas escape rooms: instant download, play tonight

MysteryLocks Printable Escape Rooms
Shop all games
Region and language USD
Region and language

Country/region and currency

0 items in cart

Cart

Your cart is empty.

Pick 2 games and save 10%, up to 30% off with 6+.

Add another game

Keyword cipher

Vigenère Cipher Encoder and Decoder

A Caesar cipher with a secret keyword: each letter of the keyword sets a different shift, so the code is much harder to crack. Pick a keyword, type your message and share the secret.

What do you want to do?

See how it works, letter by letter

Each message letter is shifted by the keyword letter above it, and the keyword repeats along the message. A shifts by 0, B by 1 and so on.

Type a message and a keyword to see every step.

The Vigenère square

Find the keyword letter down the side and the message letter along the top. The letter where they meet is the code letter.

ABCDEFGHIJKLMNOPQRSTUVWXYZ
AABCDEFGHIJKLMNOPQRSTUVWXYZ
BBCDEFGHIJKLMNOPQRSTUVWXYZA
CCDEFGHIJKLMNOPQRSTUVWXYZAB
DDEFGHIJKLMNOPQRSTUVWXYZABC
EEFGHIJKLMNOPQRSTUVWXYZABCD
FFGHIJKLMNOPQRSTUVWXYZABCDE
GGHIJKLMNOPQRSTUVWXYZABCDEF
HHIJKLMNOPQRSTUVWXYZABCDEFG
IIJKLMNOPQRSTUVWXYZABCDEFGH
JJKLMNOPQRSTUVWXYZABCDEFGHI
KKLMNOPQRSTUVWXYZABCDEFGHIJ
LLMNOPQRSTUVWXYZABCDEFGHIJK
MMNOPQRSTUVWXYZABCDEFGHIJKL
NNOPQRSTUVWXYZABCDEFGHIJKLM
OOPQRSTUVWXYZABCDEFGHIJKLMN
PPQRSTUVWXYZABCDEFGHIJKLMNO
QQRSTUVWXYZABCDEFGHIJKLMNOP
RRSTUVWXYZABCDEFGHIJKLMNOPQ
SSTUVWXYZABCDEFGHIJKLMNOPQR
TTUVWXYZABCDEFGHIJKLMNOPQRS
UUVWXYZABCDEFGHIJKLMNOPQRST
VVWXYZABCDEFGHIJKLMNOPQRSTU
WWXYZABCDEFGHIJKLMNOPQRSTUV
XXYZABCDEFGHIJKLMNOPQRSTUVW
YYZABCDEFGHIJKLMNOPQRSTUVWX
ZZABCDEFGHIJKLMNOPQRSTUVWXY

How to use the Vigenère cipher

  1. Choose a keyword, like KEY, and write it over your message again and again: KEYKE over HELLO.

  2. Shift each message letter by its keyword letter: A means no shift, B means 1, K means 10. So H shifted by K becomes R.

  3. To decode, shift each letter back by the same keyword letter. Spaces and punctuation stay as they are.

Use the Vigenère cipher in your own escape room

Hide the keyword in one part of the room and the coded message in another, so players have to find both before they can crack it. Our printable escape rooms are full of clever puzzles like this, ready to print and play at home tonight.

Vigenère cipher questions

What is the Vigenère cipher?

The Vigenère cipher is a keyword cipher. Each letter of the message is shifted along the alphabet by the matching letter of a repeating keyword, so the same letter can turn into different code letters. It is named after Blaise de Vigenère, a 16th century French diplomat.

How is it different from the Caesar cipher?

A Caesar cipher uses one shift for the whole message. The Vigenère cipher uses a new shift for each letter, set by the keyword. A keyword of just one letter turns it back into a Caesar cipher.

How do you decode a Vigenère cipher?

You need the keyword. Write it over the code again and again, then shift each letter back by its keyword letter. On this page, choose Decode, type the keyword and paste the code.

Is this tool free?

Yes. It is free to use for puzzles, classrooms, games and secret messages, with no signup.