StringMash.com

Atbash cipher

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

Conversion

Atbash undoes itself, so there is nothing to swap: the same button encodes and decodes.

14 characters
Updates as you type
Same step both ways

What is this?

Paste something encoded and we will work out what it is.

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. No key, no shift, nothing 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

Older than the alphabet it now hides

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. Scholars still argue about whether that was concealment or wordplay, though the substitution itself 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. Its survival owes more to scripture and puzzles than to security.