StringMash.com

Atbash cipher

Mirror the alphabet: A becomes Z, B becomes Y, and the same step undoes it.

Conversion

Atbash is its own mirror image. The same button encodes and decodes.

14 characters
Updates as you type
Same step both ways

Show the steps
  1. Swap each letter for the one the same distance from the other end of the alphabet: A and Z, B and Y, C and X.
  2. A → Z (letter 1 from the start becomes letter 1 from the end)
  3. T → G (letter 20 from the start becomes letter 20 from the end)
  4. T → G (letter 20 from the start becomes letter 20 from the end)
  5. A → Z (letter 1 from the start becomes letter 1 from the end)
  6. C → X (letter 3 from the start becomes letter 3 from the end)
  7. K → P (letter 11 from the start becomes letter 11 from the end)
  8. A → Z (letter 1 from the start becomes letter 1 from the end)
  9. T → G (letter 20 from the start becomes letter 20 from the end)
  10. The other 4 letters follow the same rule.
  11. Atbash is its own reverse: run it again and the message comes back.

Put this converter on your site

Paste this into your page's HTML. The converter keeps the pair and settings it has now, and it runs in your reader's browser like it does here.

The credit line under the frame is optional. We'd be grateful if you kept it. How embedding works

What is this?

Paste something encoded and we'll work out what it is.

Printable chart

Using the Atbash converter

Type or paste on the left. The mirrored text appears on the right, and the same step reverses it, so the swap button is switched off.

There's nothing to configure, because Atbash has no key. Capitals and punctuation stay put, so the shape of the message survives even though the letters don't. If you aren't sure the message is Atbash at all, the panel below checks it against everything else we recognise.

How Atbash works

Write the alphabet forwards, then write it backwards underneath. A pairs with Z, B with Y, M with N. There's no key to remember.

The mirror is also its weakness. Letter frequencies come through untouched, so whatever stands in for E in a long message is still the commonest letter on the page, and the rest unravels from there.

A–Z

The Atbash alphabet

AZ
BY
CX
DW
EV
FU
GT
HS
IR
JQ
KP
LO
MN
NM
OL
PK
QJ
RI
SH
TG
UF
VE
WD
XC
YB
ZA

Sheshach for Babel

Atbash started in Hebrew, and the name is the instruction. Aleph goes to tav, beth to shin, first letter to last, second to second-last.

It appears in the Book of Jeremiah, where Sheshach stands in for Babel. At 51:41 Babylon is named in the parallel clause, so the substitution is unmistakable, and any reader who knew the trick would have seen Babel immediately.

On the Latin alphabet it survives as a puzzle. Escape rooms use it, and so does the occasional geocache.

Related conversions

ROT13 rotates the alphabet where Atbash reverses it, and its shift control covers every Caesar cipher from 1 to 25.

Handed a message with no idea what was done to it? The cipher identifier tries Atbash, the shifts and the text encodings together and ranks what comes back.

Questions

Does Atbash keep capitals and punctuation?

Yes. Only letters change, and case is preserved, so line breaks and word lengths survive.

Is it stronger than ROT13?

No. Both are fixed substitutions with no key, so the method is the whole of the secret.

How do I spot Atbash?

Short common words come out strange but consistent: "the" is always "gsv", and "a" is always "z".

Was Atbash ever used seriously?

Only where almost nobody could read. It survives because of scripture and puzzles.

Sources

Added . Last updated and reviewed . What's new