Atbash Cipher

The Atbash cipher replaces each letter with its mirror in the alphabet, A with Z, B with Y and so on, so Hello, World! becomes Svool, Dliow!

Input

Atbash is its own inverse: running it twice gives back your text, so there is no Encode or Decode switch. Paste a coded message to read it.

Works on A to Z. Case is kept; digits, punctuation, accented letters and other alphabets are left as typed.

Atbash result

Reverse Alphabet Cipher Chart

The mirror alphabet. Each pair works both ways: A = Z and Z = A. In A1Z26 numbers each pair adds up to 27.

  • 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

Why use our Atbash Cipher?

One Box, Both Directions

Atbash is its own inverse, so the same box hides a message and reveals the reply. There is no mode switch to get wrong.

Case and Symbols Kept

Capitals stay capitals and small letters stay small. Digits, punctuation, accented letters and other alphabets are left exactly as typed.

Runs in Your Browser

The letter swap happens on your device as you type. Your message is not uploaded, saved or shared.

What is the Atbash Cipher?

The Atbash cipher is a substitution cipher that swaps each letter for the one at the same distance from the other end of the alphabet: the first letter with the last, the second with the second to last. It was first used with the Hebrew alphabet (Atbash on Wikipedia).

Because the swap is a mirror, applying it twice returns the original, and there is no key or shift to agree on. That makes it easy to teach and handy for puzzles, and it also means it hides nothing from anyone who knows the trick. This page applies it to the Latin letters A to Z.

Atbash Decoder: Encoding and Decoding Are the Same Step

  • Round trip:Wizard becomes Draziw, and Draziw becomes Wizard again.
  • Reversed word:Read draziw backwards and you get wizard: inside this word W pairs with D, I with R and Z with A, so the cipher and the reversed word match.
  • Common letters:Every letter moves, common ones included: E becomes V, T becomes G and A becomes Z.
  • Word pairs:Some real words are Atbash pairs: hold becomes slow.
  • No fixed point:No letter maps to itself: with 26 letters, M pairs with N.
  • Kept as typed:Case is kept and everything else is left alone: Zebra 42! becomes Avyiz 42!, and Café becomes Xzué.

Common Use Cases

Puzzle Hunts and Escape Rooms

Hide a clue in mirror letters. Players who spot the pattern can decode it with the chart or by pasting it here.

Teaching Substitution

Show how a fixed letter swap works before moving on to ciphers that need a key or a shift.

Reading Bible Commentary

Follow the Jeremiah examples commentators cite, where Sheshach stands for Babel, one Hebrew letter at a time.

Checking a Coded Line

Got text that looks like scrambled English, such as Svool? Paste it in; if it is Atbash, plain words appear at once.

Notes Between Friends

Write a short message a friend can read without any shared key, only the knowledge that it is Atbash.

Two-Step Puzzles

Turn the Atbash output into numbers with the A1Z26 cipher, or into dots and dashes with the Morse code translator.

How to Use the Atbash Cipher

1

Type or paste

Type a message, or paste Atbash text you want to read, into Text.

2

Read the result

The output updates as you type. The same step encodes and decodes, so there is nothing to switch.

3

Check the pairs

Compare any letter with the Reverse Alphabet Cipher Chart above; every pair works in both directions.

4

Copy or clear

Press Copy Atbash text to copy the result, or Clear to start again. Everything runs in your browser.

Atbash, Caesar and ROT13

Reflect, Not Shift

Atbash reflects the alphabet; a Caesar cipher shifts it. A Caesar message needs its shift, from 1 to 25, before you can decode it; Atbash has no setting, so one box does both.

A Special Affine Case

Atbash is a special case of the affine cipher: number the letters A = 0 to Z = 25 and each letter x becomes (25x + 25) mod 26 (Atbash on Wikipedia).

Only One Shift Matches

Of the 25 Caesar shifts, only shift 13 is its own inverse like Atbash. That shift is the ROT13 encoder.

No Key, No Security

Atbash has no key, so it gives no real security (Atbash on Wikipedia). Use it for games and puzzles, never for secrets.

Pairs Add Up to 27

In A1Z26 numbers both letters of a pair add up to 27: A is 1 and Z is 26, M is 13 and N is 14.

A Different Kind of Code

Morse code swaps letters for signals rather than for other letters. For that kind of code, try the Morse code translator.

Where Atbash Comes From: Hebrew and the Book of Jeremiah

  • •The name: Its name joins Aleph, Taw, Bet and Shin, the first, last, second and second to last letters (Atbash on Wikipedia), which is the whole pattern of the cipher.
  • •Sheshach: Sheshach in Jeremiah 25:26 and 51:41 is read as Atbash for Babel: בבל becomes ששך, because Bet pairs with Shin and Lamed with Kaph.
  • •Lev-kamai: Lev-kamai in Jeremiah 51:1 is read as Atbash for Kasdim, the Chaldeans: כשדים becomes לבקמי. The KJV translates the phrase instead of spelling it out.
  • •Latin only here: This tool works on the Latin A to Z only. Hebrew letters you type are left as typed.

Encode or Decode Atbash Now

Paste a coded line to read it, or type a new message to hide it. The output follows every keystroke, and running it a second time brings the original back.

Nothing you type leaves this page: the swap happens in your browser, with no account, no upload and no stored history.

Related tools

Frequently Asked Questions

How do you decode an Atbash cipher?

Run it again. Atbash is its own inverse, so Draziw goes back to Wizard. Paste the coded text and read the output.

What does Atbash mean?

The name joins the first, last, second and second to last Hebrew letters: Aleph, Taw, Bet and Shin. That pattern is the whole cipher.

Where is the Atbash cipher used in the Bible?

Commentators read Sheshach in Jeremiah 25:26 and 51:41 as Atbash for Babel (Babylon), and Lev-kamai in Jeremiah 51:1 as Atbash for Kasdim, the Chaldeans.

Is Atbash the same as a Caesar cipher or ROT13?

No. Caesar and ROT13 shift letters along the alphabet; Atbash reflects it. ROT13 is the only Caesar shift that is also its own inverse, like Atbash.

Does Atbash change numbers and punctuation?

No. Only A to Z and a to z change, and they keep their case: Zebra 42! becomes Avyiz 42!.

Is the Atbash cipher secure?

No. It has no key, so anyone who knows the method can read it at once.