Skip to content
Book of Riddles

Cipher tools

Atbash cipher decoder and encoder

Type a text and read it in Atbash at once: A becomes Z, B becomes Y, and so on to the end of the alphabet.

Text to translate

32 letters

Atbash text

Your text never leaves your device. Everything is worked out in your browser.

Atbash needs no key and undoes itself, so the same box encrypts and decrypts.

How the Atbash cipher works

Write the alphabet, and below it the alphabet backwards. Every letter is replaced by the one below it: A and Z swap, B and Y swap, C and X swap. “WIZARD” becomes “DRAZIW”, and “DRAZIW” becomes “WIZARD” again.

There is no key, only the rule. Because every letter swaps with a partner, applying Atbash twice gives the original text. That is why this page has just one text box for the work.

It is not the same as writing the text backwards. Atbash turns the alphabet round, not the order of the letters in the text. This tool uses the 26 letters of the Latin alphabet; digits, spaces and punctuation stay.

How to recognise and crack Atbash

There is nothing to guess, so there is little to crack: whoever knows the rule reads the text. The question is only whether a text is Atbash at all.

A good sign is the letter count. In an English or German text E is the most common letter, and in Atbash E becomes V. If V is the most common letter in a long cipher text, try Atbash. Short words help too: the one-letter word “A” turns into “Z”, which is rare, and the English “THE” turns into “GSV”.

If the result is not a sentence, the text may use another cipher. Try the Caesar cipher tool, which includes a function that cracks all 25 shifts at once.

A short history of the Atbash cipher

Every statement comes with its source and the exact words.

  • Atbash is a substitution cipher with a single alphabet, first used for the Hebrew alphabet.

    Source

    Wikipedia (en), „Atbash“

    is a monoalphabetic substitution cipher originally used to encrypt the Hebrew alphabet.
  • The alphabet is simply turned round: the first letter becomes the last, the second the second to last, and so on.

    Source

    Wikipedia (en), „Atbash“

    the first letter becomes the last letter, the second letter becomes the second to last letter, and so on.
  • Tradition: Commentators read the puzzling “Sheshach” in the Book of Jeremiah as an Atbash spelling of Babylon. That is an interpretation, not proof.

    Source

    Wikipedia (en), „Atbash“

    Jeremiah 25:26 – "The king of Sheshach shall drink after them" – Sheshach meaning Babylon in Atbash

Frequently asked questions

How do I decode an Atbash cipher?

Paste the text into the box. The result on the right is the decoded text, because Atbash is its own inverse. To check, use “Use result as input” and you get the original back.

Is Atbash the same as reversing the text?

No. Reversing reads the letters from the end. Atbash keeps the order of the letters and replaces each one by its mirror letter in the alphabet.

Is Atbash secure?

No. It has no key, so anyone who knows the rule can read it. It is a puzzle cipher, not a way to keep secrets.

What happens to umlauts, digits and punctuation?

Digits, spaces and punctuation stay as they are. German ä, ö, ü and ß can be written as AE, OE, UE and SS before the swap, or left as they are.

Is my text sent to a server?

No. The text is worked out in your browser and never uploaded.

To recognise the plain text when cracking, the tool uses the most common words from wordfreq (Robyn Speer, CC BY-SA 4.0).