Join the Official Discord

Atbash cipher

A becomes Z, B becomes Y. The same step encodes and decodes, so just type.

Atbash
ABCDEFGHIJKLMNOPQRSTUVWXYZ
ZYXWVUTSRQPONMLKJIHGFEDCBA

How Atbash works

Write the alphabet forwards, then write it backwards underneath. Every letter swaps with the one opposite it: A↔Z, B↔Y, M↔N. The table above the explainer shows the whole thing. TREASURE becomes GIVZHFIV.

Because the swap goes both ways, Atbash undoes itself. Encoding and decoding are the same operation, and there's no key to find.

A very old cipher

Atbash comes from Hebrew, where the first letter (aleph) swaps with the last (tav) and the second (bet) with the second-to-last (shin). Those pairs spell out the name: a-t-b-sh. Scholars have found it in the Book of Jeremiah, where Sheshach is read as Atbash for Babel.

Spotting Atbash

It's a substitution, so word lengths and punctuation survive. Common words have distinctive Atbash forms: gsv is the, zmw is and. The cipher identifier tests for Atbash automatically. If Atbash comes close but not quite, the alphabet may have been reversed and then shifted. Try the substitution solver, which handles any one-to-one letter swap.

Step-by-step guide How to solve a Atbash Cipher by hand, with a worked example

Questions

What is the Atbash cipher?

A substitution cipher that reverses the alphabet: A↔Z, B↔Y, C↔X and so on. It began with the Hebrew alphabet, and the name comes from its first and last letter pairs: aleph–tav, bet–shin.

How do I decode Atbash?

Encode it again. Atbash is its own inverse, so running a message through twice gives back the original. That's why there's no encode/decode switch on this tool.

Does Atbash have a key?

No. There's only one Atbash alphabet, so anyone who recognises it can read it straight away. Puzzle setters tend to use it as one layer among several.

More cipher tools

See all cipher tools →