Atbash Cipher
Paste text to encode it with the Atbash cipher, or paste a message that was encoded with it to read it. Atbash swaps the first letter of the alphabet with the last, the second with the second to last, and so on, so A becomes Z, B becomes Y and Hello becomes Svool. Because the swap works both ways, the same step encodes and decodes. Everything runs in your browser.
Atbash is its own reverse: paste the result back in to get the original text.
10 letters swapped, 3 other characters left as they are
| 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Cipher | 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 |
Only the 26 letters A to Z change, in both cases. Digits, punctuation, spaces, line breaks and letters of other alphabets, such as accented letters, are left as they are. The Atbash cipher is easy to break and gives no real secrecy, so use it for puzzles and learning, not for anything private. Everything runs in your browser and nothing you type is uploaded.
Related Tools
[6 suggestions]Caesar Cipher Encoder and Decoder
Encrypt and decrypt text with the Caesar cipher, ROT13 or a Vigenere key, or try all 25 shifts to break a message.
Developer & WebVigenere Cipher: Encrypt, Decrypt and Crack with a Key
Encrypt and decrypt text with a Vigenere cipher and a keyword, or try to crack English ciphertext without the key using the index of coincidence.
Developer & WebAffine Cipher Tool: Encrypt, Decrypt and Try All 312 Keys
Encrypt and decrypt text with the affine cipher E(x) = (a x + b) mod 26, with ready-made Atbash, ROT13 and Caesar keys, and try every key when the key is lost.
Developer & WebRail Fence Cipher: Encrypt, Decrypt and Try Every Key
Encrypt and decrypt text with the rail fence cipher on 2 to 50 rails with an optional offset, see the zigzag, and try every key to read a message when the key is unknown.
Developer & WebLetter Frequency Counter: Count Letters and Compare with English
Count how often each letter A to Z appears in a text, compare it with English letter frequencies and get the index of coincidence, useful for classic ciphers.
Analysis & CountingText Reverser
Reverse characters, mirror words, or flip lines upside down for playful effects.
Writing & ContentAbout the Atbash Cipher
The Atbash cipher is a substitution cipher with a fixed key: a letter in position p of the alphabet, counting A as 0, becomes the letter in position 25 minus p. A and Z swap, B and Y swap, and M and N swap, so no letter ever stays as itself. Because each pair swaps both ways, applying the cipher twice returns the original text, which is why there is only one button for encoding and decoding. The tool changes only the 26 letters A to Z in upper and lower case and keeps the case of each letter. Digits, punctuation, spaces, line breaks and letters of other alphabets, such as accented letters, are left as they are. Hello, World! becomes Svool, Dliow! and attack at dawn becomes zggzxp zg wzdm. You can set the result to upper or lower case, or turn on the option that keeps only the letters and writes them in upper case in groups of five, the layout traditionally used for ciphertext. The table under the result lists every pair. Atbash has no key to guess, so anyone who knows the method can read the message in seconds, and a frequency count breaks it as easily as it breaks any simple substitution. Use it for puzzles, escape rooms, teaching and history, not for anything private. Everything runs in your browser and your text is never uploaded.
How does the Atbash cipher work?▾
It reverses the alphabet. A becomes Z, B becomes Y, C becomes X and so on down to M and N, which swap with each other. Hello becomes Svool. The case of each letter is kept, and anything that is not a letter is left alone.
How do I decode an Atbash message?▾
Apply the same cipher again. Atbash is its own inverse, because each letter swaps with exactly one other letter, so encoding twice gives the original text. Paste the message into the tool and the result is the plain text.
What does Atbash do to numbers and punctuation?▾
Nothing. Only the letters A to Z and a to z change. Digits, spaces, punctuation and letters of other alphabets stay as they are, so Hello, World! becomes Svool, Dliow! with the comma and the exclamation mark untouched.
Is the Atbash cipher secure?▾
No. It has no key, so anyone who knows it is Atbash can decode the message at once, and even without knowing the method its letter frequencies give it away. It is a good puzzle and a good way to learn about ciphers, but not a way to keep a secret.
What is the difference between Atbash and the Caesar cipher?▾
The Caesar cipher shifts every letter by the same number, so it has 25 possible keys. Atbash mirrors the alphabet instead and has just one, so there is nothing to choose and nothing to guess.
Is my text uploaded?▾
No. The cipher runs in your browser, and what you type or paste is not sent anywhere or stored.