Report Tool or Give Us Suggestions

Atbash Cipher

Encrypt and decrypt text instantly using the classic reciprocal Atbash substitution cipher with custom alphabet and layout options.

L ading . . .

What is the Atbash Cipher?

The Atbash Cipher is a specific, well-known type of monoalphabetic substitution cipher. Historically, it was designed to encrypt the Hebrew alphabet, but it can be easily adapted to any standard alphabet sequence. The encryption process is simple: it reverses the alphabet so that the first letter is substituted with the last, the second letter with the second-to-last, and so on.

Because the substitution is completely symmetric, the Atbash cipher is a **reciprocal cipher** (or self-inverse). This means that the exact same algorithm is used to encrypt plaintext and decrypt ciphertext. Applying the Atbash transform twice returns the original plaintext.


How Does the Atbash Cipher Work?

For the standard English alphabet, the Atbash cipher maps letters according to the following key:

Plain: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Cipher: Z Y X W V U T S R Q P O N M L K J I H G F E D C B A

If we represent the letters A-Z as numbers from 0 to 25, the substitution for a letter index \(x\) can be expressed mathematically as:

$$C_i = (25 - x) \pmod{26}$$

Step-by-Step Encryption Example

Let's encrypt the word "HELLO":

  • H (8th letter) is replaced by S (8th from the end)
  • E (5th letter) is replaced by V (5th from the end)
  • L (12th letter) is replaced by O (12th from the end)
  • L (12th letter) is replaced by O (12th from the end)
  • O (15th letter) is replaced by L (15th from the end)

The resulting ciphertext is "SVOOL".


Historical Background

The name "Atbash" is derived from the first, last, second, and second-to-last letters of the Hebrew alphabet: Aleph, Tav, Bet, and Shin (A-T-B-S).

The cipher was used in several passages of the Hebrew Bible (specifically in the Book of Jeremiah) to encrypt words for political or spiritual secrecy. For example, the Hebrew word for "Babylon" (Babel) was written as Sheshach using the Atbash code to hide it from adversaries.


Frequently Asked Questions

Frequently Asked Questions

Is the Atbash Cipher secure for modern data protection?

No. The Atbash cipher provides no security whatsoever. It has a fixed substitution key, meaning there are no variable keys to guess. Anyone who knows the cipher is used can immediately decrypt it. It is classified as simple obfuscation rather than secure encryption.

Does the Atbash Cipher work with numbers and spaces?

Traditionally, the Atbash cipher only substitutes letters. Punctuation, spaces, and numbers remain completely unaffected and are passed through directly. In our tool, you can customize this behavior using the Case Strategy options.

Can I use Atbash with non-English alphabets?

Yes! By checking "Use Custom Alphabet" in our tool, you can paste any custom character sequence (such as Cyrillic, Greek, Hebrew, or custom symbol lists). The tool will automatically reverse the sequence and perform the Atbash mapping accordingly.

Why is the Atbash Cipher called "reciprocal"?

A cipher is reciprocal when the encryption and decryption processes are mathematically identical. For instance, if "A" maps to "Z", then "Z" naturally maps back to "A". This simplifies cipher operation since the user does not need to toggle between different modes.

logo OnlineMiniTools

OnlineMiniTools.com is your ultimate destination for a wide range of web-based tools, all available for free.

Feel free to reach out with any suggestions or improvements for any tool at admin@onlineminitools.com. We value your feedback and are continuously striving to enhance the tool's functionality.

© 2026 OnlineMiniTools . All rights reserved.

Hosted on Hostinger

v1.10.0