Enigma Machine Simulator: M3 & M4 Emulator Online

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

Model:
Reflector:
Rotor Assembly Active
LEFT
A
Ring
01
MID
A
Ring
01
RIGHT
A
Ring
01
Q
W
E
R
T
Y
U
I
O
P
A
S
D
F
G
H
J
K
L
Electrical Signal Flow
KEY → PLUG → R-III → REFLECT → R-III↩ → LAMP — press a key above to see the signal path
Steckerbrett (Plugboard)

Click two letters to connect them (10 pairs remaining)

Input Plaintext 0 chars
Encrypted Output
Tip: To decrypt, use identical settings and enter the ciphertext

How to Use the Enigma Machine

1. Choose a Model

Select M3 (standard 3-rotor) or M4 (4-rotor Naval). M4 auto-switches to thin reflectors.

2. Set Your Rotors

Pick which rotor goes in each slot (I–VIII), set the starting position (letter in the window), and optionally adjust the ring setting.

3. Configure the Reflector

Choose reflector B or C (B-Thin / C-Thin for M4). Both parties must use the same reflector to communicate.

4. Wire the Plugboard

Click two letters to connect them. Up to 10 pairs. Each pair swaps those letters before and after the rotor pass.

5. Type or Paste Text

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.

6. Decrypt

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

Factor
Combinations
Rotor choice (3 of 5)
60 combinations
Rotor starting positions
26³ = 17,576
Ring settings (not in the total)
26² = 676
Plugboard (10 pairs)
~150 trillion
Total
≈ 158,962,555,217,826,360,000

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.

References

Related Tools