Atbash Cipher
Encode and decode text with the Atbash cipher.
Atbash mirrors the alphabet: A↔Z, B↔Y, C↔X, and so on. Applying it twice returns the original text, so the same transform both encodes and decodes.
Only the 26 Latin letters are mirrored. Numbers, spaces and punctuation pass through unchanged. Atbash offers no security and is trivially reversible.
How to use Atbash Cipher
What this tool does
The Atbash Cipher tool mirrors every Latin letter in your text across the alphabet. A becomes Z, B becomes Y, C becomes X — and the same in reverse, so Z becomes A, Y becomes B, X becomes C. The transform preserves letter case: uppercase letters map to uppercase, lowercase to lowercase. Every other character — spaces, numbers, punctuation, accented letters — passes through untouched.
The output appears in real time as you type or paste. Because Atbash is its own inverse, there is no separate encode and decode mode: paste plain text and read the encoded version; paste the encoded version and read back the plain text. Both directions are handled by the same single transform.
Why you might need it
Atbash is one of the oldest ciphers in recorded history. It appears in the Hebrew Bible — the name “Sheshach” in the book of Jeremiah is the Atbash encoding of “Babel” (Babylon) in the Hebrew alphabet. That history makes it a genuinely interesting topic in cryptography education, biblical studies and the history of writing.
In practical terms today, Atbash is used in puzzles, escape rooms and word games. Its appeal is that the encoded text looks completely different from the original while being completely deterministic — every time you encode the same word, you get the same result. There is no key to remember and no decision to make. A puzzle setter can encode a clue in Atbash and embed the decoding rule as a separate hint; solvers who recognise the pattern can even decode it by hand on paper.
Writers and game designers also use Atbash to create fictional scripts or prop documents that look authentically alien while still being decodable if a player finds the key.
How to use it
- Type or paste your text into the Input text box.
- The Atbash output appears in the lower box immediately, updating with every character you add or remove.
- To decode an Atbash-encoded message, paste it into the same input box — the output will be the original plain text.
- Click Copy output to copy the result to your clipboard.
- Use Load sample to see a demonstration, or Clear to start fresh.
Common pitfalls
The most common confusion is expecting Atbash to work on characters other than the basic Latin alphabet. French, German, Spanish and other languages that use accented letters will see those characters pass through unchanged, while the plain A–Z letters are mirrored. This means the output of Atbash on “café” will be “xzué” — the c, a and f are mirrored, but the é is not.
Another frequent question is whether there is a key. There is not. Unlike the Caesar cipher, which has 25 possible keys, Atbash has exactly one fixed mapping. This makes it the easiest possible substitution cipher to crack — there is nothing to guess.
Tips and advanced use
Atbash is a useful teaching example when explaining substitution ciphers because its rule is so simple: you can encode any letter in your head just by counting from both ends of the alphabet simultaneously. A and Z, B and Y, C and X — most people can learn the full mapping in a few minutes with a little practice.
For puzzle design, Atbash pairs well with other transforms. A message that has first been Atbash-encoded and then ROT13’d is slightly harder to crack at a glance, though it is still far from secure — both transforms are well-known, and either one alone is trivially reversible.
Because all computation happens in your browser, it is safe to paste personal or unpublished text here to experiment. Nothing is transmitted or retained.
Frequently asked questions
Does any text I type leave my device?
What is the Atbash cipher?
How do I decode an Atbash message?
Is Atbash a secure cipher?
What happens to accented letters and other scripts?
Related tools
ROT13 Cipher
Encode and decode text with the classic ROT13 cipher.
Caesar Cipher
Encrypt and decrypt text with a custom Caesar shift.
Vigenère Cipher
Encrypt text with the key-based Vigenère cipher.
Bacon Cipher
Hide messages with the classic Bacon cipher.
Morse Code Translator
Translate between text and Morse code.
Text Mirror
Mirror text into a reversed visual form.