Atbash Cipher Tool

The Ancient Hebrew Reverse Alphabet Cipher

🔄 REVERSIBLE • 🏛️ ANCIENT

About Atbash

Atbash is one of the oldest known substitution ciphers, originating from ancient Hebrew cryptography. The name "Atbash" comes from the first and last letters of the Hebrew alphabet: Aleph-Tav-Bet-Shin (אתבש). The cipher works by reversing the alphabet—the first letter becomes the last, the second becomes second-to-last, and so on.

Perfect For:

  • Historical Puzzles: Recreate ancient biblical ciphers
  • CTF Challenges: Classic cipher for capture-the-flag competitions
  • Educational: Learn about monoalphabetic substitution
  • Simple Encryption: Quick reversible message obfuscation
💡 Atbash is self-reciprocal! Encoding and decoding use the same operation.
Characters: 0
Original: ABCDEFGHIJKLMNOPQRSTUVWXYZ
Atbash: ZYXWVUTSRQPONMLKJIHGFEDCBA
Notice: A↔Z, B↔Y, C↔X... Each letter reverses to its mirror position

Examples

Basic Example

Input: HELLO WORLD
Atbash: SVOOL DLIOW

Secret Message

Input: THE TRUTH IS OUT THERE
Atbash: GSV GIFGS RH LFG GSVIV

Biblical Reference

Input: BABEL
Atbash: YZYVO
In Jeremiah 25:26, "Sheshach" (ששך) is Atbash for "Babel" (בבל)

Understanding Atbash

Ancient Origins

Atbash is believed to be one of the oldest cipher systems, with evidence of its use dating back to 600-500 BCE. It appears in the Hebrew Bible (Old Testament) where certain place names are encrypted using this method. The most famous example is "Sheshach" (ששך) in Jeremiah, which is Atbash for "Babel" (בבל).

How It Works

The Atbash cipher is remarkably simple: it reverses the alphabet. The first letter maps to the last, the second to second-to-last, and so on:

For any letter at position n (where A=0, Z=25):

new_position = 25 - n

Because the alphabet is symmetrically reversed, applying Atbash twice returns the original text, making it self-reciprocal—just like ROT13.

Biblical Examples

Atbash appears in several places in Hebrew scripture:

Scholars believe these encryptions may have been used to avoid directly naming powerful enemies or to create prophetic mystery.

Mathematical Properties

Atbash has several interesting mathematical characteristics:

Security Note

⚠️ Not Secure for Real Encryption

Atbash is not secure by modern standards. It's a simple monoalphabetic substitution cipher vulnerable to frequency analysis. There's no key—everyone knows the mapping. Use Atbash only for puzzles, education, or historical recreation, never for protecting sensitive information.

Atbash in Modern Times

While no longer used for actual security, Atbash remains popular in:

Famous Uses in Pop Culture

Frequently Asked Questions

What does "Atbash" mean?

The name comes from the Hebrew alphabet: Aleph (א), Tav (ת), Bet (ב), Shin (ש). These are the first, last, second, and second-to-last letters of the Hebrew alphabet, demonstrating how the cipher reverses the alphabet.

Is Atbash the same as ROT13?

Both are self-reciprocal substitution ciphers, but they're different. ROT13 rotates the alphabet by 13 positions (A→N, B→O), while Atbash reverses it (A→Z, B→Y). ROT13 only works because the English alphabet has 26 letters (13×2). Atbash works with any alphabet length.

Can Atbash be used with other alphabets?

Yes! Atbash works with any alphabet. Originally designed for Hebrew (22 letters), it's commonly adapted to English (26 letters), Greek (24 letters), or any other writing system. The principle remains the same: reverse the alphabet.

Does Atbash work with numbers?

Standard Atbash only affects letters. Numbers, spaces, and punctuation typically remain unchanged. However, you could create a custom Atbash-style cipher for digits (0↔9, 1↔8, 2↔7, etc.).

How do I decode Atbash?

Since Atbash is self-reciprocal, decoding is identical to encoding! Just apply Atbash to the encrypted text, and you'll get back the original. This makes it very convenient—you don't need separate encode/decode operations.

Why was Atbash used in the Bible?

Biblical scholars believe Atbash served several purposes: (1) avoiding direct mention of enemy nations like Babylon, (2) creating prophetic mystery, (3) demonstrating scribal knowledge, or (4) testing readers' understanding. Its use added layers of meaning to sacred texts.

Can this tool work offline?

Yes! All encryption happens in your browser using JavaScript. Once the page loads, you can use it without an internet connection. Your text never leaves your device— everything is processed locally.