
Classic ciphers
Ten classic pencil-and-paper ciphers in one tool: pick one, set its key, and encrypt or decrypt. Useful for puzzle hunts, escape rooms, geocaching and CTF warm-ups.
Runs in your browser. Nothing you type is sent anywhere.
How to use it
- Choose a cipher.
- Set its key or numbers (each cipher shows its own).
- Type your text and pick Encrypt or Decrypt. The result updates as you type.
The ciphers
- Atbash: the alphabet reversed (A↔Z), from Hebrew scribal tradition.
- Affine: each letter x becomes a·x + b, modulo 26.
- Rail fence: written in a zig-zag over several rails, then read off rail by rail.
- Columnar transposition: written in rows under a key word, read off column by column in the key's alphabetical order.
- Playfair: pairs of letters in a 5×5 key square; used by the British in the Boer War and the First World War.
- Polybius square: each letter becomes its row and column number.
- Bacon's cipher: Francis Bacon's five-letter A/B code for each letter, made to be hidden in two typefaces.
- Beaufort: a Vigenère cousin where encrypting and decrypting are the same step.
- A1Z26: A=1 to Z=26.
- ROT47: rotates all printable ASCII characters.
Each is tested against the classic worked examples, such as Playfair's “hide the gold in the tree stump”.
Questions
Which cipher is my puzzle?
Only 1s to 5s in pairs: Polybius. Only A and B: Bacon. Numbers up to 26: A1Z26. Letters in pairs with no double letters: Playfair. The same letters as English but shuffled: a transposition (rail fence or columnar). Otherwise try the Caesar, Vigenère and substitution tools.
Can I link to one cipher?
Yes: add ?c= and the name, for example /classic-ciphers/?c=playfair.
