Home › Ciphers › Atbash Cipher
Atbash Cipher
A becomes Z, B becomes Y, C becomes X — the alphabet folded back on itself. Atbash may be the oldest named cipher in the world: it comes from ancient Hebrew scribal practice, its name is built from the first and last letters of the Hebrew alphabet, and it appears in the Bible itself. There is no key and no setting — encoding and decoding are the same mirror — which makes this a one-click tool and a lovely first cipher for teaching what symmetry means.
The Atbash cipher is a monoalphabetic substitution with one fixed key: the reversed alphabet. Every letter is replaced by its mirror partner (A↔Z, B↔Y, …, M↔N), so the transformation is its own inverse — apply it twice and the original returns. It has no key, no security, and a fingerprint so distinctive that a solver can often name it before decoding a word.
Named from the Hebrew letters Aleph–Tav–Beth–Shin: the first letter exchanged with the last, the second with the second-to-last. A special case of the substitution cipher — the one where the scrambled alphabet is a mirror.
Convert — encode and decode are the same button
There is deliberately no mode switch: Atbash is an involution, so the same operation encodes and decodes. Everything runs in your browser.
One mirror, no moving parts
Write the alphabet forwards and backwards in two rows and read each letter's partner from the other row: A↔Z, B↔Y, C↔X, D↔W, E↔V, F↔U, G↔T, H↔S, I↔R, J↔Q, K↔P, L↔O, and M↔N at the centre. In arithmetic, a letter at position x maps to position 25 − x. Every letter maps to exactly one partner, the map is its own inverse, and there is nothing else: no key to choose, nothing to remember, nothing to get wrong. Notice the fold at the centre — M and N swap with each other, and no letter is left mapping to itself, because with an even-sized alphabet the mirror pairs everything.
That fixed structure is why the tool above has no controls. Compare the family: Caesar has 25 possible keys and a mode switch that matters; substitution has 26! keys and a key field to validate. Atbash has exactly one transformation, so the whole interface is a text box. It is the simplest possible member of the substitution family — the limiting case where the key space shrinks to a single point — and that simplicity is precisely what makes it teachable: a child can hold the entire cipher in view at once, in the two-row table below.
A scribal cipher, named from its own first swap
The name is a description of the method. In Hebrew, the first letter is Aleph and the last is Tav; the second is Beth and the second-to-last is Shin. Exchanging first-for-last and second-for-second-to-last spells A–T–B–Sh — Atbash. The system was applied to the Hebrew alphabet by ancient scribes, and its most famous surviving use is in the book of Jeremiah, where Babylon is written as “Sheshach” — the Atbash form of Babel — and the Chaldeans appear under the Atbash name “Leb Kamai”. Scholars debate how much concealment was intended (the usage may be as much literary device as cipher), but the mechanism is unmistakably this page's mirror, applied to a different alphabet, roughly two and a half millennia ago.
Atbash never really left. It survives in Hebrew studies as a named scribal technique, in children's code books as a first cipher, and in puzzle design as a layer — including in modern puzzle fiction and games, where a reversed-alphabet message is a reliable early challenge. Its longevity has the same explanation as ROT13's: it was never a lock, so it never became obsolete as one. It is a veil with a memorable rule, and veils do not expire.
- c. 6th century BC — Jeremiah's text uses Atbash forms (Sheshach for Babylon).
- Ancient scribal practice — the A-T-B-Sh exchange is named from the Hebrew alphabet's own letters.
- Modern era — a staple of code books, puzzle hunts and ancient-themed escape rooms.
The mirror, written out
Every Atbash reference — from ancient scribal practice to modern cipher sites — prints the two alphabets aligned, because the alignment is the cipher. The strip under the tool generates it; here it is for the record:
| Plain | A B C D E F G H I J K L M N O P Q R S T U V W X Y Z |
|---|---|
| Atbash | Z Y X W V U T S R Q P O N M L K J I H G F E D C B A |
The table reads identically in both directions, which is the whole reason encode and decode are one operation here. It is also the fastest hand method: no arithmetic, just find your letter in either row and read its partner from the other.
The mirror at work
Example 1 — HELLO WORLD
Letter by letter: H→S, E→V, L→O, O→L, W→D, R→I, D→W. H is the 8th letter, so it maps to the 8th from the end: S. Notice L and O swap with each other — HELLO's double L becomes the double O in SVOOL — and WORLD's W and D swap too. Half the alphabet's pairs announce themselves in one short phrase.
Example 2 — the tell-tale word
THE is the commonest word in English, and under the mirror it becomes GSV. A three-letter word ending clause after clause, GSV is to Atbash what a fingerprint is to a hand: once you have seen it, you will recognise Atbash ciphertext on sight for the rest of your life. The solver's version of the same recognition is in the Breaking section.
Example 3 — applying it twice
Paste Example 1's output into the tool (the “convert again” button does it in one click) and the original returns, unchanged. A cipher that undoes itself is called an involution; Atbash shares the property with ROT13, and for the same structural reason — its mapping pairs everything symmetrically.
There is nothing to break — only to recognise
Atbash has no key, so cryptanalysis reduces to identification: is this mirror-text, or some other substitution? Because the mirror is fixed, Atbash ciphertext carries its plaintext's statistics flipped end-for-end, and a solver who knows the flip can recognise the cipher before decoding a word. Three tells, in the order an analyst checks them:
- The commonest letter is wrong-footed. In a long English text the most frequent ciphertext letter should be E's partner — V. A text whose frequencies look English but “upside down”, dominated by letters from the alphabet's far end, is mirror-shaped.
- The word GSV keeps appearing. THE under the mirror — a three-letter word in THE's favourite positions.
- Single letters are only ever Z or R. English has two one-letter words, A and I, and they map to Z and R; a text peppered with lone Z's is confessing.
Any one tell is a hint; two together are a near-certainty — and confirmation costs nothing, because decoding is the same one click as reading the table backwards. The Identifier places such text in the substitution family and tests the mirror explicitly; this page is where the confirmation lands. That ease is why Atbash survives as a puzzle layer and a teaching example rather than as protection: its fingerprint and its key are the same object.
Mirror, slide, scramble
| Relative | How it differs | Where it lives |
|---|---|---|
| Caesar | Slides the alphabet instead of reversing it: 25 possible keys where Atbash has one | The Caesar page |
| ROT13 | The other famous involution: a shift of half the alphabet, so it also undoes itself | The ROT13 page |
| Substitution (general) | Any scrambled alphabet at all — Atbash is the single member whose scramble is a mirror | The substitution page |
| Atbash on other alphabets | The original system is Hebrew; the same fold applies to any ordered alphabet, and puzzle variants mirror digits or symbols too | Same table method — write the set in order, write it reversed, read across |
The question solvers actually ask — “is it Caesar or Atbash?” — has a one-glance answer: try to read the commonest three-letter word. Under Caesar, THE becomes something like WKH (letters slid together); under Atbash it becomes GSV (letters mirrored apart). The shapes are unmistakably different once seen side by side.
Scripture, schoolyards and secret societies of one
Atbash's cultural footprint is out of all proportion to its complexity. It is studied in biblical scholarship as a genuine ancient technique, with the Jeremiah examples still the standard exhibit. It is many children's first cipher — the one in the back of the code book that needs no key to share, so two friends can use it after a single explanation, which is exactly how it spreads. Puzzle designers reach for it when a message must be recognisable once solved: the GSV tell rewards the solver who has done their homework, and the mirror rule is fair — no hidden key, nothing to guess, just a fold to notice. It also turns up as one layer inside larger puzzle constructions, where spotting the mirror quickly is the entry fee for the harder cipher underneath.
Spot the mirror before you convert
Practice 1
Reveal the answer
“THE PUZZLE IS ALIVE”. You should not have needed the tool: the first word is GSV, and the two-letter word RH is IS, sitting in IS's favourite slot before a noun. The mirror announces itself twice in five words.
Practice 2 — encode by table alone
Reveal the answer
S→H, E→V, C→X, R→I, E→V again, T→G gives HVXIVG. Check it in the tool — and notice the E's become V's: the letter V in the ciphertext is E in disguise, the mirror folding the message onto itself.
The cipher cheat sheet prints this page's mirror table alongside the rest of the family for paper solving.
Frequently asked questions
How is Atbash different from a Caesar cipher?
Caesar slides the alphabet by a fixed distance, giving 25 possible keys; Atbash reverses it, giving exactly one possible transformation. Atbash also has the pairing property — if A→Z then Z→A — which no Caesar shift except ROT13 shares in its own way.
Where does the name come from?
From the Hebrew alphabet's own letters: Aleph (first) exchanged with Tav (last), Beth (second) with Shin (second-to-last) — A-T-B-Sh. The name is the recipe, in the alphabet the cipher was born in.
Is Atbash really in the Bible?
The book of Jeremiah writes Babylon as “Sheshach”, which is the Atbash form of Babel in Hebrew, and the Chaldeans as “Leb Kamai” on the same principle. Whether the intent was concealment, wordplay or scribal convention is debated by scholars; the mechanism is not.
Can Atbash be combined with other ciphers?
Yes, and puzzle designers do — Atbash then Caesar, or Atbash over a keyed alphabet, are common layered constructions. The result is still a monoalphabetic substitution, so the cryptogram solver attacks the combination as one mapping; the layers cost a solver seconds, not hours.
Why does the tool have no encode/decode switch?
Because the operation is identical in both directions — Atbash is an involution, like ROT13. A switch would be a placebo control: it would change the label and nothing else. The “convert again” button exists to let you watch the involution work.
Does my text leave my device?
No. The conversion runs in your browser.