About the Atbash Cipher
The Atbash cipher is one of the oldest known ciphers. It replaces each letter with the letter in the same place counting from the other end of the alphabet, so A becomes Z, B becomes Y, C becomes X and so on. This tool encodes any text and, since the same step undoes itself, decodes it as well. Letters keep their case, and spaces, digits and punctuation stay as they are. Type your text and the Atbash cipher appears at once, with a few related figures underneath, and you can copy the result with one tap. The sums run in your browser, so nothing you enter is uploaded.
Updated October 2026
How to use the Atbash Cipher
- 1Enter your text.
- 2Pick the units or options from the menus if the Atbash cipher tool offers them.
- 3Read the Atbash cipher in the large result box.
- 4Look at the extra rows for related figures.
- 5Press Copy result to keep the answer.
When you need the Atbash cipher
People use it for puzzles, escape rooms, geocaching clues and classroom lessons about codes. It also appears in the history of Hebrew texts, where it was used with that alphabet.
Because there is no key, Atbash gives no real security and can be broken at a glance. It is a fun and gentle introduction to substitution ciphers.
How the Atbash cipher is worked out
Letter number n (A = 0) becomes letter number 25 − n. So A↔Z, B↔Y, C↔X, and the middle pairs M↔N. Hello, World becomes Svool, Dliow. Applying the cipher to Svool, Dliow gives back Hello, World.
Every answer on this page comes from that one rule, so you can check any result by hand with a calculator. The figures shown underneath, such as other units, are conversions of the same answer.
- Encodes and decodes
- Keeps case and punctuation
- Instant results
Mistakes to avoid with Atbash cipher
This tool handles the 26 letters of the English alphabet. Accented letters and non-Latin scripts pass through unchanged.
On phone and computer
On a phone, type into the boxes one after another and read the Atbash cipher underneath; Copy result puts it on the clipboard for a message or a note. On a computer the inputs sit on the left and the answer on the right, so you can change one figure and watch the Atbash cipher move. The atbash cipher works the same on both.
Checking your Atbash cipher by hand
A good habit is to test the atbash cipher with a case you already know. Hello, World becomes Svool, Dliow. Applying the cipher to Svool, Dliow gives back Hello, World.
If your own figures give a surprising answer, repeat the working yourself: Letter number n (A = 0) becomes letter number 25 − n. So A↔Z, B↔Y, C↔X, and the middle pairs M↔N. Small differences usually come from rounding, from mixing units, or from a typing slip in one of the inputs. Atbash is a simple swap of the alphabet, so it makes a fun first puzzle. If you want a code with a shift instead, ROT13 and Caesar Cipher is the classic next step. Vigenère Cipher adds a keyword for a harder result, and Rail Fence Cipher scrambles letters by position rather than by swapping them.
Features
- No key means no security
- English letters only
- Great for puzzles
- Clear messages when the Atbash cipher inputs make no sense
- Copy the result with one tap
- Private: nothing is uploaded
Frequently asked questions
How do I calculate Atbash cipher?
Letter number n (A = 0) becomes letter number 25 − n. So A↔Z, B↔Y, C↔X, and the middle pairs M↔N. Hello, World becomes Svool, Dliow. Applying the cipher to Svool, Dliow gives back Hello, World.
What is the formula for Atbash cipher?
Letter number n (A = 0) becomes letter number 25 − n. So A↔Z, B↔Y, C↔X, and the middle pairs M↔N. The atbash cipher applies it exactly and rounds only the displayed answer to six significant figures.
Is Atbash secure?
No. It has no key, so anyone who knows the method can read it.
Why does the same step encode and decode?
Because swapping a letter with its mirror twice returns the original.
Where does the name come from?
From the first, last, second and second-to-last Hebrew letters: Aleph-Tav-Bet-Shin.
Is this atbash cipher free and private?
Yes. It is free, needs no account and runs in your browser, so the numbers you type are not uploaded or stored.