Numbers to Letters Converter

Decode the A1Z26 cipher (A=1, B=2, ..., Z=26) or its reverse (Z=1, A=26).

Everyday Two-way A=1 or Z=1
Rate this calculator · 5.0 (1)

Numbers ↔ Letters

A1Z26 cipher · two-way · reverse-alphabet option

Instructions — Numbers to Letters Converter

1

Pick direction and scheme

Numbers → Letters decodes a cipher like 8-5-12-12-15. Letters → Numbers encodes the other way. The scheme toggle switches between A=1 (standard) and Z=1 (reverse alphabet).

2

Paste numbers or letters

For decoding: enter numbers 1-26 separated by spaces, commas, or new lines. Use a double space or new line between words. For encoding: enter A-Z text; non-letters are skipped.

3

Read the output

Decoded text appears in uppercase. Out-of-range numbers (0 or >26) show as?. The meta line counts valid and invalid tokens so you can debug puzzle inputs quickly.

Word separation: the cipher itself has no spaces, so puzzle writers usually separate words with a double space, slash, or hyphen-block. This tool treats double-space and new-line as a word break.
Reverse cipher trap: "8 5 12 12 15" decodes to HELLO under A=1 but to SVOOL under Z=1. Always confirm which scheme a puzzle uses before assuming.

Formulas

The A1Z26 cipher is the simplest letter-substitution scheme: each letter is replaced by its position in the English alphabet. There is no key — anyone who knows the scheme can decode it. The point is hiding text from a quick glance, not from a serious attacker.

Number to Letter (A=1)
$$ \text{letter} = \text{chr}(n + 64) $$
Add 64 to the number and take the ASCII character. 1 + 64 = 65 = A; 26 + 64 = 90 = Z. The constant 64 is the ASCII code immediately before A.
Letter to Number (A=1)
$$ n = \text{ord}(\text{letter}) - 64 $$
Take the ASCII code of the uppercase letter and subtract 64. A = 65 - 64 = 1; Z = 90 - 64 = 26.
Reverse Alphabet (Z=1)
$$ \text{letter} = \text{chr}(91 - n) $$
For the reverse cipher, the formula flips: 91 - 1 = 90 = Z; 91 - 26 = 65 = A. This is sometimes called the atbash variant or "mirror alphabet."
A1Z26 vs. Atbash
$$ \text{atbash}(c) = \text{chr}(155 - \text{ord}(c)) $$
Atbash is the letter-to-letter reverse: A↔Z, B↔Y, etc. It does not use numbers at all. The Z=1 numeric scheme is a related-but-different transform.
Total Number of Letters
$$ N_{letters} = 26,\;\; N_{values} = 26 $$
English has 26 letters, so A1Z26 has a fixed value range of 1-26. Languages with longer alphabets (Russian: 33; Polish: 32) need extended versions of the cipher.
Gematria Sum
$$ G(\text{word}) = \sum_{i} n_i $$
English gematria uses the same A=1 mapping but sums the values of a word. CAT = 3 + 1 + 20 = 24. A1Z26 keeps the letters separate; gematria combines them.

Reference

A1Z26 Lookup Table
LetterA=1Z=1LetterA=1Z=1
A126N1413
B225O1512
C324P1611
D423Q1710
E522R189
F621S198
G720T207
H819U216
I918V225
J1017W234
K1116X243
L1215Y252
M1314Z261

Common decoded words for puzzles

Escape rooms and puzzle hunts frequently use A1Z26 for short clue words. These are the patterns you will spot first.

Standard A=1
NumbersWord
8 5 12 12 15HELLO
11 5 25KEY
3 15 4 5CODE
15 16 5 14OPEN
16 21 26 26 12 5PUZZLE
5 24 9 20EXIT
Reverse Z=1
NumbersWord
19 22 15 15 12HELLO
16 22 2KEY
24 12 23 22CODE
12 11 22 13OPEN
11 6 1 1 15 22PUZZLE
22 3 18 7EXIT

Note: A1Z26 has no notion of spaces or punctuation. Most puzzle authors signal a word break with a double-space, slash, or hyphen. This tool reads double-space and new-line as a word boundary.

Article — Numbers to Letters Converter

Numbers to Letters Converter: The A1Z26 Cipher Explained

The numbers to letters converter decodes the A1Z26 cipher, where A=1, B=2, and so on through Z=26. The sequence 8-5-12-12-15 decodes to HELLO. The reverse scheme assigns Z=1, A=26 — under that key, the same numbers decode to SVOOL. Both schemes appear in puzzles, escape rooms, and word games.

A1Z26 is not encryption in the cryptographic sense — anyone who knows the rule can decode the message in seconds. Its purpose is obfuscation, not security. The cipher hides text from a quick glance and makes a clue feel like a puzzle, which is enough for entertainment use even though it would not stop a determined attacker.

What numbers to letters conversion means

The numbers to letters conversion takes a sequence of integers (each between 1 and 26) and maps them onto the corresponding letters of the English alphabet. The mapping is fixed: there is no key beyond knowing which scheme is used and which language alphabet it points to.

The 26-letter limit is specific to the standard English alphabet. Languages with additional letters (Spanish ñ, German ß, Polish ą) need extended versions of the cipher with more numeric values. For English text, the 1-26 range covers everything. Numbers outside that range are flagged as invalid by the converter.

Did you know

The cartoon series Gravity Falls used A1Z26 ciphers in its episode credits. Each episode ended with a string of numbers that fans decoded into hints about future plot points. The show's creator publicly acknowledged the cipher, turning a simple substitution into a recurring fan engagement device.

A1Z26: the standard numbers-to-letters cipher

A1Z26 takes its name from the two endpoints: A=1, Z=26. The full mapping is sequential. B=2, C=3, M=13, T=20. There are no skipped numbers and no shared values — each letter has exactly one number and vice versa.

The cipher dates to at least the early modern period and was a common element of children's puzzle books in the 19th century. Its modern resurgence comes from internet puzzle hunts, alternate reality games (ARGs), and TV shows that use it for fan engagement. The Gravity Falls example is the most famous, but Lost, House of Cards, and many YA novels have used the same trick.

The numbers to letters formula

The math is straightforward. In standard A=1 mode, the letter at position n is the ASCII character at code n + 64 (because A is ASCII 65). In reverse mode, the letter at position n is at code 91 - n (because Z is ASCII 90).

Numbers to letters cheat sheet
A=1 mode: letter = chr(n + 64)
Z=1 mode: letter = chr(91 - n)
Encode: n = ord(letter.toUpper()) - 64
Range: 1 ≤ n ≤ 26 (anything else is invalid)

The arithmetic produces the right letter only when n is between 1 and 26. Values of 0 or 27+ have no letter under A1Z26 and are typically rendered as a placeholder (? or _) so the puzzle solver can see what went wrong.

Reverse A1Z26 and atbash

The reverse scheme flips the alphabet: Z=1, Y=2, A=26. Same numbers, different output. The reverse cipher is rare in modern puzzles, but it shows up often enough that a converter without the option will fail on certain inputs.

Atbash is the letter-to-letter equivalent: A swaps with Z, B with Y, M with N. It does not involve numbers at all. Atbash is older than A1Z26 — it appears in the Hebrew Bible — and is sometimes confused with the reverse numeric scheme, but the two are different transforms with the same shuffling intent.

Input
8 5 12 12 15
5 numbers
A=1 mode
HELLO
Standard
Z=1 mode
SVOOL
Reverse

Numbers to letters in puzzles

Escape rooms, geocaching, ARG hunts, and crossword puzzles all use A1Z26 as a low-friction encoding. A list of integers under 27 should always raise the suspicion that the cipher is in play. If the decoded text reads as English words, the puzzle is solved.

Common variations include using dashes instead of spaces (8-5-12-12-15), using slashes between words (8 5 12 12 15 / 23 15 18 12 4), or hiding the number list in a longer block of unrelated text. The decoding is the same; only the parsing changes.

Numbers to letters vs. gematria

A1Z26 keeps each letter as its own number. The word CAT becomes 3-1-20. Gematria, by contrast, sums the values of a word's letters. CAT becomes 3 + 1 + 20 = 24. The two systems share the A=1 mapping but combine the results differently.

English gematria is a relatively modern invention; classical gematria is Hebrew and Greek (where it is called isopsephy). Religious mystics looked for patterns of equal values across different words, interpreting the matches as hidden connections. Modern puzzlers use gematria more casually, often for thematic clues where the sum reveals an age, year, or count rather than spelling out text.

Numbers above 26 are not A1Z26

If a sequence of numbers includes values like 65, 97, or 128, it is probably ASCII or Unicode, not A1Z26. ASCII codes 65-90 are uppercase letters; 97-122 are lowercase. Decoding ASCII as A1Z26 produces nonsense; trying A1Z26 on ASCII numbers will flag everything as out of range.

Tips for decoding numbers to letters

Start with the highest number. If the maximum is 26 or less, A1Z26 is likely the intended cipher. If the maximum is between 27 and 90, suspect a different substitution — perhaps a letter-by-position-in-a-keyword cipher or a key-and-offset Caesar shift. If the maximum is in the hundreds, ASCII or Unicode is more likely.

Watch for separators. Most puzzle authors group numbers into words with double-spaces, slashes, or hyphenated blocks. The converter on this page reads double-space and new-line as word boundaries, so a well-formatted input decodes into properly spaced English.

  • 1-26 only — anything else is not A1Z26
  • Spaces or commas within a word
  • Double space or new line between words
  • If A=1 fails, try Z=1 — the reverse scheme is the next guess
  • If neither works, the cipher may be ASCII (65 = A) or Caesar shift
  • Gematria sums letters — keep them separate for A1Z26
  • English alphabet only — accented letters need a different scheme
Tip

If a puzzle clue gives you numbers in the 1-26 range and the decoded text still does not make sense, try sorting them, reading them backward, or treating them as pairs of digits (12 and 13 instead of 1, 2, 1, 3). Puzzle authors love these second-level twists, and the converter above handles the basic decoding so you can focus on the puzzle layer.

FAQ

HELLO. The A1Z26 cipher maps 8 = H, 5 = E, 12 = L, 12 = L, 15 = O. Just paste the numbers into the input and select Numbers → Letters with the A=1 scheme.
A1Z26 is the simplest letter-to-number substitution: A=1, B=2, C=3, all the way to Z=26. The cipher takes its name from the two endpoints. It is one of the first ciphers taught to children and a common puzzle device in escape rooms and word games.
The reverse scheme assigns Z=1, Y=2,..., A=26. It is sometimes called the mirror cipher. The same input numbers produce different output letters under the two schemes — 8 = H in standard A=1, but 8 = S in reverse.
Switch the direction toggle to Letters → Numbers, then type the word. Each letter becomes its position in the alphabet. CAT becomes 3 1 20 (in A=1 mode) or 24 26 7 (in Z=1 mode).
Use a double space or a new line between words. Within a word, separate numbers with single spaces or commas. So 8 5 12 12 15 23 15 18 12 4 decodes to HELLO WORLD.
Numbers outside 1-26 cannot map to letters in A1Z26. The tool shows them as ? and reports the count of invalid tokens. Common causes: leading zeros, decimals, or numbers from a different cipher (ASCII codes go 0-127).
A1Z26 keeps each letter separate (HELLO = 8-5-12-12-15). English gematria uses the same A=1 mapping but sums the letters of a word (HELLO = 8 + 5 + 12 + 12 + 15 = 52). The two are related but produce different outputs.
Escape rooms, geocaching, alternate-reality games, and word puzzles all use A1Z26 because it is easy to recognize: any list of numbers all under 27 hints at the cipher. Pop-culture examples include the Gravity Falls TV series, which used A1Z26 for episode credits.