Letters to numbers
Hello World
8-5-12-12-15 23-15-18-12-4
H is the 8th letter, E the 5th, L the 12th, O the 15th.
Convert letters to their position in the alphabet (A = 1, B = 2 … Z = 26) and numbers back to letters. Choose dashes, spaces or commas between the numbers.
/ when the separator is a space).?. Copy the result when you are done.Hello World
8-5-12-12-15 23-15-18-12-4
H is the 8th letter, E the 5th, L the 12th, O the 15th.
20-8-1-14-11-19
THANKS
20 = T, 8 = H, 1 = A, 14 = N, 11 = K, 19 = S.
dev tools
4 5 22 / 20 15 15 12 19
With spaces between numbers, words are separated by / so they stay readable.
A1Z26 replaces every letter with its position in the alphabet: A = 1, B = 2, and so on up to Z = 26. The name says it all: "A is 1, Z is 26". It is one of the simplest substitution ciphers and a favourite in puzzle hunts, escape rooms, geocaching and TV shows such as Gravity Falls, whose end credits hid A1Z26 messages.
| A | B | C | D | E | F | G | H | I | J | K | L | M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| N | O | P | Q | R | S | T | U | V | W | X | Y | Z |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 |
Without separators, A1Z26 is ambiguous: 123 could be ABC (1-2-3), LC (12-3) or AW (1-23). That is why numbers are written with dashes (1-2-3), spaces or commas, and words are kept apart with a wider gap or a slash.
A1Z26 hides nothing. Anyone who sees numbers between 1 and 26 will try it first. Use it for fun and puzzles only.
const encode = (text) => text.toUpperCase().split(/\s+/) .map((w) => [...w].filter((c) => c >= 'A' && c <= 'Z').map((c) => c.charCodeAt(0) - 64).join('-')) .join(' '); const decode = (code) => code.split(' ').map((w) => w.split('-').map((n) => String.fromCharCode(64 + Number(n))).join('')).join(' '); encode('Hello World'); // "8-5-12-12-15 23-15-18-12-4"Some letters decode as ?
Those numbers are outside 1–26. Check for typos, or for a variant that starts at 0 (A0Z25): in that case add 1 to every number.
The decoded words run together
Separate words with a space when numbers use dashes or commas, or with / when numbers are separated by spaces.
Numbers written together, like 81212
Without separators the split is ambiguous. Try likely splits by hand: 8-12-12 (HLL) is more likely than 81-2-12, since numbers stop at 26.
A = 1 and Z = 26: each letter is replaced by its position in the alphabet.
Choose Numbers → Letters and paste the numbers. 1 becomes A, 2 becomes B, up to 26 for Z.
Yes. "Letter number code", "number alphabet cipher" and A1Z26 all describe the same idea.
No. Everything runs in your browser.
Free, private developer tools that run in your browser. No signup, nothing uploaded, no waiting.
Tip: press Ctrl D to bookmark dev247.