Letters to numbers converter
Type a word and each letter becomes its place in the alphabet: HELLO is 8 5 12 12 15. Switch to A = 0, a reversed alphabet or ASCII codes, and see the sum of every word.
Show each letter and the sum
Runs in your browser. Nothing you type is uploaded.
How to use the converter
- Type or paste words in the left box. Capital and small letters give the same number.
- Choose the Alphabet: A = 1 to Z = 26 (A1Z26), A = 0, reversed, or ASCII codes.
- Pick a Separator under the box. With spaces, words are split by a slash; with dashes, words are split by a space, the usual way A1Z26 codes are written.
- Tick "Keep other characters" to carry punctuation across, then copy, download or share. The total of all letters shows next to the buttons.
What the converter does with different text
Each input below was typed into the converter on this page with Alphabet on A = 1 to Z = 26, Separator on Space and "Keep other characters" unticked, unless the row says otherwise.
| Input | What you get |
|---|---|
HELLO and hello | 8 5 12 12 15. Capital and small letters give the same numbers. |
hello world (two words) | 8 5 12 12 15 / 23 15 18 12 4. A slash marks the gap between words. Total 124. |
meet at noon with Separator set to Dash | 13-5-5-20 1-20 14-15-15-14, the way A1Z26 codes are usually written in puzzles |
Hello, world! with Keep other characters unticked | 8 5 12 12 15 / 23 15 18 12 4. The comma and the ! are left out. |
Hello, world! with Keep other characters ticked | 8 5 12 12 15 , / 23 15 18 12 4 ! |
R2D2 (digits mixed in) | 18 4. Only the letters are numbered. Sum 22. |
abc with Alphabet set to A = 0 | 0 1 2 |
abc with Alphabet set to reversed | 26 25 24 |
Hi with Alphabet set to ASCII codes | 72 105. Upper and lower case now differ. Sum 177. |
café (an accented letter) | 3 1 6 5, with a note that é was read as e. The same goes for ü, ñ and other accented letters. |


How the letter to number converter works

The most common system, often called A1Z26, numbers each letter by its position: A is 1, B is 2 and Z is 26. It turns up in puzzle hunts, escape rooms, geocaching, classroom code-breaking and puzzle books, because anyone can decode it with nothing but the alphabet. When a puzzle uses dots and dashes instead of numbers, it is Morse code, and the Morse code translator reads it.
Letters to numbers chart: alphabet numbers A to Z
| Letter | A1Z26 | A = 0 | Reversed | ASCII (capital) |
|---|---|---|---|---|
| A | 1 | 0 | 26 | 65 |
| B | 2 | 1 | 25 | 66 |
| C | 3 | 2 | 24 | 67 |
| D | 4 | 3 | 23 | 68 |
| E | 5 | 4 | 22 | 69 |
| F | 6 | 5 | 21 | 70 |
| G | 7 | 6 | 20 | 71 |
| H | 8 | 7 | 19 | 72 |
| I | 9 | 8 | 18 | 73 |
| J | 10 | 9 | 17 | 74 |
| K | 11 | 10 | 16 | 75 |
| L | 12 | 11 | 15 | 76 |
| M | 13 | 12 | 14 | 77 |
| N | 14 | 13 | 13 | 78 |
| O | 15 | 14 | 12 | 79 |
| P | 16 | 15 | 11 | 80 |
| Q | 17 | 16 | 10 | 81 |
| R | 18 | 17 | 9 | 82 |
| S | 19 | 18 | 8 | 83 |
| T | 20 | 19 | 7 | 84 |
| U | 21 | 20 | 6 | 85 |
| V | 22 | 21 | 5 | 86 |
| W | 23 | 22 | 4 | 87 |
| X | 24 | 23 | 3 | 88 |
| Y | 25 | 24 | 2 | 89 |
| Z | 26 | 25 | 1 | 90 |
Word values and sums

Adding the numbers gives a single value for a word. HELLO is 8 + 5 + 12 + 12 + 15 = 52, WORLD is 23 + 15 + 18 + 12 + 4 = 72, and LOVE is 12 + 15 + 22 + 5 = 54. Word sums are used in puzzles and number games. The converter shows the total next to the buttons and the sum of each word under "Show each letter and the sum".

Other ways to number the alphabet
- A = 0 to Z = 25 is common in programming and in cipher math, where shifting a letter by k is (n + k) mod 26.
- Reversed, Z = 1 to A = 26, appears in some puzzles. Combined with A1Z26 it is a quick way to do the Atbash cipher, which swaps A with Z, B with Y and so on.
- ASCII codes keep upper and lower case apart: A is 65 and a is 97. Pick this setting for computer text, or use text to ASCII for hex and binary output as well.
To decode numbers back into words, use the numbers to letters converter or its tab above the tool.
Phone keypad letters to numbers
A phone number written with letters, such as 1-800-FLOWERS, uses the keypad layout instead of alphabet positions. Each key carries three or four letters, so several letters share one digit.
| Key | Letters | Key | Letters |
|---|---|---|---|
| 2 | A B C | 6 | M N O |
| 3 | D E F | 7 | P Q R S |
| 4 | G H I | 8 | T U V |
| 5 | J K L | 9 | W X Y Z |
So FLOWERS dials as 356-9377 and HELLO as 43556. Keys 1 and 0 have no letters. The converter above numbers letters by their place in the alphabet, so use this table for phone words.
Spreadsheet column letters to numbers
Excel and Google Sheets label columns A to Z, then AA, AB and so on. That is a counting system of its own: after Z the letters roll over like digits, but there is no zero, so AA comes straight after Z.
| Column | Number | Column | Number |
|---|---|---|---|
| A | 1 | BA | 53 |
| Z | 26 | ZZ | 702 |
| AA | 27 | AAA | 703 |
| AZ | 52 | XFD | 16384, the last column in current Excel |
To work one out, multiply the running total by 26 and add the next letter's A1Z26 value. For AZ that is 1 × 26 + 26 = 52. In a sheet, =COLUMN(INDIRECT("AZ1")) returns the same 52.
Letters to numbers in Python, JavaScript and Excel
- Python:
[ord(ch) - 64 for ch in "HELLO".upper()]returns[8, 5, 12, 12, 15], because ord() gives each letter its ASCII code and A is 65. - JavaScript:
[..."HELLO"].map(ch => ch.toUpperCase().charCodeAt(0) - 64)gives the same list. - Excel and Google Sheets:
=CODE(UPPER(A1))-64turns the letter in A1 into its number. Microsoft's CODE function page gives=CODE("A")as 65.
All three subtract 64 because capital A is 65 in ASCII.
Frequently asked questions
What number is the letter A?
1 in A1Z26, 0 if the alphabet starts at zero, and 65 as an ASCII code.
What number is Z?
26 in A1Z26. In the reversed alphabet Z is 1.
What is the A1Z26 cipher?
A simple substitution code that replaces each letter with its position in the alphabet, from A = 1 to Z = 26. Letters in a word are usually joined with dashes and words separated by spaces.
Is A1Z26 a secure way to hide a message?
No. Anyone who spots numbers from 1 to 26 can decode it in seconds. It is meant for puzzles and games.
What does 8 5 12 12 15 mean?
HELLO in A1Z26.
How many numbers are in the alphabet?
The English alphabet has 26 letters, so A1Z26 uses the numbers 1 to 26. With A = 0 the range is 0 to 25.

