A workbench for secret writing
Every cipher has a seam.
Paste a message you can't read and watch it come apart, or choose a cipher and write one of your own. Twenty classical ciphers, each one explained, illustrated and breakable.
What you can do here
Write it, read it, break it.
Encode and decode
Every cipher has two panes that mirror each other. Type plain text in one and the secret appears in the other; paste a secret and it reads itself back.
Break it without the key
Eleven of the ciphers can be cracked automatically. The breaker tries keys, scores each attempt for how English it reads, and shows its working.
Understand why
Each page explains how the cipher works, where it came from, and the flaw that undid it, with a diagram that moves as you type.
The collection
Twenty ciphers, in four families
From a Spartan rod to the bytes in this page. The red line on each card is a real sample of that cipher.
Substitution
Every letter is swapped for another, always the same one.
Caesar cipher
Slide the whole alphabet a few places. The oldest trick in the book.
ROT13
A Caesar shift of exactly thirteen. Apply it twice to undo it.
Atbash cipher
The alphabet backwards. A is Z, B is Y, and so on down.
Affine cipher
Multiply, then add. A Caesar shift with a little algebra.
Substitution cipher
A fully scrambled alphabet. The cipher behind newspaper cryptograms.
Pigpen cipher
Letters drawn as fragments of a grid. The Freemasons' cipher.
Polyalphabetic
The swap changes from letter to letter, steered by a keyword.
Vigenère cipher
A keyword changes the shift for every letter. Unbroken for 300 years.
Beaufort cipher
Vigenère turned inside out. Encoding and decoding are the same step.
Autokey cipher
The message becomes its own key, so nothing ever repeats.
Playfair cipher
Enciphers letters in pairs on a 5×5 square. A wartime field cipher.
Transposition
The letters stay themselves but change places.
Codes & encodings
No secret key: just another way of writing.
Polybius square
Every letter becomes a row number and a column number.
Tap code
Letters as knocks on a wall. Used by prisoners of war.
Baconian cipher
Five As and Bs for every letter. Binary, three centuries early.
A1Z26 cipher
A is 1, B is 2 … Z is 26. Letters to numbers and back.
Morse code
Dots and dashes, with sound. The language of the telegraph.
Binary translator
Text as ones and zeros, the way a computer stores it. Hex too.
Base64
Any data as plain letters and digits. Everywhere on the web.
How a machine reads a secret
Classical ciphers were designed to be worked with pencil and paper, and they share a weakness: they leave fingerprints of the language underneath. English uses E far more than Z. It is full of THE and ING and TION. A cipher can disguise those habits, but until the twentieth century none could erase them.
The breakers on this site lean on that. They carry a table of how common every four-letter sequence is in English, and use it to give any piece of text a single score for how English it looks. Breaking a cipher then becomes a search: try a key, score the result, adjust, repeat. For a Caesar cipher that means 25 attempts. For a scrambled alphabet it means many thousands of small swaps, each kept only if the score improves.
All of it happens in your browser. Nothing you paste is uploaded, which also means it works offline once the page has loaded.