Atbash cipher encoder and decoder

Atbash is an ancient cipher from Hebrew tradition, popular in puzzles and treasure hunts. It is a puzzle cipher with no real security.

Loading the tool…

Processing and privacy: The result is calculated inside your browser and your data is not sent to any server.

How to use it

  1. Enter text.
  2. The result appears straight away and updates as you edit.
  3. Copy the result, or copy a link that keeps the same values to share it.

How it is calculated

For each letter index x from 0 (A) to 25 (Z): result = 25 - x.

Example

Result: Atbash result: Draziw; Letters processed: 6.

Wizard
Draziw

Limits and caveats

  • This is a puzzle and teaching cipher that is easy to break, so never use it to protect passwords or sensitive data.
  • It uses the English alphabet, not the Hebrew or Arabic forms of Atbash.

Questions about this tool

Where does the name Atbash come from?

From the Hebrew letters aleph, tav, bet and shin: the first letter pairs with the last, the second with the second last.

How do I decode Atbash?

Enter the encoded text in the same tool. Reversing the alphabet twice puts every letter back.

Is Atbash a kind of affine cipher?

Yes. It is the affine cipher with a = 25 and b = 25.