Letters to Numbers

Convert letters to numbers with A1Z26 (A=1, B=2 … Z=26), or turn numbers back into letters, with options for A=0, separators and zero-padding.

0 Sum
0 Letters

What Is Letters to Numbers (A1Z26)?

Letters to numbers means replacing each letter with its position in the alphabet: A becomes 1, B becomes 2, and so on up to Z, which becomes 26. This simple code is usually called A1Z26. It ignores upper and lower case, so Hello and HELLO give the same result.

ABCDEFGHIJKLM
12345678910111213
NOPQRSTUVWXYZ
14151617181920212223242526

The chart above follows the A=0 option when you tick it.

How to Convert Letters to Numbers

  1. Pick Letters → Numbers and type or paste your text.
  2. Choose a separator and, if you want, tick A=0 or Pad to 2 digits.
  3. Copy the result. The Sum shows the total of all letter values.

For example, Hello World becomes 8 5 12 12 15 / 23 15 18 12 4. Words are separated by a slash, and a different separator only changes the gaps between letters inside a word.

OptionEffect on "abc"
Default (A=1, space)1 2 3
A=00 1 2
Dash separator1-2-3
Comma separator1, 2, 3
Pad to 2 digits01 02 03

Characters that are not letters stay where they are. Digits and punctuation are kept as they are, and several spaces in a row count as a single gap between words.

A=1 vs A=0: Which Numbering Should You Use?

A=1 is the classic A1Z26 and what puzzles, escape rooms and geocaching hints almost always mean. A=0 starts counting at zero, which matches how programmers index arrays, so A is 0 and Z is 25. Pick the one your puzzle or code expects, because the same message gives different numbers.

LetterA=1A=0
A10
M1312
Z2625

Letters to Numbers on a Phone Keypad

Some people searching for letters to numbers want the phone keypad instead: the letters printed under the digits 2 to 9, used for numbers like 1-800-FLOWERS. That is a different code. It maps several letters to one digit, so it cannot be reversed uniquely. A1Z26 gives every letter its own number.

Keypad digitLettersA1Z26 numbers for those letters
2A B C1 2 3
3D E F4 5 6
4G H I7 8 9
5J K L10 11 12
6M N O13 14 15
7P Q R S16 17 18 19
8T U V20 21 22
9W X Y Z23 24 25 26

Take the word HELLO. On a keypad it is 43556. In A1Z26 it is 8 5 12 12 15. This page converts with A1Z26 only; the keypad table is here so you can tell the two codes apart.

Letters to Numbers Examples

These examples use the default A=1 and show the Sum that the converter displays under the result.

WordNumbersSum
CAT3 1 2024
CODE3 15 4 527
HELLO8 5 12 12 1552
WORLD23 15 18 12 472

Numbers to Letters: Reading the Digits Back

In the Numbers → Letters direction the tool splits your input at every character that is not a digit, and a slash marks a gap between words. The result is shown in lowercase. A number outside the range (0 or above 26 with A=1; above 25 with A=0) becomes a question mark, and the tool tells you how many numbers were out of range. For example, 8 27 5 gives h?e.

Digits run together are ambiguous. The string 112 could be 1 1 2 (AAB), 11 2 (KB) or 1 12 (AL). Rather than guess, the converter asks you to put a separator between numbers. If every letter was written with two digits, tick Pad to 2 digits and a string like 0805121215 is read as hello.

Frequently Asked Questions

What does A1Z26 mean?

It is the name for the code where A=1 and Z=26: each letter is replaced by its position in the English alphabet. It is the most common way to turn letters into numbers.

How do I convert numbers back to letters?

Choose Numbers → Letters and enter numbers separated by spaces, commas or dashes. Use a slash between words. With Pad to 2 digits on, you can also paste digits written two per letter, such as 0805121215.

Is A1Z26 a secure way to hide a message?

No. It is a fixed substitution that anyone can reverse in seconds, so use it for puzzles and games, not for secrets.

What happens to spaces, digits and punctuation?

They are kept in place. Several spaces become a single word gap shown as a slash, and anything that is not an English letter is copied through as it is.

Why do I see a question mark in the letters result?

A question mark replaces a number that does not match a letter. With A=1 the valid range is 1 to 26, and with A=0 it is 0 to 25.

Is my text uploaded anywhere?

No. Every letter and number is converted on your own device by this page, so your words, names or puzzle answers are never uploaded.

Letters to Numbers: Quick Summary

Use this letters to numbers converter for A1Z26 in both directions, switch to A=0 when you need zero-based values, and read the keypad table if you were after phone letters instead. To encode text in binary rather than numbers, try the binary translator.