Military history, verified · sourced, not sanitized

Enigma Machine Simulator: A Working Wehrmacht Enigma I / M3 in Your Browser

A real, working simulator of the 3-rotor Wehrmacht Enigma I / M3, historically wired rotors I-V, reflectors UKW-B and UKW-C, plugboard included. Type a message and watch why no letter ever encrypts to itself.

Last updated 2026-08-03

Core summary

Pick three rotors, a reflector, and (optionally) plugboard pairs below, then type on the keyboard: the lamp that lights is driven by the same rotor wiring, stepping sequence, and double-stepping anomaly as the real 3-rotor Wehrmacht Enigma. Load the built-in verification message and it reproduces the published reference result — rotors I-II-III, reflector B, all settings at A, "AAAAA" becomes "BDZGO" — every time.

Left (slowest) rotor

A
start pos.

Middle rotor

A
start pos.

Right (fastest) rotor

A
start pos.

Reflector (UKW)

Plugboard (Steckerbrett) — up to 10 letter pairs

Lampboard

A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z

Keyboard

Output tape

What this simulates, specifically

"Enigma" was never one machine — commercial, diplomatic, Army, Air Force, and Navy versions all differed in rotor count and wiring. This tool models the 3-rotor Wehrmacht service Enigma (Enigma I), the version used by the German Army and Air Force from the 1930s onward and functionally identical, in 3-rotor mode, to the Kriegsmarine's M3. It offers the five rotors issued with that model (I through V, any three of which could be selected and ordered by the operator) and both service reflectors, UKW-B and UKW-C. It does not model the 4-rotor M4 that the Navy introduced for U-boat traffic in February 1942, which added a thin fourth rotor and paired reflectors (UKW-B thin / UKW-C thin) specifically to counter Allied progress against the 3-rotor machine.

The rotor wiring, notch positions, and reflector wiring used here are public-domain historical specifications (see Sources below), not approximations. The engine reproduces the exact stepping mechanism, including the double-stepping anomaly: when the middle rotor sits on its own turnover notch, it advances again on that keypress instead of waiting for the right rotor to push it, dragging the left rotor forward with it. That quirk is a side effect of the physical pawl-and-ratchet mechanism, not a design choice, and it's why Enigma's rotor cycle is shorter than a naive three-wheel odometer would suggest.

How a keypress actually becomes a lamp

Press a key and four things happen in order, all before the lamp lights. First, the rotors step (at least the right-hand rotor, sometimes more, per the anomaly above). Second, the signal passes through the plugboard, swapping any letter pair you've wired. Third, it runs right-to-left through all three rotors, each one a fixed substitution cipher offset by its current position. Fourth, it hits the reflector, which sends it back left-to-right through the same three rotors, then back through the plugboard, and only then lights a lamp.

That reflector round trip is what makes Enigma reciprocal: with identical settings, encrypting a ciphertext produces the original plaintext back, which is also exactly why an operator and a receiving station could use the same machine, same settings, for both directions. It's also the source of Enigma's one unbreakable structural weakness — see the FAQ below on why no letter ever maps to itself.

From this simulator to a real wartime message

Our Zimmermann Telegram piece covers a diplomatic cipher intercepted and decoded by hand a generation before Enigma existed; our Navajo Code Talkers piece covers a wholly different wartime solution to the same problem, a code with no machine at all. Enigma sits between those two approaches: a machine cipher meant to be fast enough for daily battlefield traffic and, its designers believed, mathematically secure against the kind of manual cryptanalysis that broke the Zimmermann cable. Load the verification message above to see the kind of check real operators ran, a known plaintext and known settings, used to confirm two machines agreed before trusting them with an actual order.

Frequently asked questions

01

Which Enigma model does this simulator recreate?

The 3-rotor Wehrmacht service Enigma, commonly called Enigma I (used by the German Army and Air Force) and functionally identical to the Kriegsmarine M3 in this 3-rotor mode. It uses the five interchangeable rotors (I-V) and two reflectors (UKW-B, UKW-C) issued with that model. It does not simulate the 4-rotor naval M4 used for U-boat traffic from 1942 onward, which added a thin fourth rotor and a different reflector pair.

02

Why does the rotor position change even for a repeated letter?

Because Enigma steps at least one rotor before encrypting every keypress, including repeats. Typing the same letter twice in a row almost always produces two different output letters, since the rotor wiring in use has already changed between the two presses. That's also why the tool always steps the rotors before showing you the lamp, exactly like the physical machine did.

03

Why did no letter ever encrypt to itself?

Every signal has to pass through the reflector (UKW) before coming back out, and the reflector wiring is a fixed pairing of letters with no letter wired to itself. That guarantees the output can never equal the input, on any rotor combination, any settings. Press "Type A 26 times" above to see it hold across a full alphabet in this simulator. Historically, this quirk was one of the cribs Polish and British codebreakers leaned on: any suspected plaintext word that lined up with a matching ciphertext letter in the same position could be ruled out immediately, sharply narrowing the search.

04

Is the plugboard required to use this simulator?

No. Leave the plugboard field empty to run the machine in its unsteckered state (as some early configurations and lower-security traffic did). Wartime Enigma I standard procedure specified 10 plugboard pairs, which you can enter as space-separated letter pairs, e.g. "AB CD EF GH IJ".

05

Can I embed this simulator on my own site?

Yes — the "Embed this tool" section below has a ready-to-paste iframe snippet. The embedded version is the same working machine with the site chrome removed, and keeps a small attribution link back to this page.

Embed this tool

Paste this snippet into a cryptography course page, museum education page, or history blog post to get the same working simulator, free to use, with the attribution link left in place.

WC

WarCrumbs Editorial Team

Editorial review