How Atbash works
Write the alphabet, then write it again underneath in reverse:
Plain: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Cipher: Z Y X W V U T S R Q P O N M L K J I H G F E D C B A
Replace each letter with the one below it. WIZARD becomes DRAZIW, which happens to be the same word backwards, a small coincidence of that particular word.
Because the table is symmetrical, there is no separate decoding step. Whatever turns A into Z also turns Z into A.
How to recognise and break it
Atbash has no key, so “breaking” it means only noticing that it has been used. Two signs:
- Common short words take fixed shapes.
THEis alwaysGSV,ANDis alwaysZMW,Aalone isZ,Ialone isR. - The letter frequencies are English frequencies mirrored: lots of V (for E) and G (for T).
If you are unsure what you are looking at, the cipher identifier tries Atbash along with everything else.
Mathematically, Atbash is a special case of the affine cipher, with multiplier 25 and shift 25.
Origins
Atbash was devised for the Hebrew alphabet and is one of the oldest known substitution ciphers, appearing in the Hebrew Bible around the sixth century BC. Its use there seems less about real secrecy than about wordplay or caution in naming a powerful enemy.
It has had a long afterlife in puzzles, geocaching and fiction, largely because it is so easy to do in your head once you have learned a handful of pairs.
Questions people ask
How do I decode Atbash?
Exactly the way you encode it. Atbash is its own inverse, so running a message through it a second time gives back the original. Paste the message into either pane above.
Where does the name come from?
From the Hebrew alphabet. The first letter, aleph, swaps with the last, tav; the second, bet, swaps with the second to last, shin. Aleph-tav-bet-shin gives "atbash".
Does Atbash appear in the Bible?
Yes. In the Book of Jeremiah, "Sheshach" is generally read as an Atbash spelling of "Babel" (Babylon), and "Leb Kamai" as an Atbash of "Kasdim" (Chaldea).