A1Z26 Cipher Encoder and Decoder
The A1Z26 cipher replaces each letter with its position in the alphabet: A=1, B=2, up to Z=26. For example "Hello" becomes 8-5-12-12-15 and HELLO decodes back to HELLO. Type text or numbers below.
Numbers
8-5-12-12-15 / 23-15-18-12-4
Examples
- Hello world → 8-5-12-12-15 / 23-15-18-12-4
- 8-5-12-12-15 / 23-15-18-12-4 → HELLO WORLD
- 8 5 12 12 15 → HELLO
How the A1Z26 cipher works
It is a simple substitution cipher with a fixed key: the number is the letter’s place in the 26-letter English alphabet. It is not secure, because the mapping is public, but it is common in puzzles, escape rooms and geocaching. A1Z26 only covers the basic Latin letters A-Z; accents and non-Latin scripts have no number.
Encoding is case-insensitive, so a and A both give 1. Letters in a word are joined with hyphens, and words are separated by " / " so the breaks survive.
Separators when decoding
If your numbers contain hyphens or commas, those separate letters and spaces or slashes separate words: 8-5-12-12-15 23-15-18-12-4. If you only use spaces, each space separates letters and a slash separates words: 8 5 12 12 15 / 23 15 18 12 4. These defaults avoid guessing word breaks from spacing alone.
Anything outside 1-26 is an error, for example 0 or 27, and the tool tells you which token failed. Punctuation and digits in text are skipped when encoding, with a warning.
A1Z26 versus ASCII
Decoding by hand is a table lookup: 1-9 are A-I, 10-18 are J-R and 19-26 are S-Z. Numbers above 26 do not map to a letter, which is the usual sign that a puzzle uses a different key, such as a shifted alphabet or ASCII codes. Try the ASCII table or the binary alphabet if the numbers run from 65 to 90 or 97 to 122.
A1Z26 numbers are not character codes. In US-ASCII, A is 65; in A1Z26 it is 1. The binary code alphabet page shows both columns side by side.
Frequently asked questions
- What does A1Z26 mean?
- A is 1 and Z is 26: the letters are numbered in alphabetical order.
- What is 20 in A1Z26?
- T.
- Is A1Z26 the same as Caesar?
- No. A Caesar cipher shifts letters by a key and outputs letters; A1Z26 outputs numbers.
- Does it handle spaces and punctuation?
- Spaces become word breaks. Other characters are skipped with a warning because they have no A1Z26 number.