Atbash Cipher Converter

Reverse the alphabet to encode or decode a message with the Atbash cipher.

Technology and NetUpdated 2026-11-192 min read
Atbash Cipher Converter
Up to 200 characters. Non letters are left unchanged.
Converted message
...
Letters transformed...
Operation...

What it does

The Atbash cipher is one of the oldest known substitution ciphers. It reverses the alphabet so that the first letter becomes the last, the second becomes the second to last, and so on. The name comes from the first, last, second and second to last letters of the Hebrew alphabet.

This tool applies that reversal to a message while preserving case and leaving spaces and punctuation in place. Because the mapping is its own inverse, the same operation both encrypts and decrypts.

The page opens with HELLO WORLD. Reversing each letter gives SVOOL DLIOW, and applying the same conversion again returns the original message.

Historically the cipher was used with Hebrew and other alphabets. In English it is mainly a teaching example because there is only one possible mapping and no key to choose.

The tool handles Latin letters only. Characters outside A to Z and a to z pass through unchanged.

How to use

  1. Type the message to convert.
  2. Read the result, which is both the encryption and the decryption.
  3. Check the letter count for the characters that were transformed.
  4. Apply the tool again to the result to recover the original.
  5. Try CRYPTO to see XIBKGL.
  6. Note that spaces and punctuation stay in place.

Formula

For letter position i from 0 to 25, the mapped letter has position 25 minus i
i
The zero based position of a letter in the alphabet.
mapped letter
The letter at position 25 minus i.

Applying the transformation twice returns the original letter because 25 minus (25 minus i) equals i. The cipher is therefore an involution and needs no separate decryption mode.

Worked example

Example: HELLO WORLD

The page opens with the message HELLO WORLD.

  1. H is the eighth letter, so it maps to the nineteenth from the end, which is S.
  2. E maps to V, and the two L letters map to O.
  3. The second word starts with W, which maps to D.
  4. O maps to L, R maps to I and D maps to W.
  5. The result is SVOOL DLIOW.
  6. Applying the cipher again gives HELLO WORLD.

Reference table

Sample Atbash conversions
PlaintextResult
HELLO WORLDSVOOL DLIOW
CRYPTOXIBKGL

Limits

  • Messages are limited to 200 characters.
  • Only Latin letters are transformed.
  • There is no key, so the method offers no security.
  • Case is preserved independently.

Common mistakes

  • Expecting separate encryption and decryption keys.
  • Assuming the cipher cannot be recognised instantly.
  • Transforming spaces or punctuation.
  • Using a different alphabet order than A to Z.
  • Treating it as a transposition rather than a substitution.

Try it yourself

Quick checks. Answers sit tucked under each question.

Encode CRYPTO with Atbash.

XIBKGL.

What happens if you apply Atbash twice?

You recover the original message.

Does the cipher have a key?

No. The mapping is fixed.

Questions

What is Atbash?

A substitution cipher that reverses the alphabet.

Is it the same in reverse?

Yes. The operation is its own inverse.

Where did it originate?

In Hebrew texts, where the name comes from the first, last, second and second to last letters.

Is it secure?

No. There is only one mapping and no key.

Does it handle lowercase?

Yes. Case is preserved.

What about non letters?

They are left unchanged.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.