Atbash Cipher Encoder & Decoder

Mirror the alphabet — A becomes Z, B becomes Y, all in your browser.

Free Atbash cipher tool — encrypt and decrypt text by mirroring the alphabet, entirely in your browser. Nothing is uploaded. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

How does the Atbash cipher work?

It mirrors the alphabet: A maps to Z, B to Y, C to X, and so on. Because the mapping is symmetric, the same operation both encrypts and decrypts.

The Atbash cipher is one of the oldest known substitution ciphers, originally used for the Hebrew alphabet. It works by mirroring the alphabet — the first letter swaps with the last, the second with the second-to-last, and so on. This tool encrypts and decrypts Atbash text instantly and is popular for puzzles, escape rooms, CTF challenges and teaching the basics of cryptography.

How it works

Atbash maps each letter to its mirror position in the 26-letter alphabet: A↔Z, B↔Y, C↔X, … M↔N. Mathematically, a letter at position i (0-25) becomes position 25 − i. Because the mapping is symmetric, Atbash is its own inverse — running ciphertext back through the same operation returns the original message, so there is no separate decode mode. Letters keep their case, and digits, spaces and punctuation pass through untouched.

Example

Encrypt the word GERA:

  • G (7th letter) → T
  • E (5th letter) → V
  • R (18th letter) → I
  • A (1st letter) → Z

So GERA becomes TVIZ, and running TVIZ back through Atbash returns GERA.

PlainAEGMRZ
AtbashZVTNIA

The conversion runs entirely in your browser and nothing is sent to a server.

Historical background

The name “Atbash” is a mnemonic from the Hebrew alphabet: Aleph (first letter) swaps with Tav (last), and Bet (second) swaps with Shin (second-to-last). This gives Aleph-Tav-Bet-Shin — Atbash. The cipher appears in the Hebrew Bible; scholars have identified it in the Book of Jeremiah, where the word Sheshach is widely interpreted as an Atbash encoding of Babel (Babylon). That makes Atbash one of the first documented uses of writing concealment in history.

When applied to the Latin alphabet it keeps the same mirroring principle but across 26 positions rather than 22. The result is frequently used in modern escape rooms and CTF (Capture the Flag) competitions precisely because it is simple enough to solve without a tool once you spot the pattern, yet unfamiliar enough to trip people up on first encounter.

Common use cases

  • Escape rooms and puzzle hunts. Atbash is a popular cipher choice because solvers can work it out with pen and paper, making it a satisfying puzzle without needing a computer.
  • CTF competitions. Classic cryptography challenges often include Atbash as a warm-up or layer within a larger multi-cipher chain.
  • Teaching cryptography basics. The cipher illustrates substitution ciphers, frequency analysis, and the concept of a key-less symmetric transform in a single, short example.
  • Word games and novelty text. Writers sometimes use it to create “coded” text in fiction or games that a character can decode within the story.

Why Atbash offers no real security

Atbash has no key — there is only one possible mapping — so anyone who recognises it can decode the message immediately. It is also vulnerable to frequency analysis: if the plaintext is English, the most common ciphertext letter is the Atbash equivalent of E, which is V. For any real privacy need, use a modern authenticated encryption scheme (AES-GCM, ChaCha20-Poly1305, etc.) rather than a classical cipher.