A1Z26 Cipher
A1Z26 Cipher Encoder and Decoder
The A1Z26 cipher is a simple substitution cipher that replaces each letter with its position in the alphabet, so A becomes 1, B becomes 2, and Z becomes 26. Type letters on the left to encode them into numbers on the right, and use the swap button to switch direction and decode numbers back into letters. It is a common puzzle in geocaching, escape rooms, and beginner cryptography.
How does the A1Z26 cipher work?
Each letter is swapped for its number in the alphabet, counting A as 1 through Z as 26. Uppercase and lowercase letters map to the same number, and characters that are not letters, such as spaces and punctuation, are left in place. To encode, type your text on the left and read the numbers on the right. To decode, use the swap button and enter the numbers instead.
How do I separate the numbers?
Use the separator setting to choose whether the numbers within a word are joined by a space, a dash, or a comma. For example, HELLO becomes 8 5 12 12 15 with spaces or 8-5-12-12-15 with dashes. When decoding, any string of digits from 1 to 26 is turned back into its letter, so the separator you used does not matter.
Is the A1Z26 cipher secure?
No. The A1Z26 cipher offers no real security because the mapping is fixed and widely known, so anyone can decode it by hand. It is meant for puzzles, games, and learning how substitution ciphers work rather than for protecting sensitive information. For a shift-based puzzle cipher, try the Caesar cipher tool.
| Letter | Number | Letter | Number |
|---|---|---|---|
| A | 1 | N | 14 |
| B | 2 | O | 15 |
| C | 3 | P | 16 |
| D | 4 | Q | 17 |
| E | 5 | R | 18 |
| F | 6 | S | 19 |
| G | 7 | T | 20 |
| H | 8 | U | 21 |
| I | 9 | V | 22 |
| J | 10 | W | 23 |
| K | 11 | X | 24 |
| L | 12 | Y | 25 |
| M | 13 | Z | 26 |
Last reviewed: July 2026