Skip to content

Atbash Cipher Decoder and Encoder Online

Paste your text and each letter swaps with its mirror image as you type.

Result

Marked: the letter at your cursor and its mirror

The letter pairs: 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.

advertisement

What is the Atbash cipher?

Write the alphabet backwards under itself and you have the Atbash cipher. A swaps with Z, B with Y, C with X, down to M and N in the middle. There is no key. It began as a Hebrew cipher, one of the earliest substitution ciphers on record, and it works with any alphabet, though this tool uses the 26 letters from A to Z.

How does the Atbash cipher work?

Each letter trades places with the one the same distance from the other end of the alphabet. Here is HELLO:

How does the Atbash cipher work?
Text HELLO
Atbash SVOOL
E(x) = 25 − x

In numbers, count A as 0 and Z as 25, then subtract from 25. H is 7, and 25 − 7 = 18, which is S. Now do the same to S: 25 − 18 = 7, and you are back at H. That is why decoding needs no separate step. Put the coded text through once more and you can read it.

Where does the name Atbash come from?

The name spells out how the cipher works in Hebrew: Aleph, the first letter, swaps with Taw, the last, and Bet, the second, swaps with Shin, the second to last. A-T-B-Sh. Its best-known appearance is in the Book of Jeremiah (25:26 and 51:41), where “Sheshach” is widely read as Babel, or Babylon, written in Atbash.

Atbash, Caesar and ROT13

A Caesar cipher moves every letter the same distance, whereas here A travels 25 places and M only one. Like ROT13, it undoes itself when applied twice. For a letter swap you design yourself, try the substitution tool.

How to spot Atbash, and why it is not secure

Look at the short words: “gsv” is “the” and “zmw” is “and”. Word lengths and punctuation stay normal. Because there is no key, anyone who suspects Atbash can read the text on the first try, so use it for puzzles and games, never for private data. Letter counts survive too, as our frequency analysis tool shows.

Frequently asked questions

What is the Atbash alphabet?

A–Z, B–Y, C–X, D–W, E–V, F–U, G–T, H–S, I–R, J–Q, K–P, L–O and M–N. Each pair works in both directions.

What does “dog” become in Atbash?

WLT: D becomes W, O becomes L and G becomes T. Run WLT through the tool and you get DOG again.

Where is Atbash used today?

You will find it in puzzles, escape rooms and classrooms. It is also one of the ciphers practised for the Codebusters event at Science Olympiad.

What happens to numbers and accented letters?

They stay as they are. The tool changes only the 26 letters from A to Z and keeps upper and lower case.

Is my text sent to your server?

No. The tool on this page runs in your browser, so your text is not sent to our server.

More cipher tools and guides