Toolstia / Atbash cipher

Atbash cipher

Type or paste text and get its Atbash version straight away. The alphabet is mirrored, so A becomes Z, B becomes Y and C becomes X. Because the swap works both ways, the same step encodes and decodes.

Atbash swaps the first letter of the alphabet with the last, the second with the second to last, and so on, so A becomes Z and B becomes Y. Encoding and decoding are the same step. Case, digits and punctuation are kept as they are.

How it works

  1. Type or paste your text.
  2. Read the result below.
  3. Copy it.

How it works

Each letter is replaced by the letter the same distance from the other end of the alphabet. A and Z swap, B and Y swap, down to M and N.

Case and symbols

Capital and small letters keep their case. Digits, spaces and punctuation are left alone.

History

Atbash was used with the Hebrew alphabet and appears in old texts. It is easy to break and is now a puzzle cipher.

Same as affine

It is a special case of the affine cipher with a = 25 and b = 25.

Questions

Do I need to choose encode or decode?

No. Running the text through twice gives the original. Everything happens in your browser, and nothing you enter is sent anywhere.

Does it work on other alphabets?

Only the 26 letters A to Z. Other characters pass through unchanged.

Is it secure?

No. It has no key, so anyone can decode it. Use it for fun and puzzles.