Atbash Cipher Encoder
Encode text with the Atbash cipher right in your browser, or switch to any other classical cipher.
Input
Output
Guide
What is the Atbash cipher?
The Atbash cipher writes the alphabet backward: A becomes Z, B becomes Y, and so on, until Z becomes A. It began as a cipher for the Hebrew alphabet, and its name joins the first, last, second and second-to-last Hebrew letters: aleph, taw, bet and shin. Bible commentators read the name Sheshach in the Book of Jeremiah as Babylon written in Atbash. It has no key, so anyone who knows the trick can read it. That simplicity makes it a good first cipher for puzzle books, treasure hunts, escape rooms and secret notes.
How the backward alphabet works
Fold the alphabet in half, and each letter trades places with the one across from it:
A B C D E F G H I J K L M
Z Y X W V U T S R Q P O NG and T swap, and so do A and Z, so Garden party becomes Tziwvm kzigb. The swap works both ways, so running Atbash again gives back the original. No letter keeps its place, not even M and N in the middle.
Tool description
Start typing in the Plain text box, or paste a whole message, and the Atbash version builds up in the Cipher text box, ready to copy. The Key field reads Not needed, since the backward alphabet is the whole cipher. Insert sample fills in See you at the park at noon, which turns into Hvv blf zg gsv kzip zg mllm. To read an Atbash message, paste it into the Atbash Cipher Decoder, or use the swap button between the boxes: it puts the Atbash text on the input side and shows your message again. The Cipher menu switches the same boxes to other classical ciphers, from A1Z26 numbers to Playfair.
Examples
| Plain text | Cipher text |
|---|---|
Happy birthday! |
Szkkb yrigswzb! |
Picnic by the lake |
Krxmrx yb gsv ozpv |
Fresh bread at 8:30 |
Uivhs yivzw zg 8:30 |
Kites fly best on windy days |
Prgvh uob yvhg lm drmwb wzbh |
Café au lait |
Xzuv zf ozrg |
What changes and what stays
- The tool swaps the letters A to Z and nothing else, and each keeps its case: the capital P of
Picnicbecomes the capital K ofKrxmrx. - Digits, spaces and punctuation stay put, so word lengths don't change, and times or prices stay readable.
- Accented letters lose their accents: the
éofCafébecomesv, just asedoes, and decodes back to a plaine. - Letters such as
ßandæstay as they are, and so do Greek, Cyrillic and Hebrew letters, even though Atbash began in Hebrew.
Good to know
- Some words turn into other words:
holdbecomesslow,glowbecomestold, andwizardbecomesdraziw, which is wizard spelled backward. - Atbash is a special case of the affine cipher: in the Cipher menu, the affine cipher with Multiplier (a) and Shift (b) set to 25 gives the same result.
- The whole tool runs in your browser, so the text you type isn't sent anywhere.