Atbash Cipher Encoder/Decoder
Encode and decode text with the ancient Atbash cipher — the reverse-alphabet substitution cipher (A↔Z, B↔Y, C↔X). Self-reciprocal, case-preserving, and instant. Toggle the number variant to extend Atbash to digits (0↔9, 1↔8). View the full alphabet mapping table with characters highlighted based on your input. Free, private, and no signup required.
Encode and decode text using the Atbash cipher — the ancient reverse-alphabet substitution cipher (A↔Z, B↔Y, C↔X). Self-reciprocal and instant. Toggle the number variant to extend Atbash to digits (0↔9, 1↔8). View the full alphabet mapping table or combined output mode for side-by-side comparison.
Alphabet Mapping TableHighlighted characters are present in your input
Uppercase
Lowercase
Type or paste text above to encode/decode with the Atbash cipher. The output updates in real-time. Toggle Number Variant to extend Atbash to digits, or use Combined View to compare standard and number-variant output side by side. Click a preset button above to try example text.
Note: The Atbash cipher is self-reciprocal — encoding and decoding use the same algorithm. Applying Atbash to encoded text returns the original. This is a historical cipher for lightweight obfuscation and educational purposes, not for cryptographically secure encryption. All processing happens locally in your browser.
Why Use Our Atbash Cipher Encoder/Decoder?
Instant Atbash Encoding & Decoding
Encode and decode text using the Atbash cipher instantly as you type. The Atbash cipher reverses the alphabet (A↔Z, B↔Y, C↔X, etc.) and is self-reciprocal — applying it twice returns the original text. No buttons needed, results update in real-time.
Secure & Private Processing
Your text never leaves your device. All Atbash encryption and decryption happens locally in your browser with zero server uploads. No data stored, no tracking — complete privacy for your text transformations.
No Installation Required
This Atbash cipher encoder/decoder runs entirely in your browser with no downloads or setup needed. Just type or paste your text and see the cipher result instantly. Works on any device with a modern browser.
Full Alphabet Mapping & Number Variant
A built-in alphabet mapping table shows the complete A↔Z substitution visually. A number variant extends Atbash to include digits (0↔9, 1↔8, etc.). Combined output modes show both standard and number-variant encoding side by side.
Common Use Cases for Atbash Cipher
Obfuscating Text Content
Use the Atbash cipher to quickly obfuscate text content in web pages, code comments, or configuration files. Since Atbash is a simple substitution cipher, it provides lightweight text obfuscation that requires no tools to decode — just reverse the alphabet manually or use the decoder.
Teaching Cryptography Fundamentals
Cryptography educators use the Atbash cipher to introduce students to basic substitution ciphers and the concept of symmetric encryption. The self-reciprocal property makes it an excellent teaching tool for understanding how encryption and decryption use the same algorithm.
Hidden Messages & Puzzles
Escape room designers, puzzle creators, and game developers use the Atbash cipher to create hidden messages and codes. The cipher is well-known enough to be solvable by dedicated players but requires deliberate decoding, adding a satisfying layer of mystery to puzzles.
Ancient History & Biblical Studies
The Atbash cipher has historical significance — it appears in the Book of Jeremiah in the Hebrew Bible (the "Sheshach" reference). Historians and biblical scholars use Atbash to understand ancient cryptographic methods and analyze historical texts for hidden meanings.
Easter Eggs & ARG Content
Game developers and content creators embed Atbash-encoded messages as easter eggs in alternate reality games (ARGs), video games, and websites. The cipher is simple enough for players to decode but obscure enough to feel like a hidden discovery.
Classical Cipher Reference
Historians and cryptography enthusiasts studying the history of encryption use the Atbash cipher as a reference point for understanding early cryptographic techniques. It represents one of the earliest known cipher systems, predating the Caesar cipher.
Understanding the Atbash Cipher
What Is the Atbash Cipher?
The Atbash cipher is one of the oldest known cipher systems, dating back to ancient Hebrew cryptography. It is a simple substitution cipher that replaces the first letter of the alphabet with the last (A↔Z), the second with the second-last (B↔Y), and so on. The name Atbash comes from the Hebrew letters Aleph (א), Tav (ת), Bet (ב), and Shin (ש) — the first, last, second, and second-last letters of the Hebrew alphabet.
In the Latin alphabet, the Atbash cipher maps: A→Z, B→Y, C→X, D→W, E→V, F→U, G→T, H→S, I→R, J→Q, K→P, L→O, M→N (and vice versa). The cipher is self-reciprocal — applying it twice returns the original text, meaning the same algorithm is used for both encoding and decoding.
How Our Atbash Cipher Encoder/Decoder Works
- 1. Enter Your Text: Type or paste text into the input panel. The Atbash cipher encoder instantly processes each character, applying the reverse-alphabet substitution to all letters. Numbers, spaces, punctuation, and special characters are preserved unchanged in the standard mode.
- 2. Number Variant (Optional): Toggle the number variant to extend Atbash to digits: 0↔9, 1↔8, 2↔7, 3↔6, 4↔5. This variant is useful for obfuscating numeric content like years, prices, or codes alongside the standard letter substitution.
- 3. View Results & Mapping: The encoded/decoded output updates in real-time. The alphabet mapping table shows the complete A↔Z substitution visually, with active mappings highlighted based on the characters present in your input. Combined output mode shows both standard and number-variant encodings side by side for comparison.
Atbash Cipher Properties & Characteristics
- Self-Reciprocal: Applying Atbash twice returns the original text. This means the same function serves as both encoder and decoder — no separate decryption algorithm is needed.
- Case-Preserving: Uppercase letters map to uppercase, lowercase to lowercase. The substitution maintains the case structure of the original text for readability of the output.
- Non-Destructive: Unlike ciphers that rearrange or add characters, Atbash preserves text length, spacing, and punctuation. The output has the exact same structure as the input, just with letters substituted.
- Mathematical Basis: In mathematical terms, Atbash maps a character at position p (0-indexed) in the alphabet to position 25 − p. For uppercase letters (ASCII 65-90), this is
chr(155 − ord(char)); for lowercase (ASCII 97-122),chr(219 − ord(char)). - Historical Significance: The Atbash cipher appears in the Hebrew Bible (Book of Jeremiah 25:26 and 51:41), where the word "Sheshach" (ששך) is an Atbash encoding of "Bavel" (בבל), meaning Babylon. This is one of the earliest known uses of cryptographic techniques in recorded history.
Privacy & Availability
The Atbash cipher encoder/decoder is 100% free with no signup required. All text processing is performedlocally in your browser — your text, encoded output, and alphabet mappings never leave your device. There are no text length limits or usage caps. The tool includes a full alphabet mapping table, number variant support, example text presets, and works completely offline after the first load.
Frequently Asked Questions About Atbash Cipher
The Atbash cipher is a simple substitution cipher that replaces each letter with its reverse in the alphabet (A↔Z, B↔Y, C↔X, etc.). It is one of the oldest known cipher systems, originating in ancient Hebrew cryptography. The name "Atbash" comes from the first, last, second, and second-last letters of the Hebrew alphabet. The cipher is self-reciprocal, meaning encoding and decoding use the same algorithm — applying it twice returns the original text.
Simply type or paste text into the input panel. The encoded/decoded output updates in real-time as you type. You can toggle the "Number Variant" to extend Atbash to digits (0↔9, 1↔8). Use the example buttons to load sample text, and the Copy button to copy the encoded result to your clipboard.
The number variant extends the Atbash cipher to include numeric digits. It maps 0↔9, 1↔8, 2↔7, 3↔6, 4↔5. When the number variant is enabled, digits in your input are also reversed, which is useful for obfuscating numeric content like years, prices, or codes alongside the standard letter substitution.
No — the Atbash cipher is not cryptographically secure by modern standards. With only 25 possible letter mappings (for the English alphabet), it can be broken in seconds using frequency analysis. It should only be used for lightweight obfuscation, puzzles, games, educational purposes, or historical interest — not for protecting sensitive information.
Self-reciprocal means that applying the cipher twice returns the original text. Since Atbash maps A↔Z, B↔Y, etc., encoding "HELLO" produces "SVOOL", and encoding "SVOOL" with the same algorithm returns "HELLO". This means the same function serves as both the encoder and decoder — no separate decryption algorithm is needed.
Yes. Uppercase letters map to uppercase, lowercase letters map to lowercase. Numbers, spaces, punctuation, and special characters are preserved unchanged (unless the number variant is enabled). The output maintains the exact same length and structure as the input, with only letter substitutions applied.
Absolutely. The Atbash cipher encoder/decoder processes everything locally in your browser. Your text, encoded output, and alphabet mappings never leave your device. No data is uploaded to any server, stored in a database, or tracked in any way.
The tool accepts any Unicode text but only applies the Atbash substitution to Latin alphabet letters (A-Z, a-z). Numbers, emoji, special characters, and non-Latin scripts pass through unchanged. The tool is ideal for obfuscating English text, codes, and messages.
Yes — 100% free with no signup, no account, and no usage limits. Encode or decode any text as many times as you need, completely free forever. There are no hidden charges, premium tiers, or usage caps.