Cipher Encoder Decoder | Encode and crack classic ciphers
Encode and decode Caesar, ROT13, ROT47, Atbash, Vigenere, A1Z26 and Bacon ciphers. Includes a brute force table showing all 25 Caesar shifts at once so you can crack a message without the key.
What each cipher does
All of these are classical ciphers. They are good for puzzles, games and teaching, and none of them is secure against a computer.
- Caesar shift. Moves every letter a fixed number of places along the alphabet. A shift of 3 turns A into D. Named after Julius Caesar, who used it for military messages.
- ROT13. A Caesar shift of exactly 13. Because the alphabet has 26 letters, applying it twice returns the original, which is why it became the standard way to hide spoilers online.
- ROT47. Like ROT13 but covering all visible ASCII characters, so digits and punctuation are scrambled too. Also its own inverse.
- Atbash. Mirrors the alphabet: A becomes Z, B becomes Y. It originated in Hebrew scribal tradition and needs no key at all.
- Vigenere. Uses a keyword to apply a different Caesar shift to each letter in turn. It resisted codebreaking for three centuries and was nicknamed the indecipherable cipher.
- A1Z26. Simply numbers the alphabet: A is 1, Z is 26. Common in puzzle books and escape rooms.
- Bacon. Encodes each letter as a five-character group of A and B. Francis Bacon designed it so a message could be hidden in the styling of an innocent text.
How to crack a cipher you cannot read
Start by counting letters. If the letter frequencies look like normal language but the letters are wrong, it is probably a simple substitution such as Caesar or Atbash, and the brute force table on this page will solve a Caesar in seconds. If the frequencies look unusually flat, a keyword cipher such as Vigenere is likely, because it spreads each letter across several different shifts. Groups of five A and B characters point to Bacon, and numbers from 1 to 26 point to A1Z26.
Good to know
- None of these ciphers is secure. Use them for puzzles and teaching, never for anything you actually need to protect.
- Spaces and punctuation are left untouched by most of these, which is itself a clue for anyone trying to break the message.
- A Caesar shift of 13 is exactly ROT13, and a shift of 26 leaves the text unchanged.
- The processing all happens on our server, so nothing you type is stored or logged.