A Vigenere cipher decoder can process up to 500,000 UTF-16 code units in one run when you supply a valid repeating key.
For ciphertext, the key must already be known: this is a deterministic transformation, not a search for an unknown key. The Vigenere Cipher Decoder applies the standard repeating-key method locally in the current browser tab. It accepts plaintext for encryption or ciphertext for decryption, requires no account, and uploads neither the text nor the key.
Large passages therefore need two checks: whether the text fits the input ceiling and whether the sender used the same key-alignment convention as the decoder. The first has a precise numerical limit; the second determines whether a correct key will produce the expected plaintext.

The actual large-text ceiling
The input ceiling is 500,000 UTF-16 code units, which is how JavaScript counts string length. Each ASCII character uses one code unit, while a supplementary emoji can use two. The displayed counter therefore measures the actual string length rather than simply counting visible characters.
Text exactly at 500,000 code units is transformed in full. An input above the ceiling is rejected as a whole with an explicit message; the tool does not quietly process a prefix or display an incomplete result as though it were complete. If your submission is larger, reduce the input or use a method designed to handle that larger dataset.
| Item | Defined limit or behavior | Practical effect |
|---|---|---|
| Text capacity | Up to 500,000 UTF-16 code units | Exactly 500,000 is accepted; a larger input is rejected in full. |
| Key capacity | Nonempty and no more than 256 letters | An empty or oversized key produces a direct error. |
| Key format | ASCII letters A–Z or a–z only | Spaces, digits, punctuation, accents, and symbols are invalid. |
| Message handling | Only ASCII letters are transformed | Letter case is preserved, and every nonletter code unit is copied exactly. |
| Key alignment | The key advances only for ASCII letters | Spaces, punctuation, digits, emoji, and other nonletters do not consume a key character. |
| Processing | Runs in the current browser tab | No text or key is uploaded, and no account is required. |
| Changed inputs | Editing clears the previous output and error | Clear removes the text, key, output, and error together. |
Prepare the known key first
Confirm the key before decoding a long passage. A large ciphertext still requires the correct key, and the tool does not test dictionaries, estimate key length, try likely keys, or score possible plaintext. If the key is unknown, this workflow cannot complete the decryption.
Key capitalization does not matter because keys are normalized internally. For example, lemon and LEMON produce the same shifts. The key itself must contain only letters, however. A displayed keyword such as “LEMON 2026” is invalid here; locate the intended letters-only key instead of silently removing characters and changing its meaning.
Record the key before continuing. Capitalization can change without changing the transformation, but the letters, their order, and their length determine the result. When ciphertext may have come from another program, also check its alignment convention against the guidance in How to Read a Vigenere Cipher: Match the Key Alignment. This decoder advances the key only across ASCII letters, while some other programs advance it across spaces or normalize characters differently.
Decode a long passage in the tool
- Copy the exact ciphertext. Paste it into the text field, retaining line breaks, punctuation, spaces, and other visible content. They remain in their original positions under this tool’s convention.
- Check the UTF-16 counter. Confirm that the input is at or below 500,000 code units. Do not assume that the number of visible characters is the limit, because supplementary emoji can occupy two code units.
- Enter the known key. Use a nonempty sequence of ASCII letters no longer than 256 characters. Do not include spaces, digits, punctuation, accented letters, or symbols.
- Choose the matching mode. Select Decrypt for ciphertext. Select Encrypt only when the input is plaintext that you want to transform into ciphertext.
- Run the transformation. Wait for the labeled result to appear. For an input over the size limit or an invalid key, the tool returns an error rather than a partial transformation.
- Review and copy the result. Use the Copy button beside the labeled output. The label indicates the operation you selected; it does not verify that the result is meaningful or that the key was correct.
- Keep the key with the exchanged text. The same key and alignment convention are needed to reverse the operation. If you edit the text, key, or mode, the previous output and error are removed automatically, so run the updated inputs again rather than relying on an old result.
See how key alignment changes the result
Only ASCII letters participate in the transformation. Spaces, line breaks, digits, punctuation, emoji, accented letters, CJK characters, combining marks, and every other non-ASCII-letter code unit are copied unchanged. They also do not advance the key. A punctuation mark between two letters therefore leaves the next letter aligned with the same key position it would have used without that mark.
Uppercase and lowercase letters remain in their original case. The key repeats from its beginning when the number of participating letters exceeds the key length. Internally, A through Z map to zero through 25, and encryption adds the key shift modulo 26 while decryption subtracts it. For a single-letter check, X has value 23 and L has shift 11, so decryption gives (23 − 11 + 26) mod 26 = 12, which maps to M.
The same text, key, mode, and alignment convention always produce the same output. When exchanging a puzzle or comparing results from another program, record that convention along with the key. A mismatch in key advancement can make a valid key appear incorrect even though the decoder operated exactly as specified.
Use the right mode for the job
Mode selection determines the direction of the shift. It does not test the key or evaluate the result for meaning.
| Mode | Input | Operation | Labeled result |
|---|---|---|---|
| Encrypt | Plaintext | Add each key shift modulo 26. | Ciphertext |
| Decrypt | Ciphertext | Subtract each key shift modulo 26. | Plaintext |
The correct key reverses either operation. A wrong key still produces a valid deterministic transformation, not an error or a proof that the result is readable. Use the key supplied with the puzzle or message and verify it against another clue rather than assuming that a completed run confirms it.
Diagnose output that does not read correctly
If the decoded passage looks like nonsense, check these common causes before changing tools:
- Wrong or mistyped key: The key may belong to another puzzle or contain an altered character.
- Different alignment: Another program may advance the key across spaces or handle character normalization differently.
- Damaged ciphertext: Missing or altered message letters cannot be reconstructed by the transformation.
- Different cipher variant: Beaufort, variant Beaufort, autokey, running-key, and other modified methods are not supported.
- Unsupported alphabet rules: Unicode alphabets, byte encryption, and locale-specific letter folding are outside the tool’s scope.
- Wrong direction: Decrypt subtracts shifts, while Encrypt adds them. Switching modes does not test the key.
An invalid or empty key is handled differently from a wrong-but-valid key: the former produces a direct error and no partial output, while the latter completes normally even if its plaintext is not meaningful.
Keep local processing and security in perspective
Running locally provides a clear privacy advantage for large classroom passages, puzzle text, and other material that should not be uploaded. Nevertheless, Vigenere is a historical cipher rather than modern secure encryption. Repeating keys leak statistical structure, and modern computers can analyze them or try likely keys efficiently.
Do not use this tool to protect passwords, authentication tokens, financial information, personal records, confidential messages, production secrets, or other data whose disclosure would matter. Use a maintained modern encryption system with authenticated encryption and appropriate key management for those purposes.
For a repeatable large-text workflow, confirm the key, verify the source’s alignment convention, paste the text, check the counter, select the correct mode, run the transformation, and copy the result. If the input exceeds 500,000 code units, reduce it or move to a method built for that volume rather than treating a truncated prefix as a complete decryption.
For a deeper look, see XOR Encryption Online for Large Text: 100,000-Byte Limits.