Reverse Alphabet

Copy the alphabet from z to a, or type words and get them in the reversed-alphabet code.

Direction: Plain text to Reversed alphabet

Sample Reversed alphabet

zyxwvutsrqponmlkjihgfedcba

More options

Letter for letter: a is z, b is y, m is n. The swap undoes itself, so a coded line typed here reads back. Digits, spaces and punctuation stay as typed.

All 52 pairs

Small letters 26

  • a for z The last letter becomes the first. Written for "z".
  • b for y Letter 25 becomes letter 2. Written for "y".
  • c for x Letter 24 becomes letter 3. Written for "x".
  • d for w Letter 23 becomes letter 4. Written for "w".
  • e for v Letter 22 becomes letter 5. Written for "v".
  • f for u Letter 21 becomes letter 6. Written for "u".
  • g for t Letter 20 becomes letter 7.
  • h for s Letter 19 becomes letter 8.
  • i for r Letter 18 becomes letter 9.
  • j for q Letter 17 becomes letter 10. Written for "q".
  • k for p Letter 16 becomes letter 11. Written for "p".
  • l for o Letter 15 becomes letter 12.
  • m for n Letter 14 becomes letter 13, the other half of the middle pair. Written for "n".
  • n for m Letter 13 becomes letter 14: the middle pair, neighbors in the alphabet.
  • o for l Letter 12 becomes letter 15.
  • p for k Letter 11 becomes letter 16. Written for "k".
  • q for j Letter 10 becomes letter 17. Written for "j".
  • r for i Letter 9 becomes letter 18. Written for "i".
  • s for h Letter 8 becomes letter 19. Written for "h".
  • t for g Letter 7 becomes letter 20. Written for "g".
  • u for f Letter 6 becomes letter 21. Written for "f".
  • v for e Letter 5 becomes letter 22.
  • w for d Letter 4 becomes letter 23. Written for "d".
  • x for c Letter 3 becomes letter 24.
  • y for b Letter 2 becomes letter 25.
  • z for a The first letter ends up last. Every pair of positions adds up to 27.
Show all 52 pairs (26 more)

Capital letters 26

  • Capital A for capital Z The last letter becomes the first. Written for "Z".
  • Capital B for capital Y Letter 25 becomes letter 2. Written for "Y".
  • Capital C for capital X Letter 24 becomes letter 3. Written for "X".
  • Capital D for capital W Letter 23 becomes letter 4. Written for "W".
  • Capital E for capital V Letter 22 becomes letter 5. Written for "V".
  • Capital F for capital U Letter 21 becomes letter 6. Written for "U".
  • Capital G for capital T Letter 20 becomes letter 7.
  • Capital H for capital S Letter 19 becomes letter 8.
  • Capital I for capital R Letter 18 becomes letter 9.
  • Capital J for capital Q Letter 17 becomes letter 10. Written for "Q".
  • Capital K for capital P Letter 16 becomes letter 11. Written for "P".
  • Capital L for capital O Letter 15 becomes letter 12.
  • Capital M for capital N Letter 14 becomes letter 13, the other half of the middle pair. Written for "N".
  • Capital N for capital M Letter 13 becomes letter 14: the middle pair, neighbors in the alphabet.
  • Capital O for capital L Letter 12 becomes letter 15.
  • Capital P for capital K Letter 11 becomes letter 16. Written for "K".
  • Capital Q for capital J Letter 10 becomes letter 17. Written for "J".
  • Capital R for capital I Letter 9 becomes letter 18. Written for "I".
  • Capital S for capital H Letter 8 becomes letter 19. Written for "H".
  • Capital T for capital G Letter 7 becomes letter 20. Written for "G".
  • Capital U for capital F Letter 6 becomes letter 21. Written for "F".
  • Capital V for capital E Letter 5 becomes letter 22.
  • Capital W for capital D Letter 4 becomes letter 23. Written for "D".
  • Capital X for capital C Letter 3 becomes letter 24.
  • Capital Y for capital B Letter 2 becomes letter 25.
  • Capital Z for capital A The first letter ends up last. Every pair of positions adds up to 27.

How this list was compiled: The table follows from the order of the alphabet and nothing else: each of the 26 letters is swapped with the letter the same distance from the other end, a for z, b for y, down to m for n, once for small letters and once for capitals. The 52 rows were checked by running the whole alphabet through the page's own tool, there and back. That this swap is the Atbash cipher, first used with the Hebrew alphabet, and that it has no key, is as recorded in https://en.wikipedia.org/wiki/Atbash, read on 2026-09-30. Licence: own work (the history line from Wikipedia, CC BY-SA 4.0, restated in this site's own words)

How it works

The reverse alphabet is zyxwvutsrqponmlkjihgfedcba, and the page opens with it ready to copy. Type your own words and each letter is swapped for the one the same distance from the other end, so hello comes out as svool.

Read the full guide

Two jobs, one box

Leave the sample alone and Copy takes the alphabet from z to a. Type anything else and the box is an alphabet reverser for your own text: a becomes z, b becomes y, and the middle pair, m and n, trade places. Capitals stay capitals. Numbers and punctuation pass through untouched.

It reads itself back

Because z also becomes a, the box is its own decoder: running the code twice returns the plain words. Paste svool into the same box and hello comes back. There is no key to agree on, which is also why it keeps nothing secret.

  • To invert the alphabet by hand, write a to m on one line and z to n beneath it, then swap up or down.
  • Positions always add up to 27. E is letter 5, so its partner is letter 22, V.

Questions and answers

What is the alphabet backwards?

Z Y X W V U T S R Q P O N M L K J I H G F E D C B A. The page opens on it in small letters, and the list underneath pairs every letter with its opposite.

Does this code have a name?

Yes. Wikipedia records it as Atbash, a substitution cipher first used with the Hebrew alphabet and named after that alphabet's first, last, second and second-to-last letters. It can be used with any alphabet that has a fixed order.

Is it the same as writing a word backwards?

No. Backwards writing keeps the letters and turns their order round, so hello is olleh. The reversed alphabet keeps the order and changes each letter, so hello is svool.

Is the reversed alphabet a safe code?

No. There is only one way to reverse an alphabet, so there is nothing to guess. Wikipedia notes the cipher gives no security because it has no key. It suits puzzles, treasure hunts and notes between friends.