A Vigenere Cipher, in plain words
The Vigenere cipher encrypts text with a keyword instead of a single shift, so the same letter can become different letters in different places. It was called 'le chiffre indechiffrable' — the indecipherable cipher — for three centuries. It works entirely in your browser: you type or paste text, and the result appears at once, with nothing uploaded and nothing stored. People searching for a vigenere cipher usually want exactly that — a quick answer without an account, a download, or a wait.
Students learning classical cryptography, puzzle fans building harder challenges, and history readers working through the cipher that protected diplomatic messages in the 1500s all use Vigenere. Students use it for homework and puzzles, developers use it at work, and writers use it when a deadline is close. The common thread is simple: the job is small, the answer should be instant, and the text should stay private.
This page keeps that promise. The vigenere Cipher runs on your own device, so your words never leave the tab. You can use it as often as you like, on any text, and close the page knowing nothing was saved anywhere — there is no history, no log, and no sign-up standing between you and the answer.
If you have never used a tool like this before, start with the example on this page and change one thing at a time — one word, one setting — and watch the result change. That is the fastest way to learn what each input does, and it works for every tool in this family, because they all follow the same pattern: text in, result out, nothing saved.
How the Vigenere Cipher does its job
Each plaintext letter is shifted forward by the matching keyword letter: A shifts by 0, B by 1, and so on to Z by 25. The keyword repeats across the message, so a long message cycles through the keyword many times. Decryption shifts each letter back by the same amount. Letters keep their case, and anything that is not a letter passes through unchanged. The rule this page uses is: Each letter shifts by the matching keyword letter: A shifts by the keyword's first letter, T by the second, and so on, wrapping at Z. Decryption shifts back by the same amounts.
The cipher is only as strong as its keyword. A short keyword repeats often, which lets a codebreaker find the keyword length from repeated patterns and then break each column as a simple Caesar shift. A keyword as long as the message, used once, is unbreakable — but that is a one-time pad, not a practical keyword.
Because the rule never changes, the same input always gives the same output. Run the example below twice and the result will match exactly, character for character. That predictability is what makes the tool useful for checking your own work. For a different kind of text job, the text reverser covers the next step once you have your result. The comparison section further down this page explains which of the two fits which job, so you can pick before you paste.
The rule above is the whole method — there is no hidden step and no second pass. What you see in the rule is what the tool computes, which is why the worked example below can be followed by hand, one step at a time, with a pencil if you like.
The keyword explained
The keyword is the whole secret of this cipher. Short, common words like KEY or CODE are easy to guess, while a longer, less obvious word makes the pattern harder to spot. Non-letters in the keyword are ignored, so 'lemon juice' behaves exactly like 'LEMONJUICE'.
With the keyword LEMON, the classic example 'ATTACKATDAWN' becomes 'LXFOPVEFRNHR'. The first A shifts by L (11) to become L, the first T shifts by E (4) to become X, and the pattern repeats every five letters.
Pick a keyword at least as long as the longest repeated word in your message if you want to hide word patterns. A keyword of 8 to 12 letters is a good balance for a puzzle — long enough to resist a quick guess, short enough to remember.
When in doubt, try the worked example below first — it uses the page defaults, so it shows the tool working exactly as it ships.
Paste from anywhere — a document, a chat, a web page. The tool reads only the text you give it, so stray formatting, links, and images are left behind. If the pasted text looks odd, paste it as plain text first and then copy it in, so nothing invisible rides along.
A worked example
Take this input: the classic textbook message 'ATTACKATDAWN' with the keyword 'LEMON'. Each letter shifts by the matching keyword letter: A+11=L, T+4=X, T+0=T, A+12=F, C+13=O, K+11=V, A+4=E, T+12=F, D+14=R, A+13=N, W+11=H, N+4=R. The result is 'LXFOPVEFRNHR' — 12 characters, the same length as the input, with the keyword length shown as 5.
Decrypt 'LXFOPVEFRNHR' with the same keyword and you get 'ATTACKATDAWN' back. Check the first letter by hand: L is the 12th letter, minus the keyword's L (11) gives A, the 1st letter.
Try the same message with the keyword 'KEY': the shifts are smaller and the pattern repeats every three letters, so the result is shorter to remember but easier to crack. That trade-off is the whole lesson of the Vigenere cipher.
You can check the result yourself without trusting the page. Reverse the operation — decrypt what you encrypted, or run the output back through the tool with the opposite setting — and the original input should come back. If it does not, the first thing to check is the input: a missing letter, an extra space, or a setting that changed between the two runs.
Who uses a Vigenere Cipher — and why
A teacher shows why a Caesar shift is weak and then shows Vigenere as the fix, letting students break both and feel the difference in difficulty. It is the kind of job that comes up often enough to remember, and rarely enough to justify installing anything for.
A puzzle hunt uses a keyword hidden in an earlier clue, so solvers must find the word before they can read the message — the keyword becomes part of the game. The base64 encoder decoder is the natural next stop when the result needs a different treatment. It answers the question this page leaves open, so the two together cover the whole job.
A history student re-creates the ciphers of 16th-century diplomats to understand what 'indecipherable' meant before computers.
Vigenere Cipher vs ROT13 Encoder
The ROT13 encoder shifts every letter by a fixed 13 places, while Vigenere shifts each letter by a keyword. ROT13 is a single shift; Vigenere is a shifting shift, and that is what makes it harder to break. The ROT13 encoder is the closest comparison on this site, and the two answer different questions. Both are free, both run in your browser, and neither asks for an account.
Pick the vigenere Cipher when you want a keyword-based cipher where the same letter can encrypt to different letters. Pick the rot13 encoder when you want the simplest fixed shift, with no key to share or remember.
In practice most people keep both bookmarked. They are small, free, and private, and switching between them costs nothing — paste the same text into each and compare the outputs side by side before deciding which one fits the job in front of you. The habit that saves the most time is deciding the job first and the tool second: once you know whether you need a cipher, a conversion, or a count, the choice between two similar tools is usually obvious.
Where people go wrong with a Vigenere Cipher
Using a short keyword on a long message. The keyword repeats, and every repeat hands the codebreaker a pattern to measure. For a long message, use a long keyword.
Reusing the same keyword for many messages. Once one message is broken, every message with that keyword falls, because the shifts are identical.
Forgetting to share the keyword with the reader. An encrypted message without its keyword is unreadable even to the person it was meant for — send the keyword through a different channel. Assuming Vigenere is secure by modern standards. It resisted codebreakers for 300 years, but a computer breaks it in seconds today. It is a teaching tool, not protection for real secrets. The fix in every case is the same: check the input, check the setting, and test with the worked example before trusting a long result.
If the result still looks wrong after checking the input, run the worked example exactly as written. If the example works and your input does not, the difference is in your input — compare them character by character, including spaces, until the odd one out shows itself.
How to use this Vigenere Cipher
Type your message, type a keyword, and choose Encrypt or Decrypt. The result appears live as you type, and switching direction with the same keyword turns ciphertext back into the original message. The case converter can help with the next step once you have your output.
Use a keyword you can remember but nobody else would guess — a word from a shared book, not 'password'. If you are setting a puzzle, hide the keyword in an earlier clue so solving feels earned.
The result can be copied with the buttons above it, or shared and printed from the actions on the page. If you use the tool often, bookmark the page — the address never changes, and your last input is not saved, so a fresh visit always starts clean. That also means there is nothing to clear and nothing to log out of when you are done.
Everything on this page is free, with no account and no limit on how often you use it. Your text is processed in your browser and never sent to a server, so drafts, names, and private notes stay on your device. If the result looks wrong, check the input first — a stray space or a missing character is the cause far more often than the tool itself.