Free Cipher Tools
Encrypt and decrypt messages with classical and historical ciphers. From the Enigma machine to the Playfair cipher to the One-Time Pad, explore the history of cryptography interactively in your browser.
Explore Classical Ciphers Online
Before computers and AES-256, nations and spies relied on ingenious mechanical and pen-and-paper ciphers to protect their secrets. This collection of 15 cipher tools lets you encrypt and decrypt messages using the same methods that shaped military history, inspired literature, and laid the foundations of modern cryptography. Each tool is interactive, educational, and runs entirely in your browser.
World War II Ciphers
The Enigma Machine Simulator is a faithful digital recreation of the Enigma I used by the German military. Configure rotor selections (I through V), ring settings, initial positions, and plugboard connections to encrypt and decrypt messages. The ADFGVX cipher, used by the German Army in World War I, combines a Polybius square substitution with columnar transposition - our ADFGVX Cipher tool implements both steps.
Substitution Ciphers
The Polybius Square replaces each letter with a pair of coordinates from a 5x5 grid, a technique invented in ancient Greece. The Baconian Cipher encodes letters as sequences of A's and B's (essentially binary), which can be hidden in plain text using font variations - an early form of steganography. The Playfair Cipher encrypts pairs of letters using a keyword-based grid, making it resistant to simple frequency analysis.
Transposition Ciphers
The Rail Fence Cipher writes plaintext in a zigzag pattern across a specified number of rails, then reads off each rail sequentially. The Columnar Transposition writes text into rows of a fixed width determined by a keyword, then reads columns in the order specified by alphabetically sorting the keyword. The Scytale Cipher simulates the ancient Spartan device that wrapped parchment around a cylinder to encode messages.
Theoretically Unbreakable Encryption
The One-Time Pad (OTP) is the only encryption method proven to provide perfect secrecy. When used with a truly random key at least as long as the message, used only once, and kept secret, no amount of computation can break it. The tool generates random keys and performs XOR-based encryption and decryption, demonstrating why OTPs remain relevant in ultra-high-security contexts.
Communication and Encoding Systems
The Tap Code was used by prisoners of war to communicate by tapping on walls, based on a modified Polybius square. The Baudot / ITA2 Code Decoder translates text into the 5-bit encoding used by telegraph and teletype machines. The T9 Phone Decoder converts between text and classic phone keypad sequences. The Letters to Numbers (A1Z26) tool maps letters to their alphabetical positions.
Fictional and Creative Ciphers
The Dancing Men Cipher from Sherlock Holmes renders messages as stick figures. The Vanity Phone Number Converter transforms phone numbers into memorable words. These tools bridge the gap between serious cryptography education and creative entertainment, making cipher-based puzzles accessible for escape rooms, geocaching, and classroom activities.
Frequently Asked Questions
What is the Enigma machine?
The Enigma machine was an electromechanical cipher device used by Nazi Germany during World War II. It used a series of rotating discs (rotors), a plugboard (Steckerbrett), and a reflector to create a polyalphabetic substitution cipher with an astronomical number of possible settings. Our simulator faithfully recreates the Enigma I with configurable rotor selections, ring settings, initial positions, and plugboard connections.
What is the difference between substitution and transposition ciphers?
Substitution ciphers replace each letter with a different letter or symbol while keeping the order unchanged - examples include Caesar, Playfair, and Enigma. Transposition ciphers rearrange the positions of letters without changing the letters themselves - examples include Rail Fence, Columnar Transposition, and Scytale. Many historical ciphers like ADFGVX combine both techniques for stronger encryption.
What is a One-Time Pad?
A One-Time Pad (OTP) is the only encryption method mathematically proven to be unbreakable when used correctly. It works by XOR-ing each character of the plaintext with a random key that is at least as long as the message. The key must be truly random, used only once, and kept secret. Our tool generates random keys and performs OTP encryption and decryption in your browser.
How does the Playfair cipher work?
The Playfair cipher encrypts pairs of letters (digraphs) instead of individual letters. A 5x5 grid is filled with the alphabet using a keyword. Letter pairs are encrypted based on their positions in the grid using three rules: same row (shift right), same column (shift down), and different row/column (form a rectangle and swap). This makes frequency analysis much harder than simple substitution ciphers.
Can I use these ciphers for real security?
No. Classical ciphers are educational tools and historical curiosities - they are all broken by modern cryptanalysis. For real security, use modern encryption like AES-256 (available in our Cryptography Tools section). These cipher tools are valuable for learning about cryptography fundamentals, solving puzzles, creating escape rooms, geocaching, and teaching computer science concepts.