How the Atbash Cipher Works
Master the ancient art of Hebrew encryption with our step-by-step guide
Follow along with our Interactive Tool to practice as you learn!
What You'll Learn
✓ Core Concepts
- • How the Atbash substitution works
- • The relationship between letters
- • Why it's called "Atbash"
- • Historical context and usage
✓ Practical Skills
- • Encode messages by hand
- • Decode cipher text easily
- • Recognize Atbash patterns
- • Apply to different alphabets
Understanding the Atbash Cipher
What is Atbash?
The Atbash cipher is a substitution cipher where each letter is replaced with its mirror letter from the reversed alphabet. It's like folding the alphabet in half and matching letters from opposite ends.
Why "Atbash"?
The name comes from Hebrew: Aleph-Taw-Beth-Shin. These are the first, last, second, and second-to-last letters of the Hebrew alphabet, demonstrating the cipher's principle.
The Alphabet Mapping
Each letter in the top row corresponds to the letter directly below it
Key Insight
The Atbash cipher is its own inverse! This means applying it twice returns the original text. Encoding and decoding use the exact same process.
Step-by-Step Encoding Guide
Write down the English alphabet
Start with the standard English alphabet from A to Z.
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 ZStandard alphabet sequenceWrite the reversed alphabet below
Below each letter, write the alphabet in reverse order (Z to A).
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 ZZ Y X W V U T S R Q P O N M L K J I H G F E D C B AFind your letter in the top row
For each letter in your message, locate it in the standard alphabet (top row).
Letter 'H' in top rowPosition 8 from leftReplace with the letter below
Replace each letter with the corresponding letter in the bottom row (reversed alphabet).
H → SEach letter maps to its mirror positionQuick Reference
- • A ↔ Z (1st ↔ 26th)
- • B ↔ Y (2nd ↔ 25th)
- • M ↔ N (13th ↔ 14th)
Position + Reverse Position = 27
Example: A(1) + Z(26) = 27
Simple Word
HELLOSVOOLLetter-by-Letter Breakdown:
Place Name (Latin Letters)
BABELYZYVOLetter-by-Letter Breakdown:
Mixed Case Sentence
Secret MessageHvxivg NvhhztvLetter-by-Letter Breakdown:
Practice Exercises
Exercise 1: Encode These Words
CRYPTOClick for answer
XIBKGLANCIENTClick for answer
ZMXRVMGHEBREWClick for answer
SVYIVDExercise 2: Decode These Messages
HVXIVGClick for answer
SECRETXRKSVIClick for answer
CIPHERNLWVIMClick for answer
MODERNInteractive Practice
Ready to try with our online tool? Practice encoding and decoding in real-time!
Use Interactive ToolAdvanced Topics
Historical Applications
Found in Jeremiah 25:26 and 51:41, where “Babel” becomes “Sheshach” in Hebrew Atbash [1].
Used to conceal sensitive names and locations in ancient Hebrew texts.
Mathematical Properties
Atbash is its own inverse: Atbash(Atbash(x)) = x
For position p: encoded_position = alphabet_length + 1 - p
Comparison with Other Ciphers
| Cipher | Method | Security | Era |
|---|---|---|---|
| Atbash | Mirror substitution | Very Low | Ancient (around the 6th century BCE; exact date unknown) |
| Caesar | Fixed shift | Very Low | Classical (50 BCE) |
| Vigenère | Keyword-based | Low-Medium | Renaissance (1553) |
Security Warning
The Atbash cipher provides no real security and can be broken instantly by frequency analysis or pattern recognition. Never use it for actual encryption needs.
Practice the Atbash Cipher in the Tool
Now that you understand how it works, put your knowledge to practice!