Letters to Numbers Converter
Turn words into alphabet positions for puzzles and classroom codes, with a choice of A = 1, A = 0 or reversed numbering, word sums, and a mode for spreadsheet column letters.
A1Z26: number = position in the alphabet (A = 1, B = 2 … Z = 26)
Alphabet Position Chart
The same 26 letters under the three numberings the tool offers. A1Z26 is the one puzzle books and worksheets mean by default.
| Letter | A = 1 | A = 0 | Z = 1 |
|---|---|---|---|
| A | 1 | 0 | 26 |
| B | 2 | 1 | 25 |
| C | 3 | 2 | 24 |
| D | 4 | 3 | 23 |
| E | 5 | 4 | 22 |
| F | 6 | 5 | 21 |
| G | 7 | 6 | 20 |
| H | 8 | 7 | 19 |
| I | 9 | 8 | 18 |
| J | 10 | 9 | 17 |
| K | 11 | 10 | 16 |
| L | 12 | 11 | 15 |
| M | 13 | 12 | 14 |
| N | 14 | 13 | 13 |
| O | 15 | 14 | 12 |
| P | 16 | 15 | 11 |
| Q | 17 | 16 | 10 |
| R | 18 | 17 | 9 |
| S | 19 | 18 | 8 |
| T | 20 | 19 | 7 |
| U | 21 | 20 | 6 |
| V | 22 | 21 | 5 |
| W | 23 | 22 | 4 |
| X | 24 | 23 | 3 |
| Y | 25 | 24 | 2 |
| Z | 26 | 25 | 1 |
Why 1 2 and 12 Decode Differently
Letters J to Z take two digits, so a code written without gaps can be read more than one way. ABC written as 123 could just as well be AW (1, 23) or LC (12, 3). Longer strings get worse quickly, and the solver has no way of knowing which reading you meant.
Pick a separator before you hand the code out. Spaces are easiest to read aloud, dashes survive being copied into a message without collapsing, and commas suit a worksheet. The tool marks word breaks with a slash so 8 9 4 5 / 20 8 5 can't be mistaken for one long word.
A puzzle that deliberately leaves the gaps out is a harder, different puzzle. If you go that way, check that your intended answer is the only real word among the possible readings.
Worked Example: A 4-Digit Padlock Clue
You're setting up a home escape room. The final box has a 4-dial combination lock, and you want the code to come from a word the players find on the last clue card.
Step 1: Each dial shows a single digit, so every letter must be A–I (1–9)
Step 2: Choose a 4-letter word built only from those letters
Step 3: Convert it
Set the lock to 8945 and print "A=1" somewhere in the room as the nudge. A word like KEY fails here: K is 11 and Y is 25, which won't fit on single-digit dials. If you want to use any word, give the lock the word's letter sum instead: KEY = 11 + 5 + 25 = 41, which works on a 2- or 3-digit lock (041).
Adding Up a Word's Letter Values
The table under the result adds each word's numbers together. Word sums come up in maths puzzles ("which animal is worth exactly 50?"), in classroom number practice, and in "what is my name worth" games. Some numerology systems use the same A1Z26 sums under the name simple English gematria, but there is no evidence those totals mean anything beyond arithmetic.
| Word | Letter values | Sum |
|---|---|---|
| CAT | 3 + 1 + 20 | 24 |
| HELLO | 8 + 5 + 12 + 12 + 15 | 52 |
| OWL | 15 + 23 + 12 | 50 |
| PUZZLE | 16 + 21 + 26 + 26 + 12 + 5 | 106 |
| ALPHABET | 1 + 12 + 16 + 8 + 1 + 2 + 5 + 20 | 65 |
Switching the numbering changes every sum. With A = 0 each word loses one point per letter (CAT becomes 21), and with Z = 1 each letter is worth 27 minus its usual value.
Starting at Zero for Shifts and Code
Programmers and cipher textbooks usually number from A = 0. In code the position is simply the character code minus 65 ('H'.charCodeAt(0) - 65 is 7), and a Caesar shift becomes clean modular arithmetic:
Shift each letter by k (A = 0 numbering)
H shifted by 3
X shifted by 3 wraps round
With A = 1 the same wrap gives 26 mod 26 = 0, a number no letter has, so you'd need an extra "0 means Z" rule. ROT13 is the k = 13 case; try it on the ROT13 tool. The reversed Z = 1 numbering is the number form of the Atbash cipher, which swaps A with Z, B with Y and so on.
Spreadsheet Column Letters to Numbers
Excel and Google Sheets name columns A to Z, then AA, AB and on. That's a counting system with 26 digits and no zero, so a column's number isn't its letters run through A1Z26 one by one. Work through the letters left to right, multiplying by 26 each time:
XFD, Excel's last column
| Column | Number | Why it matters |
|---|---|---|
| Z | 26 | Last single-letter column |
| AA | 27 | First two-letter column |
| AZ | 52 | 26 + 26 |
| ZZ | 702 | Last two-letter column |
| AAA | 703 | First three-letter column |
| XFD | 16,384 | Excel 2007 and later: last column |
| ZZZ | 18,278 | Google Sheets column limit |
In the sheet itself, =COLUMN(INDIRECT("XFD1")) returns 16384, and =SUBSTITUTE(ADDRESS(1,28,4),"1","") turns 28 back into AB. The column mode above accepts cell references like $C$7 too and ignores the row.
Accents, ß and Letters Outside A–Z
A1Z26 only covers the 26 basic Latin letters. With the accent option on, the tool strips accents before converting, so Café becomes 3 1 6 5 and über becomes 21 2 5 18. German ß becomes SS (19 19), the same as when it's written in capitals.
That suits English-style puzzles but not every language. Spanish counts Ñ as its own letter after N, so a Spanish puzzle setter numbering their own alphabet would give Ñ 15 and push O to Z up by one. Untick the option to keep ñ, é and the rest out of the conversion. Letters with no A–Z base, such as Ø, Æ, Greek or Cyrillic, are always left as typed and listed under the result so you can decide how to handle them.
Digits and punctuation in your text are dropped from the code so that a 3 in the original can't be confused with C.
Frequently asked questions
What number is the letter M?
M is 13 with A = 1, the midpoint of the alphabet. A to M are 1–13 and N to Z are 14–26.
Does uppercase or lowercase change the numbers?
No. A1Z26 has one number per letter, so Moon, MOON and moon all give 13 15 15 14.
What is AA as a number?
In a spreadsheet, column AA is 27. As A1Z26 letters it is simply 1 1. Use the Spreadsheet columns mode for the first meaning.
Is A1Z26 safe for hiding a password?
No. Anyone who sees the numbers can decode them in seconds. Use it for games and teaching only.
Sources
- Microsoft: Excel specifications and limits: 16,384 columns per worksheet (A to XFD).
- Google Drive Help: files you can store: Google Sheets limit of 18,278 columns.
- MDN: String.prototype.normalize(): NFD decomposition used to separate accents from base letters.
- Real Academia Española, Ortografía de la lengua española (2010): the Spanish alphabet of 27 letters, with ñ after n.
Related Tools
Capitalize the first letter of every word.
Turn numbers from 1 to 26 into letters.
Switch between RGB values and HEX color codes.
Convert HEX color codes into RGB color values.
Express euro cents as an amount in euros.
Express pence as an amount in British pounds.