ToolJutsu
All tools
Text Tools

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.

Processed on your device. We never see your files.

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

  1. Type or paste your text into the Input text box.
  2. The Atbash output appears in the lower box immediately, updating with every character you add or remove.
  3. To decode an Atbash-encoded message, paste it into the same input box — the output will be the original plain text.
  4. Click Copy output to copy the result to your clipboard.
  5. 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?
No. The Atbash transform runs entirely in your browser. Nothing is uploaded, logged or stored anywhere — you can verify this by opening the Network tab in your browser's developer tools and observing that no requests are made.
What is the Atbash cipher?
Atbash is one of the oldest recorded ciphers. It reverses the alphabet so that the first letter maps to the last, the second to the second-to-last, and so on. In the original Hebrew version, Aleph (the first letter) became Tav (the last), and Beth became Shin — giving the cipher its name. This tool applies the same logic to the 26 Latin letters: A↔Z, B↔Y, C↔X, and so on.
How do I decode an Atbash message?
Paste the encoded message into the input box and read the output — that is the original text. Because Atbash is its own inverse, you do not need a separate decode mode. The same transform applied twice always returns the original, so one operation handles both directions.
Is Atbash a secure cipher?
No. Atbash has exactly one 'key' — the mirrored alphabet — and it never changes. Anyone who recognises the pattern can decode the message in seconds without any tools at all. It is purely a historical curiosity and a puzzle toy; it must not be used to protect any information that actually needs to stay private.
What happens to accented letters and other scripts?
The tool only mirrors the 26 basic Latin letters A–Z. Accented characters like é or ü, digits, spaces, punctuation and characters from other writing systems all pass through the transform unchanged.

Related tools