⚙️ Enigma Simulator
A universal Enigma simulator: 17 historical models (Wehrmacht I, Navy M3, U-boat M4, Norenigma, Sonder-Enigma, commercial D and K, Swiss-K, Railway, Tirpitz, KD with rewirable UKW-D, Zählwerk A28/G31 and the Abwehr G machines), a Custom mode, the Swedish Enigma B (A-133) and the numbers-only Enigma Z30. Use the model menu on every tab. Everything runs in your browser.
Current rotor positions
Result
Enigma Simulator
A universal Enigma simulator: 17 historical models (Wehrmacht I, Navy M3, U-boat M4, Norenigma, Sonder-Enigma, commercial D and K, Swiss-K, Railway, Tirpitz, KD with rewirable UKW-D, Zählwerk A28/G31 and the Abwehr G machines), a Custom mode, the Swedish Enigma B (A-133) and the numbers-only Enigma Z30. Use the model menu on every tab. Everything runs in your browser.
Parts of the machine
Enigma I
The standard German Army and Air Force machine: three rotors chosen from five, reflectors A, B or C and a plugboard.
I · II · III · UKW-B · AAA: HELLOWORLD → ILBDAAMTAZ
Enigma M3
The Navy version with three rotors chosen from eight (I–VIII) and reflectors B or C.
I–VIII · UKW-B / UKW-C: HELLOWORLD → ILBDAAMTAZ
Enigma M4
The U-boat machine with a fourth, non-stepping Greek rotor (Beta or Gamma) and thin reflectors.
Beta · I · II · III · UKW-B thin · AAAA: HELLOWORLD → ILBDAAMTAZ
Rotor
Rotors are wired discs that scramble each letter. The right one steps on every key; notches carry the movement to the next, including the famous double step.
I: EKMFLGDQVZNTOWYHXUSPAIBRCJ (Q)
Reflector
The reflector sends the signal back through the rotors by another path, so encrypting twice restores the text and no letter can become itself.
B: A↔Y, B↔R, C↔U, D↔H …
Plugboard
The plugboard swaps up to 10 pairs of letters before and after the rotors, adding most of the machine's possible settings.
AB CD EF: A↔B, C↔D, E↔F
Ring setting · Start position
The ring setting shifts the wiring relative to the alphabet ring; the start position is the letter shown in each window at the start of the message.
01 · A / A / A
When to use
- Learning how the WWII cipher machine worked
- Solving puzzles, escape rooms and CTF challenges
- Teaching cryptography and history
- Checking messages from historic examples
How to use
- Choose the model, rotors, ring settings, start positions, reflector and plugboard
- Type on the virtual keyboard or into the message field
- Read the result; the lamp shows the last output letter
- To decrypt, enter the same settings and type the ciphertext
FAQ
How does the Enigma machine work?
Each key press first moves the rotors, then sends current through the plugboard, three or four rotors, the reflector and back. The result lights a lamp. Because the rotors move on every key, the same letter is encrypted differently each time.
Why can no letter be encrypted as itself?
The reflector pairs every letter with a different one, so the signal can never return to the same letter. This weakness helped codebreakers at Bletchley Park.
How do I decrypt a message?
Enigma is reciprocal: set the machine to the same rotors, rings, start positions and plugboard, and type the ciphertext. The plaintext comes out.
How many settings did Enigma I have?
With three of five rotors, start positions and a 10-cable plugboard there are about 1.59 × 10²⁰ combinations, not counting the ring settings.
Is this simulator accurate?
Yes. It models the real wiring of rotors I–VIII, Beta, Gamma and reflectors A, B, C and thin B and C, including the double-stepping anomaly. It reproduces published test vectors.
Is my text sent to a server?
No. Everything is calculated in your browser.