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.

Numbers to letters

Show each letter and the sum
0 letters
Checked byTomeshia Brock
Reviewed byJacob Seto
Last updated · How we test

Runs in your browser. Nothing you type is uploaded.

How to use the converter

  1. Type or paste words in the left box. Capital and small letters give the same number.
  2. Choose the Alphabet: A = 1 to Z = 26 (A1Z26), A = 0, reversed, or ASCII codes.
  3. 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.
  4. 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.

InputWhat you get
HELLO and hello8 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 Dash13-5-5-20 1-20 14-15-15-14, the way A1Z26 codes are usually written in puzzles
Hello, world! with Keep other characters unticked8 5 12 12 15 / 23 15 18 12 4. The comma and the ! are left out.
Hello, world! with Keep other characters ticked8 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 = 00 1 2
abc with Alphabet set to reversed26 25 24
Hi with Alphabet set to ASCII codes72 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.
The letters to numbers converter with Separator set to Dash and the input meet at noon. The output is 13-5-5-20 1-20 14-15-15-14, and the counter reads 10 letters, sum 122.
meet at noon with the Dash separator. Letters in a word are joined by dashes and words are split by spaces.
The letters to numbers converter with the input Crème brûlée. The output is 3 18 5 13 5 / 2 18 21 12 5 5, and a note says è was read as e, û as u and é as e. The counter reads 11 letters, sum 107.
Crème brûlée in the converter. Each accented letter is read as its plain letter, and the note under the box lists them.

How the letter to number converter works

A1Z26 chart of the alphabet: A is 1, B is 2 and so on up to Z, which is 26. M is 13 and N is 14.

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

LetterA1Z26A = 0ReversedASCII (capital)
A102665
B212566
C322467
D432368
E542269
F652170
G762071
H871972
I981873
J1091774
K11101675
L12111576
M13121477
N14131378
O15141279
P16151180
Q17161081
R1817982
S1918883
T2019784
U2120685
V2221586
W2322487
X2423388
Y2524289
Z2625190

Word values and sums

The word HELLO converted with A1Z26: H is 8, E is 5, L is 12, L is 12 and O is 15. The numbers add up to 52.

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".

The letters to numbers converter with the input Hi, Bob! and Keep other characters ticked. The output is 8 9 , / 2 15 2 !. Show each letter and the sum is open, listing H 8, i 9, B 2, o 15, b 2, and the line Sum of each word: Hi = 17, Bob = 19. Total: 36.
Hi, Bob! with the breakdown open. Each word gets its own sum, and the total is shown both in the breakdown and next to the buttons.

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.

KeyLettersKeyLetters
2A B C6M N O
3D E F7P Q R S
4G H I8T U V
5J K L9W 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.

ColumnNumberColumnNumber
A1BA53
Z26ZZ702
AA27AAA703
AZ52XFD16384, 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))-64 turns 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.

Scroll to Top