Since 2010 · Powering 2M+ tool runs every month
Since 2010
Add to Chrome

My Toolbox

Automatic Mode

No saved tools yet.

Go Premium
Related tools
Atbash Cipher ToolCaesar Cipher ToolRSA Encryption Step-by-Step Simulator
Home Page > Miscellaneous > Encoders And Decoders

Vigenère Cipher Tool

Encrypt and decrypt text with the Vigenere polyalphabetic cipher using your own keyword. Includes a live key-alignment stream, a tabula recta visualization, the Autokey and Beaufort variants, round-trip proof and a Kasiski period hint.

Free to useNo sign-up requiredInstant Results
Vigenère Cipher ToolTry it now — free ▼
Quick examples
Letters are shifted by the keyword. Digits, spaces, and punctuation pass through unchanged. Apostrophes and accented characters also pass through.
A short key (3–5 letters) is broken in seconds. 6–12 letters is typical for puzzles. A key as long as the message used only once is a one-time pad.

Embed Vigenère Cipher Tool Widget

About Vigenère Cipher Tool

This Vigenère Cipher Tool encrypts and decrypts text using the polyalphabetic cipher that resisted cryptanalysis for nearly 300 years. Type any message and a keyword, and you instantly get the ciphertext along with a vertically-stacked key-alignment stream that shows plaintext, key, and cipher letter together — so you can see why every letter changed. The tool also exposes the original Autokey variant, the reciprocal Beaufort variant used in the WWII Hagelin M-209, a round-trip proof, and a 26×26 tabula recta for hand verification.

The Step-by-Step Idea

Take the plaintext ATTACKATDAWN and the keyword LEMON. Repeat the keyword underneath until it covers the plaintext, then add the two letters position-by-position (A=0, B=1, …, Z=25), reducing modulo 26.

ALL TEX TMF AOO CNP KLV AEE TMF DOR ANN WLH NER

Reading the green row gives the ciphertext LXFOPVEFRNHR. The key letter L shifts A by 11 positions (A→L), E shifts T by 4 (T→X), and so on. The same plaintext letter A appears three times but encrypts to three different letters (L, O, E) — that is the polyalphabetic property and the reason Vigenère defeats single-letter frequency analysis.

The Math in One Line

Number the alphabet A=0 through Z=25. Let \( p_i \) be the i-th plaintext letter and \( k_i \) be the corresponding key letter (the keyword cycles, so \( k_i = K_{i \bmod n} \) where \( n \) is the key length). Then:

Encrypt: \( c_i = (p_i + k_i) \bmod 26 \)  ·  Decrypt: \( p_i = (c_i - k_i) \bmod 26 \)

For the Beaufort variant the same one-line formula \( c_i = (k_i - p_i) \bmod 26 \) handles both directions. For the Autokey variant the key becomes \( k_1, k_2, \dots, k_n, p_1, p_2, \dots \) — the plaintext itself extends the key once the keyword runs out.

Three Variants Explained

Vigenère (classic)The keyword repeats cyclically. Easy to remember, but the periodicity is exactly what Kasiski (1863) and Friedman (1920) used to break the cipher.Best for: puzzles, CTFs, teaching modular arithmetic and polyalphabetic ciphers.
AutokeyThe key starts with the keyword and is then extended by the plaintext itself, so the key stream never repeats. Vigenère's own 1586 improvement.Best for: showing how a small change defeats Kasiski; still vulnerable to known-plaintext attacks.
BeaufortReciprocal: c = (k − p) mod 26. The same operation encrypts and decrypts. Used in the WWII Hagelin M-209 portable cipher machine.Best for: understanding involutory ciphers; one-button encode/decode.

The Tabula Recta (Vigenère Square)

The classical way to apply Vigenère is to look up each letter in a 26×26 table where row r is the alphabet rotated by r positions. Find the key letter's row, find the plaintext letter's column — the cell at the intersection is the ciphertext letter. To decrypt, find the key row, scan across to the ciphertext letter, then read the column header.

· ABCDEFGHIJKLMNOPQRSTUVWXYZ
A ABCDEFGHIJKLMNOPQRSTUVWXYZ
B BCDEFGHIJKLMNOPQRSTUVWXYZA
C CDEFGHIJKLMNOPQRSTUVWXYZAB
D DEFGHIJKLMNOPQRSTUVWXYZABC
E EFGHIJKLMNOPQRSTUVWXYZABCD
F FGHIJKLMNOPQRSTUVWXYZABCDE
G GHIJKLMNOPQRSTUVWXYZABCDEF
H HIJKLMNOPQRSTUVWXYZABCDEFG
I IJKLMNOPQRSTUVWXYZABCDEFGH
J JKLMNOPQRSTUVWXYZABCDEFGHI
K KLMNOPQRSTUVWXYZABCDEFGHIJ
L LMNOPQRSTUVWXYZABCDEFGHIJK
M MNOPQRSTUVWXYZABCDEFGHIJKL
N NOPQRSTUVWXYZABCDEFGHIJKLM
O OPQRSTUVWXYZABCDEFGHIJKLMN
P PQRSTUVWXYZABCDEFGHIJKLMNO
Q QRSTUVWXYZABCDEFGHIJKLMNOP
R RSTUVWXYZABCDEFGHIJKLMNOPQ
S STUVWXYZABCDEFGHIJKLMNOPQR
T TUVWXYZABCDEFGHIJKLMNOPQRS
U UVWXYZABCDEFGHIJKLMNOPQRST
V VWXYZABCDEFGHIJKLMNOPQRSTU
W WXYZABCDEFGHIJKLMNOPQRSTUV
X XYZABCDEFGHIJKLMNOPQRSTUVW
Y YZABCDEFGHIJKLMNOPQRSTUVWX
Z ZABCDEFGHIJKLMNOPQRSTUVWXY

Row label = key letter. Column header = plaintext letter. Cell content = ciphertext letter. Example: row L, column A → L. Row E, column T → X.

How to Use the Vigenère Cipher Tool

  1. Paste your plaintext (to encrypt) or ciphertext (to decrypt) into the input box. The live key-alignment stream on the right shows plaintext, key letter, and resulting cipher letter stacked vertically, so the per-letter shift is obvious at a glance.
  2. Type a keyword in the Keyword field. Non-letters are stripped automatically. Watch the orange keyword chip cycle as letters are consumed, and the "latest pair" magnifier expand the most recent plain + key = cipher triple.
  3. Pick the Mode (Encrypt or Decrypt) and the Variant (Vigenère, Autokey, or Beaufort). Beaufort is self-inverse, so the mode does not change its output.
  4. Click Apply Vigenère. The full output appears below with a per-letter shift trace, statistics (key length, period, coverage), a round-trip proof, and a side-by-side cipher lab comparing every variant on the same input.
  5. Use the Copy buttons to grab the ciphertext, the original, or the keyword. To decrypt, paste the ciphertext, switch Mode to Decrypt with the same keyword, and click again.

Vigenère vs Caesar vs Atbash vs ROT13 — Quick Reference

CipherTypeKeySelf-inverse"HELLO" with key LEMON
VigenèrePolyalphabetic substitutionKeyword (1+ letters)No (use Decrypt)SIXZB
Caesar (shift 3)Monoalphabetic rotationSingle shiftNoKHOOR
ROT13Rotation (fixed 13)None (fixed)YesURYYB
AtbashReflectionNone (fixed)YesSVOOL
BeaufortPolyalphabetic reciprocalKeywordYesEABDZ

Why Vigenère Was Called "Le Chiffre Indéchiffrable"

For nearly three centuries after Bellaso first published it in 1553, Vigenère was considered uncrackable. A single plaintext letter could encrypt to up to 26 different ciphertext letters depending on its position, so the flat-frequency assumption that breaks Caesar (English E is the most common letter) no longer worked. Charles Babbage broke it in the 1850s but did not publish; Friedrich Kasiski independently published the attack in 1863. The key insight: the keyword repeats, so the same plaintext substring at positions that differ by a multiple of the key length produces the same ciphertext. Find the spacing of repeated trigrams, take the greatest common divisor, and you have a strong candidate for the key length. Once the key length is known, Vigenère decomposes into n parallel Caesar ciphers, each of which falls to frequency analysis.

The Kasiski Examination — How Vigenère Falls

  1. Scan the ciphertext for repeated 3-letter or 4-letter sequences.
  2. Record the distance between every pair of repeats.
  3. Take the greatest common divisor of those distances — the key length almost always divides this GCD.
  4. Split the ciphertext into n columns (every n-th letter). Each column is a Caesar cipher.
  5. For each column, find the letter shift that maximizes the index of coincidence or matches English letter frequencies. That shift is one key letter.

Try the "Kasiski-vulnerable" quick example to see this: the input repeats "The quick brown fox", and the key is only 3 letters, so the same words encrypt the same way both times — a flashing neon sign for a Kasiski analyst.

The Babbage / Kasiski / Friedman Family of Attacks

  • Babbage (1850s, unpublished). Found that repeated patterns betray the key length.
  • Kasiski (1863). Published the same idea: distance between repeats is a multiple of the key length.
  • Friedman (1922). Introduced the Index of Coincidence — a statistical measure that, for the right column split, peaks at ~0.067 (English) instead of the random ~0.038.
  • Modern computers. Run all key lengths from 1 to 30, compute the IC for each column split, pick the length whose split has the highest average IC. Then frequency-attack each column. Total time: milliseconds.

Security Notice

Vigenère is not modern encryption. A 5-letter keyword is broken in milliseconds by Kasiski, and a 20-letter keyword falls to a few seconds of automated analysis. Even Autokey, which removes the periodicity weakness, is vulnerable to known-plaintext attacks and to probable-word attacks on the keyword prefix. Never use Vigenère to protect passwords, personal data, financial information, or anything that should stay confidential. For real protection use AES-256, ChaCha20, RSA, or libsodium. Treat Vigenère as a way to obscure text — for puzzles, CTFs, teaching, and historical demonstrations — not to secure it.

Tips for Best Results

  • To decrypt, paste the ciphertext, type the same keyword, and switch Mode to Decrypt. The same tool both encrypts and decrypts.
  • For the Beaufort variant, the mode does not matter — applying Beaufort twice with the same key returns the original.
  • If you only care about letters (no spaces or punctuation in the output), untick "Preserve original case" — the input is normalized to UPPER before ciphering and the output is uppercase only.
  • Spaces and punctuation in the input pass through unchanged. To hide word boundaries from a casual reader, strip them yourself before pasting.
  • Use the Cipher lab to see how the same key behaves across all three variants — Autokey usually produces output very different from classic Vigenère after the first n letters, because the key stream changes.

FAQ

What is the Vigenère cipher?

The Vigenère cipher is a polyalphabetic substitution cipher that shifts each plaintext letter by a different amount determined by a repeating keyword. If the key letter is K (the 11th letter), the plaintext letter is shifted forward by 10 positions. The cipher was described by Giovan Battista Bellaso in 1553 and later misattributed to Blaise de Vigenère, whose name stuck.

How is Vigenère different from Caesar or Atbash?

Caesar uses a single fixed shift for every letter — a one-letter Vigenère key is exactly Caesar. Vigenère uses a different shift for every position, taken from a repeating keyword — which is why the same plaintext letter can encrypt to several different ciphertext letters. Atbash is a fixed reflection (A↔Z, B↔Y) with no key. Vigenère is much harder to break by single-letter frequency analysis because the key smooths out the letter frequencies.

Is Vigenère secure for real encryption?

No. Friedrich Kasiski cracked Vigenère in 1863 by exploiting the periodicity of the repeating keyword. Modern computers break Vigenère instantly using the Friedman test (index of coincidence) and Kasiski examination. Use AES-256, ChaCha20, or libsodium for real protection; Vigenère is for puzzles, CTFs, and teaching.

What is the Autokey variant?

Autokey extends the keyword by appending the plaintext itself, so the key stream never repeats. Vigenère proposed this in 1586 to defeat the very weakness Kasiski would later exploit. Autokey is much harder to break than classic Vigenère but is still vulnerable to known-plaintext attacks and to probable-word attacks on the keyword prefix.

What is the Beaufort variant?

The Beaufort cipher uses the operation ciphertext = (key − plaintext) mod 26, which makes it its own inverse — encrypting twice with the same key returns the original. It was named after Sir Francis Beaufort and was the cipher behind the Hagelin M-209, a portable mechanical cipher machine used by the US Army in WWII.

How long should my keyword be?

Longer is much better. A one-letter key reduces Vigenère to a Caesar cipher. A short key (3–5 letters) is broken in seconds by Kasiski. A key the same length as the message and used only once is a one-time pad — provably unbreakable. For puzzles and teaching, a keyword of 6–12 letters is the usual choice.

Reference this content, page, or tool as:

"Vigenère Cipher Tool" at https://MiniWebtool.com/vigen-re-cipher-tool/ from MiniWebtool, https://MiniWebtool.com/

by miniwebtool team. Updated: 2026-05-26

Encoders And Decoders:

Top & Updated:

Instagram User ID LookupRandom PickerRandom Name Picker WheelImage ResizerFacebook User ID LookupLine CounterSort NumbersRSD Calculator - Relative Standard DeviationFPS ConverterRandom Quote GeneratorJob FinderRemove Spaces🖱️ Click Counter⬛ Aspect Ratio CalculatorMAC Address Lookup📷 OCR / Image to TextWord to Phone Number ConverterStandard Error CalculatorSun, Moon & Rising Sign Calculator 🌞🌙✨MAC Address GeneratorRandom Credit Card GeneratorERA CalculatorSum CalculatorMerge VideosPercent Off CalculatorLog Base 10 CalculatorRoman Numerals ConverterSHA256 Hash GeneratorCm to Feet and Inches ConverterJulian Date ConverterMP3 LooperWeight Loss CalculatorName RandomizerBatting Average CalculatorSlope and Grade CalculatorAdd Text to ImageNumber of Digits CalculatorOctal CalculatorFeet and Inches to Cm ConverterRandom IMEI GeneratorImage SplitterBitwise CalculatorPhone Number ExtractorSquare Root (√) CalculatorRandom Activity GeneratorAudio SplitterIP Subnet CalculatorRandom Fake Address GeneratorInvisible Text GeneratorRandom Superpower GeneratorVertical Jump CalculatorText FormatterRandom Writing Prompt GeneratorVideo CompressorQuotient and Remainder CalculatorRandom Truth or Dare GeneratorSalary Conversion CalculatorOutlier CalculatorEquation of a Line CalculatorNumber to Word ConverterHalfway Date CalculatorBCD ConverterFirst n Digits of PiBinary to Gray Code ConverterFraction CalculatorFile Size ConverterCaffeine Overdose CalculatorEstimation CalculatorRandom Movie PickerSun Position CalculatorLunar Calendar ConverterCompound Growth CalculatorRandom Poker Hand GeneratorLeap Years ListYouTube Channel StatisticsName Number CalculatorMultiplication CalculatorBolt Torque CalculatorSHA512 Hash GeneratorLong Division CalculatorRandom Birthday GeneratorBingo Card GeneratorMaster Number CalculatorMD5 Hash GeneratorLimit Calculator🔍 Plagiarism Checker📅 Date CalculatorInequality SolverVideo to Image ExtractorModulo CalculatorRandom Video Thumbnail GeneratorPercent Growth Rate CalculatorMagic 8-BallEmail ExtractorCone Flat Pattern (Template) GeneratorImage Compressor🔊 Tone GeneratorMultiple Fraction CalculatorCompare Two StringsDomain and Range CalculatorAI Language DetectorFlip Video🎰 Gacha Pity CalculatorStair CalculatorRandom Meal GeneratorOPS CalculatorHebrew Calendar ConverterURL ExtractorWord Ladder GeneratorNumber ExtractorArc Length CalculatorBcrypt Hash Generator / CheckerLong Multiplication CalculatorRemove Empty LinesRandom Emoji GeneratorBreak Line by CharactersRandom User-Agent GeneratoreBay Fee CalculatorAverage Deviation CalculatorPercent to PPM ConverterRandom Number PickerImage EnhancerAPI TesterSlugging Percentage CalculatorWord Scramble GeneratorRadical SimplifierRandom Loadout GeneratorSocial Media Username Checker📊 Bar Graph MakerScientific Notation CalculatorTrigonometric Equation SolverDay of the Year Calculator - What Day of the Year Is It Today?Day of Year CalendarList of Prime NumbersBroken Link CheckerRandom Group GeneratorImage CropperWhat is my Zodiac Sign?Algebraic Expression SimplifierAstrological Element Balance CalculatorOn Base Percentage CalculatorAI Text HumanizerPaycheck Calculator (Take-Home Pay)Scientific Notation to Decimal ConverterLove Compatibility CalculatorHEX CalculatorAdd Prefix and Suffix to TextRandom Math Problem GeneratorRemove Lines Containing...Random Object GeneratorYouTube Tag ExtractorDice RollerIP Address to Hex ConverterRandom Tournament Bracket GeneratorSigma Notation Calculator (Summation)Small Text Generator ⁽ᶜᵒᵖʸ ⁿ ᵖᵃˢᵗᵉ⁾WAR CalculatorList RandomizerRemove Leading Trailing SpacesSocial Media Post Time OptimizerProportion CalculatorRandom Line PickerAI Punctuation AdderPercentile CalculatorFirst Day of AutumnBackronym GeneratorAudio ExtractorRandomize NumbersVideo SplitterIP Address to Binary ConverterHeight Percentile CalculatorOrder of Operations Calculator (PEMDAS)Random Chord GeneratorChinese Gender PredictorRatio to Percentage CalculatorAdjust Video SpeedColor InverterParallel and Perpendicular Line CalculatorDMS to Decimal Degrees ConverterSum of Positive Integers CalculatorField Goal Percentage CalculatorSquare Numbers ListArithmetic Sequence CalculatorWHIP CalculatorRandom PIN GeneratorSlope Intercept Form CalculatorTime Duration CalculatorSales Tax CalculatorVideo CropperJulia Set GeneratorMercury Retrograde CalendarSaturn Return CalculatorWater Usage CalculatorConnect the Dots GeneratorNumber Pattern FinderLogarithmic Equation SolverHelium Balloon Lift CalculatorConvert Video for Twitter (X)Gamertag GeneratorTeam Name GeneratorNickname GeneratorRap Name GeneratorBand Name GeneratorFantasy Name GeneratorFortune Cookie GeneratorDrawing Idea GeneratorJournal Prompt GeneratorDaily Affirmation GeneratorCompliment GeneratorPickup Line GeneratorDad Joke GeneratorRandom Joke GeneratorRandom Fact GeneratorTrivia Question GeneratorHangman Word GeneratorPictionary Word GeneratorCharades GeneratorIcebreaker Question GeneratorNever Have I Ever GeneratorWould You Rather GeneratorRandom Question GeneratorAI Dream InterpreterAI Thank-You Note GeneratorAI Wedding Speech GeneratorAI Press Release GeneratorAI Product Description GeneratorAI Video Script GeneratorAI YouTube Title & Description GeneratorAI Instagram Caption GeneratorAI LinkedIn Headline & Bio GeneratorAI Resume Bullet GeneratorAI Cover Letter GeneratorAI Rap Lyrics GeneratorPDF Flatten ToolUnlock PDF (Owner-Password Removal)PDF to Text ExtractorPDF Page ExtractorPDF Word CounterProtect PDFAdd Page Numbers to PDFReorder PDF PagesDelete PDF PagesRotate PDFJPG to PDFPDF to JPGCompress PDFSplit PDFMerge PDFPT to PX ConverterPX to REM ConverterTola to Gram ConverterIndian Land Unit ConverterMcg to Mg ConverterAI Song Lyrics GeneratorAI Poem GeneratorAI Story GeneratorAI TranslatorAI Text SummarizerMg to Ml ConverterMPH to KMH / KMH to MPHKnots to MPH ConverterCubic Meters to Cubic FeetCubic Feet to Cubic Yards ConverterSquare Feet to Square Meters ConverterSquare Meters to Square Feet ConverterOz to ML ConverterML to Oz ConverterGallons to Liters ConverterLiters to Gallons ConverterKg to Stone ConverterStone to Kg ConverterInches to MM ConverterMM to Inches ConverterMiles to Km ConverterKm to Miles ConverterFahrenheit to Celsius ConverterCelsius to Fahrenheit ConverterBackpack Size CalculatorSurfboard Volume CalculatorTennis Grip Size CalculatorHelmet Size CalculatorGlove Size CalculatorHat Size ConverterSnowboard Size CalculatorSki Size CalculatorBike Size CalculatorSpeedrun Split TimerStableford CalculatorDart Checkout CalculatorBowling Economy CalculatorBatting Strike Rate CalculatorNet Run Rate CalculatorK/D Ratio CalculatorElo Rating CalculatorHeart Rate Recovery CalculatorHiking Time CalculatorRowing Pace CalculatorRunning Age-Grading CalculatorFTP & Power Zones CalculatorBeep Test CalculatorACFT Score CalculatorWilks & DOTS CalculatorWheel Offset CalculatorTire Load Index & Speed Rating LookupCost Per Mile CalculatorLease Buyout CalculatorOctane Mix Calculator2-Stroke Oil Mix CalculatorEngine Displacement CalculatorCouch Fit CalculatorFirewood Cord CalculatorAir Purifier CADR CalculatorDehumidifier Size CalculatorCeiling Fan Size CalculatorCurtain Size CalculatorRug Size CalculatorPicture Hanging Height CalculatorTV Mounting Height CalculatorTV Size CalculatorPond Volume & Liner CalculatorPool Salt CalculatorPool Volume CalculatorWater Heater Size CalculatorEpoxy Resin CalculatorBaluster Spacing CalculatorBaseboard & Trim CalculatorSiding CalculatorDeck Stain CalculatorGrass Seed CalculatorSod CalculatorAsphalt CalculatorCubic Yard CalculatorAntenna Length CalculatorConduit Fill CalculatorSeries/Parallel Capacitor CalculatorInductive Reactance CalculatorRoom Lighting CalculatorLux to Lumens CalculatorLumens to Watts ConverterGenerator Size CalculatormAh to Wh Converter3-Phase Power CalculatorkVA CalculatorAmps to Watts CalculatorWatts to Amps CalculatorResistors in Series CalculatorFriction CalculatorInclined Plane CalculatorMechanical Advantage CalculatorSpeed of Sound CalculatorWave Speed CalculatorBuoyancy CalculatorTerminal Velocity Calculatorde Broglie Wavelength CalculatorPhoton Energy CalculatorE=mc² CalculatorTime Dilation CalculatorKepler's Third Law CalculatorEscape Velocity CalculatorGravitational Force CalculatorBeer-Lambert Law CalculatorNernst Equation CalculatorOsmotic Pressure CalculatorBoiling Point Elevation CalculatorFreezing Point Depression CalculatorPercent Composition CalculatorNormality CalculatorMolality CalculatorpKa to Ka ConverterHenderson-Hasselbalch CalculatorTheoretical Yield CalculatorLimiting Reactant CalculatorElectron Configuration CalculatorInteractive Periodic TableAI Lesson Plan GeneratorAI Quiz GeneratorCitation Generator (APA/MLA/Chicago)Attendance Percentage CalculatorAP Score CalculatorACT Score CalculatorSAT Score CalculatorYouTube Earnings EstimatorRandom RPG Character Generator
Home Page > Miscellaneous > Encoders And Decoders > Vigenère Cipher Tool