TTKTheTextKit

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

The Atbash alphabet
Each letter and the letter it becomes in the Atbash cipher
PlainABCDEFGHIJKLMNOPQRSTUVWXYZ
CipherZYXWVUTSRQPONMLKJIHGFEDCBA

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]

About 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.