Atbash Cipher

Encode and decode text with the reversed-alphabet Atbash cipher.

Atbash Cipher tool

About the Atbash Cipher

Atbash reverses the alphabet, so A becomes Z, B becomes Y and M swaps with N. It began as a cipher for the Hebrew alphabet and appears in puzzles, treasure hunts and classroom lessons on the history of codes. Because the mapping is its own reverse, the same operation encodes and decodes: HELLO becomes SVOOL and SVOOL becomes HELLO again. This Atbash cipher tool keeps capital letters, spaces and punctuation in place, so the result keeps the shape of the original message. It offers no real protection, but it is a good first step before more complex ciphers. For a variable shift, try the Caesar Cipher, and for keyword-based encryption, the Vigenere Cipher.

The rule is simple arithmetic: a letter at position p in the alphabet, counting A as 0, becomes the letter at position 25 − p. Applying the rule twice gives 25 − (25 − p) = p, the original letter, which is why there is no separate decode setting. Like the Caesar cipher it has no key, so anyone who knows the method can read the message; its value today is in puzzles, games and teaching.

Example: Hello World becomes Svool Dliow, and Svool Dliow becomes Hello World again. The word WIZARD becomes DRAZIW, which is the word read backwards with each letter flipped, a favorite puzzle-maker's curiosity.

For a cipher with a chosen shift, use the Caesar cipher; for one with a keyword, the Vigenère cipher; and for spoilers, ROT13. For real secrecy, use text encryption.

How to use the Atbash Cipher

  1. Type or paste the textPlain text or an Atbash message.
  2. Read the resultEach letter is replaced by its mirror in the alphabet.
  3. Decode the same wayAtbash is its own inverse: apply it again to get the original.
  4. Copy the resultCase, digits and punctuation are kept.

Atbash Cipher features

  • A↔Z, B↔Y substitution
  • Encodes and decodes in one step
  • Keeps upper and lower case
  • Digits and punctuation unchanged
  • Instant results
  • Copy or download
  • Works offline after loading

Common uses

  • Puzzles, riddles and escape rooms
  • Bible studies and history of codes
  • Gravity Falls-style cryptograms
  • Teaching substitution ciphers
  • Secret notes for fun

The Atbash cipher in practice: decoding a puzzle, the pairs trick, folding a paper decoder, its place among ciphers and digits

By the FreeToolsWorld editorial team · Updated November 2026 · How we write and check our guides

Atbash reverses the alphabet, so A swaps with Z, B with Y and so on. With no key and a mapping that undoes itself, it is perfect for children's puzzles, escape rooms and quick riddles. This guide decodes a puzzle message, shows a mental shortcut for decoding without a table, explains how to make a folding paper decoder and places Atbash in the wider family of ciphers.

A worked example: an escape room clue

An escape room hides the message GSV PVB RH FMWVI GSV NZG on a poster. Applying Atbash gives THE KEY IS UNDER THE MAT. Because Atbash undoes itself, the same step encodes and decodes, so players do not need to know which direction the puzzle maker used.

The pairs trick

Numbering the letters from A as 1 to Z as 26, each letter and its Atbash partner always add up to 27. G is 7, so its partner is 20, which is T. With this rule, letters can be decoded in your head without a table. Remembering a few anchor pairs, such as A with Z, M with N and H with S, makes decoding faster still.

A folding paper decoder

Write the alphabet from A to M along the top of a strip of paper and from N to Z backwards along the bottom, so each column shows a pair: A above Z, B above Y and so on, ending with M above N. Children can use the strip to encode and decode messages, and making it teaches the reversal rule better than any explanation.

Atbash among other ciphers

Atbash belongs to the affine ciphers, which transform each letter's position by multiplying and adding before wrapping around the alphabet. Atbash multiplies by minus one and adds 25. Caesar ciphers multiply by one and add the shift. Seeing them as members of one family helps students understand how ciphers are built from simple arithmetic.

Digits and symbols

Standard Atbash changes only letters. Some puzzle makers extend the idea by reversing the digits too, swapping 0 with 9, 1 with 8 and so on. If a decoded message still contains strange numbers, try that extension.

Combining with other tricks

Atbash on its own is easy to recognise once players know it, so puzzle designers sometimes combine it with reversing the text, a Caesar shift or a keyword substitution. Each extra step adds challenge while keeping the puzzle solvable by hand.

Words that become other words

Occasionally Atbash turns one real word into another, or into the same word read backwards, as with WIZARD and DRAZIW. Hunting for such pairs is a pleasant word game for students, and the tool makes testing candidates quick.

Using it with children

Atbash suits younger children because there is no key to remember. Start with short words, then sentences, and let children write coded notes to each other. It builds patience, pattern recognition and alphabet familiarity in a playful way.

Common mistakes

  • Expecting Atbash to keep secrets from anyone who knows it.
  • Mixing up the middle pair, M and N.
  • Applying a Caesar shift when the puzzle uses Atbash.
  • Forgetting that digits are unchanged in standard Atbash.

Related tools

For a cipher with a chosen shift, use Caesar Cipher. For the half-alphabet rotation, try ROT13 Encoder and Decoder, and to reverse text as an extra puzzle step, Text Reverser.

Spotting Atbash

Atbash leaves a fingerprint: the common English letters E, T and A become V, G and Z. A ciphertext with many Vs and Gs and a fair number of Zs is a good candidate for Atbash. Puzzle solvers often try it as soon as they notice letters that are normally rare appearing frequently.

Writing your own puzzles

When creating an Atbash puzzle, decode it yourself with the tool before sharing, check that the message reads naturally and consider a hint such as mirror or backwards alphabet. Short, playful messages work best, and pairing the puzzle with a physical clue makes it more satisfying to solve.

Other alphabets

The idea of pairing the first letter with the last works for any alphabet with an agreed order, as its Hebrew origins show. Teachers can adapt it for the Urdu alphabet as a classroom exercise, pairing alif with the last letter and continuing inwards, as long as everyone uses the same letter order.

A maths connection

In the formula 25 minus p, each letter's position is reflected around the middle of the alphabet, just as a graph can be reflected in a line. Applying the reflection twice returns the original, which makes Atbash a friendly example of a function that is its own inverse in a maths lesson.

Speed challenges

Once players know the pairs trick, Atbash makes a good speed challenge: give everyone the same short message and see who decodes it first without a table. It strengthens alphabet knowledge and mental arithmetic at the same time, and the tool settles any disputes about the correct answer.

Privacy

Atbash runs in your browser. Your text is not uploaded or stored.

Frequently asked questions

How does the Atbash cipher work?

It reverses the alphabet: A swaps with Z, B with Y, C with X, down to M and N. Every letter is replaced by its partner from the other end of the alphabet.

How do I decode Atbash?

Apply Atbash again. Because each pair of letters swaps with each other, encoding twice returns the original text, so this tool decodes and encodes in the same way.

Where does the name Atbash come from?

From the Hebrew letters aleph, tav, bet and shin: the first letter swaps with the last (aleph-tav) and the second with the second-to-last (bet-shin). It was first used with the Hebrew alphabet and appears in the Book of Jeremiah.

Is Atbash used in the Bible?

Yes. In the Book of Jeremiah, Sheshach is generally understood as Atbash for Babel (Babylon). It is one of the earliest known uses of a cipher.

Is the Atbash cipher secure?

No. It has no key, so anyone who knows the method can decode it immediately, and it is vulnerable to frequency analysis. It is a puzzle cipher, not protection.

What is the difference between Atbash and Caesar?

Caesar shifts every letter forward by the same amount; Atbash mirrors the alphabet. Atbash has one fixed mapping, while Caesar has 25 possible shifts. Neither uses a secret key, so both are easy to break.

Which TV show uses the Atbash cipher?

The animated series Gravity Falls hid Atbash messages in its end credits, alongside Caesar and Vigenère ciphers, which made the cipher popular with puzzle fans.

Does it work with numbers?

Standard Atbash only changes letters, so numbers are left as they are. Some puzzles also mirror digits (0↔9, 1↔8), which this tool does not do.

What does HELLO become in Atbash?

SVOOL. H is the 8th letter and becomes S, the 8th from the end; E becomes V, L becomes O and O becomes L. Paste SVOOL back in and you get HELLO again, because Atbash undoes itself.

Is Atbash the same as a reverse alphabet cipher?

Yes. Atbash is also called the reversed or mirror alphabet cipher, because it pairs the alphabet with itself written backwards. Mathematically it is a special case of the affine cipher, with both of its keys set to 25.