Atbash Cipher

Encode and decode text using the Atbash cipher, a simple substitution cipher that reverses the alphabet.

The Atbash Cipher tool lets you encode and decode text using one of the oldest known substitution ciphers, which reverses the alphabet so A becomes Z, B becomes Y, and so on. Originally used in Hebrew scripture, Atbash is a symmetric cipher — applying it twice returns the original text. This tool processes your text instantly in the browser, making it perfect for puzzles, educational demonstrations, and exploring the foundations of classical cryptography.

Loading...
Your data stays in your browser
Was this tool useful?
Tutorial

How to Use

1
1

Enter text

Type or paste the text you want to encode or decode.

2
2

See result

The Atbash-transformed output appears instantly below.

3
3

Copy output

Click Copy to copy the result to your clipboard.

Guide

Complete Guide to the Atbash Cipher

What Is the Atbash Cipher?

The Atbash cipher is one of the earliest known substitution ciphers, originating from Hebrew cryptography. It works by replacing each letter of the alphabet with its reverse counterpart: A maps to Z, B maps to Y, C maps to X, and so forth. The name 'Atbash' derives from the first, last, second, and second-to-last Hebrew letters (Aleph-Tav-Beth-Shin). Because the mapping is symmetric, encoding and decoding are identical operations — applying Atbash to ciphertext returns the plaintext.

Historical Significance

The Atbash cipher appears in the Hebrew Bible, notably in the Book of Jeremiah, where 'Babel' is encoded as 'Sheshach' using the Hebrew Atbash substitution. It represents one of humanity's earliest attempts at secret communication and is a foundational concept in cryptographic history. While trivially breakable by modern standards, Atbash demonstrates the core principle of substitution ciphers that evolved into more complex systems like the Caesar cipher, Vigenere cipher, and eventually modern encryption algorithms.

How Atbash Works Technically

For the English alphabet, the Atbash substitution table maps position N to position (25 - N), where A=0 and Z=25. Mathematically, if we assign each letter a number (A=0, B=1, ..., Z=25), the cipher function is f(x) = 25 - x. Numbers, spaces, punctuation, and special characters pass through unchanged. The cipher is case-preserving — uppercase letters map to uppercase, lowercase to lowercase. This simple mathematical property makes it an excellent introduction to modular arithmetic in cryptography.

Best Practices and Educational Use

Use Atbash to introduce students to substitution ciphers before moving to more complex systems. Create puzzle hunts and escape room challenges with Atbash-encoded clues. Combine Atbash with other simple ciphers (like Caesar shift) for layered encoding exercises. Remember that Atbash provides zero security for real data — it is purely educational and recreational. For actual encryption needs, use modern algorithms like AES-256 or RSA.

Examples

Worked Examples

Example: Encoding a Simple Message

Given: The plaintext 'HELLO WORLD'

1

Step 1: Map each letter using the Atbash table — H(7)→S(18), E(4)→V(21), L(11)→O(14), L(11)→O(14), O(14)→L(11)

2

Step 2: Continue with WORLD — W(22)→D(3), O(14)→L(11), R(17)→I(8), L(11)→O(14), D(3)→W(22)

3

Step 3: Spaces remain unchanged.

Result: 'HELLO WORLD' becomes 'SVOOL DLIOW'

Example: Verifying Atbash Is Self-Inverse

Given: The ciphertext 'SVOOL' from the previous example

1

Step 1: Apply Atbash again — S(18)→H(7), V(21)→E(4), O(14)→L(11), O(14)→L(11), L(11)→O(14)

2

Step 2: The result matches the original plaintext.

Result: 'SVOOL' decodes back to 'HELLO', confirming Atbash is its own inverse.

Use Cases

Use Cases

Simple encoding

Turn 'HELLO' into 'SVOOL' for a quick cipher puzzle.

Decode a message

Paste an Atbash-encoded message and instantly see the original text.

Educational

Learn about classical ciphers and how substitution encryption works.

Frequently Asked Questions

?What is the Atbash cipher?

It is a substitution cipher where each letter is replaced by its reverse in the alphabet. A becomes Z, B becomes Y, and so on.

?Is the Atbash cipher secure?

No. It is a very simple cipher used for educational purposes and puzzles. It offers no real security.

?Does it work with numbers and symbols?

Numbers, spaces, and symbols are passed through unchanged. Only letters A-Z are transformed.

?How do I decode Atbash?

Just apply the cipher again! Atbash is its own inverse — encoding and decoding are the same operation.

?Is this tool free to use?

Yes, it is completely free with no usage limits. You can encode and decode as many messages as you like.

?Is my data private when using this tool?

Absolutely. All processing happens locally in your browser. No data is sent to any server, so your text stays completely private.

Help us improve

How do you like this tool?

Every tool on Kitmul is built from real user requests. Your rating and suggestions help us fix bugs, add missing features and build the tools you actually need.

Rate this tool

Tap a star to tell us how useful this tool was for you.

Suggest an improvement or report a bug

Missing a feature? Found a bug? Have an idea? Tell us and we'll look into it.

Related Tools

Recommended Reading

Recommended Books on Cryptography & Ciphers

As an Amazon Associate we earn from qualifying purchases.

Boost Your Capabilities

Professional Products to Boost Your Writing

As an Amazon Associate we earn from qualifying purchases.

Newsletter

Get Free Productivity Tips & New Tools First

Join makers and developers who care about privacy. Every issue: new tool drops, productivity hacks, and insider updates — no spam, ever.

Priority access to new tools
Unsubscribe anytime, no questions asked