Complete Tutorial

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

The fundamental principle behind this ancient encryption method

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

A
Z
B
Y
C
X
D
W
E
V
F
U
G
T
H
S
I
R
J
Q
K
P
L
O
M
N
N
M
O
L
P
K
Q
J
R
I
S
H
T
G
U
F
V
E
W
D
X
C
Y
B
Z
A

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

Learn how to encode messages using the Atbash cipher
1

Write down the English alphabet

Start with the standard English alphabet from A to Z.

Input:
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
Result:
Standard alphabet sequence
2

Write the reversed alphabet below

Below each letter, write the alphabet in reverse order (Z to A).

Input:
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
Result:
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
3

Find your letter in the top row

For each letter in your message, locate it in the standard alphabet (top row).

Input:
Letter 'H' in top row
Result:
Position 8 from left
4

Replace with the letter below

Replace each letter with the corresponding letter in the bottom row (reversed alphabet).

Input:
H → S
Result:
Each letter maps to its mirror position

Quick Reference

Remember:
  • • A ↔ Z (1st ↔ 26th)
  • • B ↔ Y (2nd ↔ 25th)
  • • M ↔ N (13th ↔ 14th)
Formula:

Position + Reverse Position = 27

Example: A(1) + Z(26) = 27

Simple Word

HELLO
SVOOL

Letter-by-Letter Breakdown:

H
S
(8th letter → 8th from end)
E
V
(5th letter → 5th from end)
L
O
(12th letter → 12th from end)
L
O
(12th letter → 12th from end)
O
L
(15th letter → 15th from end)

Place Name (Latin Letters)

BABEL
YZYVO

Letter-by-Letter Breakdown:

B
Y
(2nd letter → 2nd from end)
A
Z
(1st letter → 1st from end)
B
Y
(2nd letter → 2nd from end)
E
V
(5th letter → 5th from end)
L
O
(12th letter → 12th from end)

Mixed Case Sentence

Secret Message
Hvxivg Nvhhztv

Letter-by-Letter Breakdown:

S
H
(Preserves original case)
e
v
(Lowercase remains lowercase)
c
x
(Each letter transforms independently)

Practice Exercises

Test your understanding with these exercises

Exercise 1: Encode These Words

CRYPTO
Click for answerXIBKGL
ANCIENT
Click for answerZMXRVMG
HEBREW
Click for answerSVYIVD

Exercise 2: Decode These Messages

HVXIVG
Click for answerSECRET
XRKSVI
Click for answerCIPHER
NLWVIM
Click for answerMODERN

Interactive Practice

Ready to try with our online tool? Practice encoding and decoding in real-time!

Use Interactive Tool

Advanced Topics

Deeper insights into the Atbash cipher and its applications

Historical Applications

Biblical Usage:

Found in Jeremiah 25:26 and 51:41, where “Babel” becomes “Sheshach” in Hebrew Atbash [1].

Manuscript Protection:

Used to conceal sensitive names and locations in ancient Hebrew texts.

Mathematical Properties

Involution:

Atbash is its own inverse: Atbash(Atbash(x)) = x

Formula:

For position p: encoded_position = alphabet_length + 1 - p

Comparison with Other Ciphers

CipherMethodSecurityEra
AtbashMirror substitutionVery LowAncient (around the 6th century BCE; exact date unknown)
CaesarFixed shiftVery LowClassical (50 BCE)
VigenèreKeyword-basedLow-MediumRenaissance (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!