How it works
The Atbash cipher pairs the first letter of the alphabet with the last, the second with the second-to-last, and so on. In the English alphabet, A maps to Z, B maps to Y, C maps to X, and M maps to N. The remaining letters use the same mirror pattern in reverse.
Atbash does not shift every letter by one constant amount. Instead, the amount changes across the alphabet: A travels 25 positions, B travels 23, and the center pair M and N exchange places. You can picture the normal alphabet written above a reversed alphabet and substitute vertically between the two rows.
The mapping is self-inverse. If H maps to S during encoding, S maps back to H during decoding. That is why the Encode and Decode buttons use the same calculation. They remain visible so the interface matches the other cipher tools and makes the user's intention clear.
This implementation normalizes letters to uppercase A–Z. It removes spaces and punctuation by default. Enable Preserve spaces and punctuation when you want the original sentence structure to remain visible while only the letters are replaced.
Worked example
Encode HELLO by finding each letter's partner in the reversed alphabet. A has position 1 and maps to position 26; position 8 therefore maps to position 19.
| Plain letter | Position | Mirror position | Cipher letter |
|---|---|---|---|
| H | 8 | 27 − 8 = 19 | S |
| E | 5 | 27 − 5 = 22 | V |
| L | 12 | 27 − 12 = 15 | O |
| L | 12 | 27 − 12 = 15 | O |
| O | 15 | 27 − 15 = 12 | L |
- Write the normal alphabet: Use A through Z as the source row.
- Reverse the alphabet: Place Z through A beneath it to create mirror pairs.
- Substitute each letter: Map H to S, E to V, L to O, and O to L.
- Read the result: The mapped letters combine to form SVOOL.
The final letters form SVOOL. Decode with the same table: S maps to H, V maps to E, O maps to L, and L maps to O. The result returns to HELLO without a key.
History and origin
The name Atbash comes from the first and last pairs of the Hebrew alphabet: Aleph with Tav, then Bet with Shin. Examples of this reversed-alphabet substitution are traditionally identified in the Hebrew Bible, including coded names in the Book of Jeremiah. The historical system operates on Hebrew letters rather than the modern Latin alphabet shown here.
Later writers applied the same mirror principle to other alphabets. The English version is now common in recreational cryptography, puzzle hunts, classroom exercises, and geocaching. Its appeal comes from the perfectly symmetrical substitution table: no keyword or arithmetic equipment is required.
How to break it
Atbash is not secure by modern standards. It has no key and only one possible mapping for a given alphabet. Anyone who suspects Atbash can apply the reversed alphabet once and recover the message. The symmetry that makes it convenient also removes any uncertainty for an attacker.
Even when the method is not immediately recognized, it behaves like a monoalphabetic substitution. The same plaintext letter always becomes the same ciphertext letter, repeated patterns remain visible, and common English letter frequencies survive under different labels. Word shapes are especially revealing when spaces are preserved.
Atbash is appropriate for historical demonstrations, games, riddles, and visual explanations of substitution. It should never protect passwords, financial details, personal records, or confidential messages. Modern encryption uses secret keys and far larger mathematical key spaces.
Related ciphers
Frequently asked questions
How do I decode an Atbash cipher?
Use the same reversed-alphabet mapping used to encode it. Atbash is self-inverse, so applying it once to the ciphertext restores the plaintext.
What does HELLO become in Atbash?
HELLO becomes SVOOL: H maps to S, E to V, L to O, and O to L.
Does the Atbash cipher use a key?
No. The alphabet is always reversed, so there is only one standard mapping for a chosen alphabet.
Why is it called Atbash?
The name joins the first two mirror pairs in the Hebrew alphabet: Aleph–Tav and Bet–Shin.
Is Atbash the same as a Caesar cipher?
No. Caesar moves every letter by one fixed shift. Atbash uses a mirror rule, so the distance changes depending on the letter.
Is the Atbash cipher secure?
No. It has no secret key and preserves monoalphabetic patterns. It is useful for education and puzzles, not for protecting sensitive information.
Privacy note
All processing happens in your browser. Your text never leaves your device and is never transmitted to ToolPlex.