Free tools & games for everyone
Free · No sign-up · No accounts
Encrypt and decrypt with eleven historical ciphers, from Caesar and ROT13 to Vigenère and Playfair, and crack secret messages with letter statistics.
| Tab | Move between tabs, boxes and buttons |
|---|---|
| Enter or Space on a tab or button | Open the tab or press the button |
| Arrow keys in a number box | Change the shift, a, b or rails by one |
| Typing in the frequency box | Updates the counts as you type |
Caesar shifts each letter a fixed number of places; atbash reverses the alphabet; affine maps letter number x to (a x + b) mod 26, where a must have an inverse mod 26. Keyword substitution writes the key word (repeats dropped) followed by the unused letters as the cipher alphabet. Vigenère adds the key letters in turn (A = 0); Beaufort subtracts the message from the key, so it undoes itself; autokey starts with the key word and then continues with the message itself. Only letters use up key letters; other characters pass through.
The Polybius square and Playfair use a 5 × 5 square built from the key word, with I and J sharing a square. Playfair splits the message into pairs, puts X between doubled letters (Q between two Xs) and pads an odd last letter with X; a pair in one row moves right, in one column moves down, otherwise it swaps columns. Rail fence writes the letters in a zigzag over the rails and reads row by row. Columnar transposition writes the letters in rows under the key word and reads the columns in alphabetical order of the key letters (equal letters left to right), with no padding.
Cracking scores every candidate with the chi-squared distance between its letter counts and English letter frequencies (Lewand, 2000). For Vigenère the key length is the shortest length whose columns reach at least 90 % of the best average index of coincidence (Friedman, 1922); each column is then solved as a Caesar shift. Everything runs in your browser; nothing you type is sent anywhere.
A fresh daily puzzle every morning, and new tools added every month.
Browse every product