Enigma Machine Simulator

Historically accurate online Enigma I (Wehrmacht, M3) simulator for encrypting and decrypting messages with rotors I-V, UKW-B/C reflectors, ring settings, rotor positions and plugboard pairs.

Plugboard (Steckerbrett)
Input
0 chars · 0 bytes
Try:
Result
✓ Historically accurate Enigma I (Wehrmacht, 1939) ✓ Reciprocal cipher: same settings encrypt and decrypt ✓ We never store your messages ✓ Processed on our server
Examples
Default settings Key: I-II-III · A-A-A · UKW-B
Input HELLO WORLD
Output ILBDA AMTAZ

Rotors I-II-III, reflector UKW-B, rings A-A-A, positions A-A-A, no plugboard.

With plugboard Key: I-II-III · M-C-K · UKW-B · AB CD EF
Input ATTACK AT DAWN
Output VXLLMV EL MTDA

Rotors I-II-III, positions M-C-K, plugboard AB CD EF (3 pairs).

Decrypt example Key: I-II-III · A-A-A · UKW-B
Input ILBDA AMTAZ
Output HELLO WORLD

Same settings as example 1 — Enigma is reciprocal.

Reflector C and custom rings Key: IV-V-I · X-Y-Z · UKW-C · AT BS DE FG IJ
Input CRYPTO
Output VFLULK

Reflector UKW-C, rotors IV-V-I, rings B-C-D, positions X-Y-Z and plugboard AT BS DE FG IJ.

How the Enigma machine works

The Enigma machine is an electromechanical rotor cipher used by Nazi Germany before and during World War II. Each key press routes the signal through the plugboard, the right, middle and left rotors, a reflector, then back through the same rotors and plugboard in reverse, producing the lampboard letter.

Because the reflector makes the path reciprocal, the same machine configuration both encrypts and decrypts. The rotors step before each letter is processed - including the historical double-stepping behavior - so the substitution alphabet changes continuously throughout the message.

This online simulator focuses on the standard Enigma I / M3 workflow: set the daily key, type plaintext or ciphertext, then use the same settings to reverse the result.

Configuring the simulator

This simulator models the standard Enigma I machine with five available rotors (I, II, III, IV, V) and two reflectors (UKW-B and UKW-C). Choose three different rotors for the left, middle and right slots; repeated rotors are rejected because a real three-rotor setup used distinct wheels.

For every rotor you can set the ring setting (Ringstellung) and the visible starting position (Grundstellung). The ring changes the internal wiring offset and notch timing, while the starting position is the letter shown in the rotor window before the first key press.

The optional plugboard (Steckerbrett) accepts pairs such as AB CD EF. Spaces, commas and dashes are treated as separators; each letter can appear in only one pair, self-pairs are invalid, and the simulator allows up to 13 pairs. Historically, operators often used 10 plugboard pairs.

What the online tool shows

The tool includes a visual machine-state panel for the reflector, rotor order, current window letters, ring markers, plugboard pairs and the number of processed letters. After a run, it also shows the final rotor positions so you can see exactly how far the machine advanced.

Non-Latin characters, spaces, punctuation and line breaks are preserved in the output, while only A-Z letters advance the rotors and count as processed letters. Letter case is preserved, which makes the simulator convenient for short notes, classroom examples and cipher puzzle checking.

Use Reset positions to return rings, positions and plugboard to the default state, or Randomize to generate random ring settings, rotor positions and plugboard pairs while keeping the selected rotor order valid.

How to encrypt and decrypt

To encrypt a message, choose the reflector, rotor order, ring settings, starting positions and plugboard, then enter the plaintext. The output is the Enigma ciphertext produced by that exact configuration.

To decrypt, enter the ciphertext and restore the same settings used for encryption. Because Enigma is reciprocal, there is no separate mathematical decrypt mode: the interface labels the direction for clarity, but the same signal path is used both ways.

For historical notation, you can read the compact key summary as rotors|rings|positions|reflector|plugboard. For example, I,II,III|A,A,A|M,C,K|B|AB CD EF means rotors I-II-III, rings A-A-A, starting windows M-C-K, reflector UKW-B and three plugboard pairs.

FAQ

This is the standard Enigma I (M3) used by the Wehrmacht. It has three rotor slots and ships with rotors I–V and reflectors UKW-B and UKW-C. The naval M4 with a fourth (thin) rotor is not included.

The reflector at the end of the signal path sends the signal back through the rotors along a different route. This makes every wiring reciprocal: if A encrypts to D at a given machine state, D encrypts back to A from the same state. As a consequence, no letter is ever encrypted to itself.

Normally the right rotor steps with every key press and triggers the middle rotor when it reaches its notch. But the middle rotor also steps when its own notch is active, carrying the left rotor with it. This creates two consecutive steps of the middle rotor, and the simulator reproduces that historical mechanical behavior.

Enter pairs of letters separated by spaces, dashes or commas, e.g. AB CD EF. Each letter may appear in only one pair and cannot be paired with itself. Up to 13 pairs are allowed. Leave the field empty to disable the plugboard.

The starting position is the visible rotor-window letter before typing begins. The ring setting shifts the alphabet ring relative to the rotor wiring, changing the internal offset and turnover behavior. Two keys with the same rotor order and start positions can produce completely different text if their ring settings differ.

No. Modern computers brute-force any historic Enigma key in seconds. Even in WWII the cipher was broken by Polish and British cryptographers (Marian Rejewski, Alan Turing and others) using captured material, message indicators and statistical attacks at Bletchley Park. The simulator is intended for education and exploration.

No. The simulator preserves punctuation, spaces, digits and line breaks in the output, but only Latin letters A-Z are encrypted and advance the rotors. This lets you keep readable formatting while still matching the letter-by-letter Enigma process.

The service follows the practical Enigma I setup: the left, middle and right slots must use three distinct rotors selected from I, II, III, IV and V. If the same rotor is selected twice, the API rejects the configuration instead of producing a non-historical setup.

Yes, as long as the example uses Enigma I/M3 with rotors I-V, reflector UKW-B or UKW-C, three rotor windows, ring settings and an optional plugboard. Examples that require the naval M4 fourth rotor, Greek rotors or other Enigma variants are outside this simulator.
Related tools

Caesar Cipher

Classic letter-shift cipher with custom shift values.

XOR Cipher

Online XOR encryption and decryption with text or hex keys.

Playfair Cipher

Classic digraph substitution cipher with keyword matrix encryption.