Atbash Cipher Converter
Reverse the alphabet to encode or decode a message with the Atbash cipher.
What it does
The Atbash cipher is one of the oldest known substitution ciphers. It reverses the alphabet so that the first letter becomes the last, the second becomes the second to last, and so on. The name comes from the first, last, second and second to last letters of the Hebrew alphabet.
This tool applies that reversal to a message while preserving case and leaving spaces and punctuation in place. Because the mapping is its own inverse, the same operation both encrypts and decrypts.
The page opens with HELLO WORLD. Reversing each letter gives SVOOL DLIOW, and applying the same conversion again returns the original message.
Historically the cipher was used with Hebrew and other alphabets. In English it is mainly a teaching example because there is only one possible mapping and no key to choose.
The tool handles Latin letters only. Characters outside A to Z and a to z pass through unchanged.
How to use
- Type the message to convert.
- Read the result, which is both the encryption and the decryption.
- Check the letter count for the characters that were transformed.
- Apply the tool again to the result to recover the original.
- Try CRYPTO to see XIBKGL.
- Note that spaces and punctuation stay in place.
Formula
- i
- The zero based position of a letter in the alphabet.
- mapped letter
- The letter at position 25 minus i.
Applying the transformation twice returns the original letter because 25 minus (25 minus i) equals i. The cipher is therefore an involution and needs no separate decryption mode.
Worked example
Example: HELLO WORLD
The page opens with the message HELLO WORLD.
- H is the eighth letter, so it maps to the nineteenth from the end, which is S.
- E maps to V, and the two L letters map to O.
- The second word starts with W, which maps to D.
- O maps to L, R maps to I and D maps to W.
- The result is SVOOL DLIOW.
- Applying the cipher again gives HELLO WORLD.
Reference table
| Plaintext | Result |
|---|---|
| HELLO WORLD | SVOOL DLIOW |
| CRYPTO | XIBKGL |
Limits
- Messages are limited to 200 characters.
- Only Latin letters are transformed.
- There is no key, so the method offers no security.
- Case is preserved independently.
Common mistakes
- Expecting separate encryption and decryption keys.
- Assuming the cipher cannot be recognised instantly.
- Transforming spaces or punctuation.
- Using a different alphabet order than A to Z.
- Treating it as a transposition rather than a substitution.
Try it yourself
Quick checks. Answers sit tucked under each question.
Encode CRYPTO with Atbash.
XIBKGL.
What happens if you apply Atbash twice?
You recover the original message.
Does the cipher have a key?
No. The mapping is fixed.
Questions
What is Atbash?
A substitution cipher that reverses the alphabet.
Is it the same in reverse?
Yes. The operation is its own inverse.
Where did it originate?
In Hebrew texts, where the name comes from the first, last, second and second to last letters.
Is it secure?
No. There is only one mapping and no key.
Does it handle lowercase?
Yes. Case is preserved.
What about non letters?
They are left unchanged.
Sources
- Rutgers University, classical ciphers including Atbash
- Cornell University, Atbash and classical cipher lecture
- CrypTool Portal, Atbash documentation