The quick answer

Atbash mirrors the alphabet: each letter becomes the one standing at the opposite end, A↔Z, B↔Y, M↔N, so ATTACK becomes ZGGZXP and HELLO WORLD becomes SVOOL DLIOW. There is no key, and the mirror is its own inverse: paste the output back and the input returns. Everything runs in your browser; nothing uploads.

What the Atbash Cipher page does

The page is two text areas and pure arithmetic between them. You paste into the input, and the mirrored text appears in the output on every keystroke: there is no encode button and no decode button, because in Atbash those would be the same button. A Load example link fills the input with Hello World, and the output shows Svool Dliow before you have typed anything.

From the output panel, Copy puts the mirrored text on your clipboard, Download writes it as a file (encoded.txt), and Use as input pipes the output back into the input box, which for Atbash performs the decode in one click: the output's output is your original text. Clear empties the input, and nothing you paste is ever transmitted.

Working with the Atbash Cipher

  1. Paste your text

    Letters are mirrored; spaces, digits and punctuation pass through unchanged, so the output keeps the input's shape. If the input is empty, the example link loads Hello World.

  2. Let it mirror, in either direction

    Encoding and decoding are the same operation here: the output pane recomputes on every keystroke, and no mode switch exists because none is needed. Cipher in, plaintext out works exactly like plaintext in, cipher out.

  3. Check the round-trip

    ATTACK must give ZGGZXP; HELLO WORLD must give SVOOL DLIOW. Click Use as input on either result and the original text must return exactly. Those three checks prove the engine in under ten seconds.

  4. Watch case handling

    Uppercase maps to uppercase and lowercase to lowercase: HELLO gives SVOOL, hello gives svool. If a puzzle expects uniform output, normalize your input to one case first.

  5. Copy or download

    Copy takes the mirrored text to your clipboard exactly as displayed; Download writes it as encoded.txt. Close the tab when done; nothing was transmitted and nothing is stored.

How Atbash works: A↔Z, and why it reverses itself

The arithmetic is one subtraction: give each letter its number (A=0, B=1, up to Z=25) and replace it with 25 minus that number. A (0) maps to Z (25); Z (25) maps to A (0); M (12) maps to N (13) and back. That symmetry is why encryption and decryption are the same function: applying the mirror twice returns every letter to itself, a property mathematicians call an involution. In the code, lowercase letters are mapped with 219 minus their character code and uppercase with 155 minus theirs, which is the same subtraction done on ASCII positions; non-letters pass through untouched.

The round-trip, verifiable by hand: ATTACK → ZGGZXP (A→Z, T→G, T→G, A→Z, C→X, K→P), and ZGGZXP → ATTACK when the mirror is applied again. HELLO WORLD becomes SVOOL DLIOW. If the tool ever disagrees with those, it is broken; there is no convention, no key, and no setting that could legitimately produce a different answer.

Who uses Atbash, and why

Nobody encrypts anything real with Atbash. Its users are learners, puzzle people, and one group of very patient readers.

  • Students and puzzle solvers meet Atbash as the gateway to substitution ciphers: one fixed mapping, crackable by inspection, ideal for a first 'break this code' exercise before Caesar shifts and Vigenère keywords add moving parts. Escape rooms and CTF warm-ups lean on it for exactly that solvability.
  • Readers of old texts find it in the Book of Jeremiah, written in the 6th century BCE: SHESHACH stands for BABEL and LEV KAMAI for CHALDEA, both Atbash substitutions in Hebrew. Checking such readings, or spotting new ones, takes a mirror table, and this page is one.

The feature set, in one table

The table summarizes what the page does and how it behaves, in terms you can check within a minute of arriving.

AspectThis page
Processing100% client-side JavaScript in your browser
Signup requiredThe text areas work the moment the page loads; no account or cookie wall comes first
Data uploadedNever; inputs stay on your device by architecture
SpeedOutput recomputes on every keystroke
DirectionOne transform covers encode and decode (an involution)
Output optionsCopy, download as .txt, or Use as input to decode the result
CostFree

What Atbash cannot do (the honest part)

  • No confidentiality whatsoever: one fixed mapping, no key space, readable by anyone who recognizes it; treat it as ROT13's equal in weakness.
  • Only A-Z are transformed; accented letters (é, ü) and non-Latin scripts pass through in the clear, including Hebrew, the alphabet the cipher was named for.
  • No salting, variants or modes exist; what you see is the entire algorithm, which is the point of a teaching cipher.

Atbash has no key space at all, one mapping known to every attacker on Earth, so it offers zero confidentiality, the same as ROT13. It is a museum piece that still works beautifully as a museum piece: teaching what a substitution cipher is, anchoring puzzle trails, and demonstrating involutions. Real secrets need real encryption; everything on this page says so plainly.

Your text never touches a server

The mirror runs entirely in your browser: no request carries your text, and the page keeps working with the network disconnected. The inputs people bring include puzzle answers, book-club guesses, and draft messages, and none of it needs to cross a network boundary to subtract 25.

The competition, sized up

The alternatives deserve a fair comparison, not a strawman. The table compares the common options against this page on speed, privacy, and whether the method is documented.

AlternativeWhy people pick this page instead
Doing it by hand (a mirrored alphabet table)The best way to learn it once; this page is the error-proof mirror for every text after that
Other online cipher toolsMany POST your text to a server; this page computes locally, so nothing leaves the machine
Real encryption (AES, age, GPG)The only correct answer when secrecy matters. Atbash is the lesson, not the lock

Field notes and gotchas

Five minutes of method here saves an hour of clicking around later. Three notes and three failure patterns cover the rest.

  • Round-trip before trusting anything: paste the output back (Use as input does it in one click) and the input must return. In Atbash, a failure there is the only possible bug.
  • For puzzles, remember the reversed frequency profile: E is the most common letter in English, and E maps to V, so V will top the ciphertext frequency count. That hint works in both directions.
  • Layering ciphers has algebraic surprises: two Atbash layers cancel to plaintext, and Atbash wrapped around ROT13 wrapped around Atbash collapses to plain ROT13.

When something behaves unexpectedly, the causes are almost always one of these three:

  • Output looks identical to input: you pasted text that is already its own mirror, or text with no letters at all (punctuation and digits pass through unchanged). Check the letters specifically.
  • A puzzle answer will not verify: mixed case. The puzzle expects uppercase; normalize and retry.
  • Hebrew text does not transform: this tool mirrors the Latin alphabet, 26 letters; the original Atbash alphabet was Hebrew's 22.

If something still does not behave, the contact page reaches the desk directly; verified bug reports on this family usually ship a fix inside a week.

Frequently asked questions

These are the questions people actually search about the atbash cipher, answered directly. If yours is missing, the contact page takes feature and question requests.

How does the Atbash cipher work?

Number the letters A=0 through Z=25 and replace each with the letter numbered 25 minus its value: A↔Z, B↔Y, C↔X, meeting at M↔N. ATTACK becomes ZGGZXP; HELLO WORLD becomes SVOOL DLIOW. Non-letters pass through untouched.

Why is Atbash its own inverse?

Because the mirror applied twice is the identity: if a letter with value v maps to 25 − v, then 25 − v maps back to 25 − (25 − v) = v. Encryption and decryption are literally the same function, an involution, so one transformation covers both directions.

Where does Atbash come from?

Hebrew scripture, around the 6th century BCE. The name compresses aleph-tav-beth-shin, the first and last, second and second-to-last letters of the Hebrew alphabet. In the Book of Jeremiah, SHESHACH is BABEL and LEV KAMAI is CHALDEA, both Atbash substitutions that scholars have recognized for centuries.

Is Atbash secure?

Not even slightly, and it never was meant to be against modern readers. There is exactly one possible mapping, no key and no key space to search, so anyone who recognizes the letter distribution reads it on sight. Use it for learning and puzzles; use real encryption for secrets.

What is the difference between Atbash and ROT13?

Both are keyless monoalphabetic ciphers and both are their own inverse. ROT13 rotates each letter 13 positions (A→N); Atbash reflects the alphabet (A→Z). ROT13 leaves the letter-frequency profile intact; Atbash reverses it, a distinction that matters in cryptanalysis homework and hardly anywhere else.

Does Atbash handle numbers, spaces and punctuation?

Only the 26 letters of the Latin alphabet are transformed; digits, spaces, and punctuation pass through unchanged, keeping the message's layout. The Hebrew original transformed 22 letters on the same mirror principle.

Does the tool upload my text?

No. The mirror runs entirely in your browser: no request carries your text, and the page keeps working with your network disconnected. Nothing is retained after the tab closes, because nothing was ever sent.

What to reach for next

These tools share the Atbash Cipher's workflow most often; the internal links exist because people genuinely chain them, not for keyword decoration.

  • ROT13 / Caesar Cipher: the shift-based sibling, same keyless spirit with one moving part more.
  • Vigenère Cipher: the next chapter, where a keyword drives per-position shifts and cryptanalysis gets interesting.
  • Morse Code Translator: the other classical encoding people pair with cipher puzzles.
  • Base64 Encoder/Decoder: when the goal is transport encoding rather than classical cipher play.

Sources and further reading

Atbash is one substitution rule, reversible, running entirely on your device. The pages below document the rule's history and the neighbors it sits among, from the Jeremiah readings to what real symmetric encryption looks like.

Sources and further reading

We cite primary sources (standards bodies, government agencies, official documentation) wherever they exist so you can verify every number on this page yourself.