Enigma Machine Simulator: M3 & M4 Emulator Online
Encrypt and decrypt like a WWII operator: Enigma M3 and M4, rotors I–VIII, ring settings, a 10-cable plugboard and a step-by-step signal animation.
Updated November 2026
Reviewed by Rafael Duarte
Click two letters to connect them (10 pairs remaining)
How to Use the Enigma Machine
Select M3 (standard 3-rotor) or M4 (4-rotor Naval). M4 auto-switches to thin reflectors.
Pick which rotor goes in each slot (I–VIII), set the starting position (letter in the window), and optionally adjust the ring setting.
Choose reflector B or C (B-Thin / C-Thin for M4). Both parties must use the same reflector to communicate.
Click two letters to connect them. Up to 10 pairs. Each pair swaps those letters before and after the rotor pass.
Press the keyboard buttons one by one to see the lampboard light up, or paste a full message in the Input area. Non-letter characters pass through unchanged.
Use the exact same settings (model, rotors, positions, ring, plugboard) and enter the ciphertext. The Enigma is self-inverse — encryption and decryption are identical operations.
How to use the Enigma machine simulator
The same procedure WWII operators followed
1. Choose the model
Pick Enigma M3 or M4 and the reflector (B/C for M3; B-Thin/C-Thin for M4).
2. Set the rotors and plugboard
Choose each rotor from I to VIII (VI–VIII were the Navy's extra rotors), its starting position and ring setting, then wire up to 10 plugboard pairs.
3. Type or paste your text
Click the on-screen keyboard to encrypt letter by letter and watch the lamps, or paste a whole message into Input Plaintext. Letters are enciphered; spaces and other characters pass through unchanged.
When you'd use this
The most common scenarios among simulator users
History or cryptography lessons
Show the electrical path visually — key → plugboard → rotors → reflector → lamp — instead of just describing it.
Studying classical cryptanalysis
See the structural flaw Bletchley Park exploited: no letter can ever encrypt to itself.
Verifying a custom Enigma implementation
Compare your own rotor and reflector code against this engine, letter by letter. A quick sanity check: rotors I-II-III, rings 01, windows AAA, reflector B and no plugs turn AAAAAAAAAA into BDZGOWCXLT.
Reproducing historical messages
Enter rotor and plugboard settings from documented examples and check whether your output matches.
Curiosity and hands-on history
Try out history's most famous cipher device without needing the original hardware.
What this Enigma simulator does
True to the original electromechanical behavior
M3 and M4 models
The 3-rotor M3, wiring-compatible with the Enigma I of the Army and Air Force, and the 4-rotor M4 the Kriegsmarine used on U-boats.
Electrical signal flow
Each keystroke shows a summary of the path: key, plugboard, the rotor stack forward, reflector, the rotor stack back, lamp. Turn on Step Animation to light each stage in turn.
Ring settings and double-stepping
Ringstellung (01–26) and the rotor turnover mechanism implemented with historical accuracy.
10-pair plugboard
Full Steckerbrett configuration, with color-coded labels for each connected pair.
Authentic rotor wiring
Historical wiring specifications from the Wehrmacht, Luftwaffe, and Kriegsmarine rotor sets.
Runs 100% in your browser
No download, no sign-up — everything runs locally on your device.
Why there are 158 quintillion possible settings
Common configuration mistakes
Using different settings to decrypt
To decrypt a message, you need the exact same settings used to encrypt it — rotors, positions, ring settings, and plugboard.
Mixing up M3 and M4 configurations
M4 (Kriegsmarine) adds a fourth Greek rotor that never steps and uses thin reflectors. With Beta at position A, ring 01 and B-Thin it encrypts exactly like an M3 with reflector B — for an M3 key, use M3 mode or that combination.
Expecting a letter to encrypt to itself
That's mathematically impossible given how the reflector works — if you ever see it happen, it's a bug in the simulator, not a mistake in your setup.
Alan Turing and Bletchley Park
Polish mathematicians Marian Rejewski, Jerzy Różycki and Henryk Zygalski were the first to break Enigma, back in 1932, and shared their methods with Britain in 1939. At Bletchley Park, Alan Turing (1912–1954) went on to head Hut 8, the section that worked on German naval Enigma.
Turing designed the British Bombe. It took its name and inspiration from the Polish bomba but worked on a more general principle: instead of relying on repeated message keys, it tested a crib, a guessed stretch of plaintext, and used the fact that no letter could encrypt to itself to place it. The first Bombe was installed in March 1940, and Gordon Welchman's diagonal board soon made the design far more efficient.
Frequently asked questions
It was an electromechanical cipher device that encrypted each letter by routing an electrical signal through a plugboard, three or four rotors, a reflector, and back through the rotors in reverse. Every keystroke advanced at least one rotor, making it a polyalphabetic cipher with billions of possible configurations.
The reflector wires letters together in fixed pairs and forces the signal through the rotors twice, in opposite directions, which makes it mathematically impossible for any letter to map to itself. That structural flaw was the critical weakness Bletchley Park's codebreakers exploited.
The M3 was the Kriegsmarine's three-rotor machine, wiring-compatible with the Enigma I that the Army and Air Force used, so the two could exchange messages with rotors I to V. The Navy also had rotors VI to VIII. The M4 was introduced in 1942 for Kriegsmarine U-boats and added a fourth, non-rotating rotor (Beta or Gamma) along with thinner B-Thin or C-Thin reflectors to make room for it.
The ring setting (Ringstellung) shifts each rotor's internal wiring relative to its outer ring, from 1 to 26 positions, which changes the substitution at every position. It does not change when the notch turns the next rotor: the notch is fixed to the ring, so turnover always happens at the same letter shown in the window. Two otherwise identical machines with different ring settings will produce completely different ciphertext from the same plaintext.
For the standard M3 with three rotors chosen from five, roughly 158 quintillion (158,962,555,217,826,360,000) combinations are possible once you multiply rotor choice, starting positions, and plugboard pairings together (ring settings are conventionally left out of this figure). The plugboard alone, with 10 cable pairs, accounts for around 150 trillion of those combinations.
The cipher is. Rotor wiring, notch positions, double-stepping, ring settings, plugboard logic and reflector wiring follow the historical specifications, so a message encrypted here can be decrypted by any correct emulator using the same settings. The interface is simplified: the signal flow panel summarizes the rotor stack instead of tracing each rotor.
You need the same key the sender used. Pick the model and reflector, set the wheel order (Walzenlage) in the three slots, the ring settings (Ringstellung) and the plugboard pairs (Steckerverbindungen). Then set the rotor windows to the message's starting position, paste the ciphertext into Input Plaintext and read the result in the output box. Enigma is self-inverse, so decryption is the same operation as encryption.
Use a known test vector. With rotors I-II-III, all rings at 01, windows at AAA, reflector B and an empty plugboard, typing AAAAAAAAAA should give BDZGOWCXLT. An M4 with Beta at A, ring 01 and B-Thin in front of the same rotors gives the same result.
References
Technical and historical documentation, including original manuals and photographs.
Technical overview with rotor wiring tables and historical background.
The official Bletchley Park account of how Enigma was used and broken.
Related Tools
- Caesar Cipher Wheel: Encode, Decode & Brute Force Developer Encode or decode on an interactive Caesar cipher wheel, crack an unknown shift with all 25 brute-force results and frequency analysis. ROT13 included.
- Bcrypt Generator & Checker: Hash and Verify Passwords Developer Generate a bcrypt hash with cost 4 to 18 or check whether a password matches a $2a$, $2b$ or $2y$ hash. Runs in your browser; nothing is uploaded.
- JWT Decoder Online — Decode & Verify JSON Web Tokens Developer Decode and inspect JSON Web Tokens instantly — view header, payload, verify HMAC signatures, and generate JWT code in PHP, JavaScript, Python, and Java.
- ROT13 Decoder & Encoder Online (ROT47, ROT5, ROT18) Developer Decode or encode ROT13 as you type, plus ROT47, ROT5, ROT18 and any custom shift from 1 to 25. A letter map shows which pairs swap. Runs in your browser.
- ASCII Table Generator: Plain-Text & Markdown Tables Developer Turn CSV or typed data into a plain-text table: MySQL, Unicode box, rounded, double-line, Markdown, RST or minimal style. Copy it or download as .txt.