How to use the letters to numbers (a1z26)
- Type or paste your text into the Input box. You can enter letters like
HELLOor numbers like8-5-12-12-15. - Choose a Direction: auto-detect, letters to numbers, or numbers to letters.
- Pick a Number separator (hyphen, space or comma) for how encoded output should look.
- Toggle Keep word spaces if you want spaces between words preserved during encoding.
- The result appears instantly below as you type.
How the A1Z26 cipher works
The A1Z26 cipher is one of the simplest substitution methods. Each letter of the English alphabet is replaced by its position number: A becomes 1, B becomes 2, and so on up to Z which becomes 26. To encode the word "CAT", you look up each letter: C is 3, A is 1, T is 20, giving 3-1-20 when using a hyphen separator.
Decoding reverses the process. Given 4-15-7, you map 4 to D, 15 to O and 7 to G, spelling "DOG". Non-alphabetic characters such as punctuation are typically ignored or stripped, while spaces between words can be kept as double separators or removed entirely depending on your preference.
Alphabet to number reference table
Use this table to look up any letter's numeric value without running the converter.
| Letter | Number | Letter | Number | Letter | Number |
|---|---|---|---|---|---|
| A | 1 | J | 10 | S | 19 |
| B | 2 | K | 11 | T | 20 |
| C | 3 | L | 12 | U | 21 |
| D | 4 | M | 13 | V | 22 |
| E | 5 | N | 14 | W | 23 |
| F | 6 | O | 15 | X | 24 |
| G | 7 | P | 16 | Y | 25 |
| H | 8 | Q | 17 | Z | 26 |
| I | 9 | R | 18 |
Practical uses for alphabet numbers
Converting letters to numbers is common in puzzle solving, cryptography games and escape rooms. Many geocaching puzzles use A1Z26 as a first step before applying more complex ciphers. Teachers also use it to introduce students to the idea of encoding information.
In programming challenges, mapping characters to their alphabetical index helps with tasks like calculating string scores or building simple hash functions. If you need phonetic clarity rather than numeric conversion, the NATO phonetic alphabet spells out words using standardized code words instead.
Common mistakes to avoid
A frequent error is mixing up zero-indexed and one-indexed positions. In computing, arrays often start at 0, but the A1Z26 cipher always starts at 1 for A. Using 0 for A will shift every letter and produce incorrect decodings.
Another issue is inconsistent separators. If you encode with hyphens but try to decode a comma-separated string without switching the mode, the parser may read the entire sequence as one invalid number. Always match the separator used during encoding when decoding manually.
Finally, non-English characters like accented letters do not have standard A1Z26 values. Strip diacritics first or handle them separately before passing text through a letter to number converter.
A1Z26 compared to other encodings
A1Z26 is not encryption. Anyone who sees a sequence of numbers between 1 and 26 can guess the scheme immediately. For actual secrecy, combine it with a key-based cipher or use something stronger. If you need to represent text in a compact machine-readable format, consider Base64 encoding instead, which handles all byte values and preserves binary data safely.
For translating dots and dashes rather than numbers, a Morse code translator serves a similar educational purpose but uses an entirely different symbol set. And if you are working with numeral systems rather than alphabets, a number base converter handles binary, octal and hexadecimal transformations.
Worked examples
Each result below was produced by the same code the tool runs, so you can check your own numbers against them.
| Example | Input | Result |
|---|---|---|
| Encode "HELLO" | Input: HELLO; Direction: encode; Number separator: -; Keep word spaces: yes | 8-5-12-12-15 |
| Decode 8-5-12-12-15 | Input: 8-5-12-12-15; Direction: decode; Number separator: -; Keep word spaces: yes | HELLO |
| Encode a sentence | Input: Hi there; Direction: encode; Number separator: ; Keep word spaces: yes | 8 9 20 8 5 18 5 |
| Decode comma-separated | Input: 23,5,18,15,2,9,20; Direction: decode; Number separator: ,; Keep word spaces: yes | WEROBIT |
FAQ
What does A1Z26 mean?
A1Z26 means A equals 1 and Z equals 26. Every letter is replaced by its position in the English alphabet.
How do I convert numbers to letters?
Enter the numbers separated by hyphens, commas or spaces, then select the decode direction. Each number from 1 to 26 maps back to its corresponding letter.
Does this letter to number converter handle lowercase input?
Yes. Lowercase and uppercase letters are treated identically. The output is always uppercase when decoding numbers back to text.
What happens to spaces and punctuation?
Punctuation is stripped. Spaces between words can be preserved as double separators or removed entirely, depending on the "Keep word spaces" setting.
Is my text sent to a server?
No. The conversion happens entirely in your browser. Nothing you type is uploaded anywhere.
Can I use numbers larger than 26?
No. Only values from 1 to 26 correspond to English letters. Entering 0 or anything above 26 will produce an error.