All articles
ciphera1z26numbersubstitution

A1Z26 Cipher: How the Number-Letter Substitution Works

The A1Z26 cipher explained — how A=1, B=2 ... Z=26 works, how to encode and decode messages, and variations used in puzzles and escape rooms.

April 20, 20266 min readBy SolveCipher Team

The A1Z26 cipher is the simplest number-based substitution cipher: A=1, B=2, C=3, all the way through Z=26. The name itself tells you the system — A is 1, Z is 26, and every letter in between maps to its position in the alphabet. If you've ever numbered the alphabet on a scrap of paper to decode a puzzle, you've already used A1Z26.

Despite its simplicity, A1Z26 shows up everywhere — from Gravity Falls end-credit puzzles to escape rooms, geocaching mystery caches, and classroom activities. It's often the first cipher people learn and the first one puzzle designers reach for.

The Complete A1Z26 Table

Here's the full mapping from letters to numbers:

| Letter | Number | Letter | Number | Letter | Number | |--------|--------|--------|--------|--------|--------| | A | 1 | J | 10 | S | 19 | | B | 2 | K | 11 | T | 20 | | C | 3 | L | 12 | U | 21 | | D | 4 | M | 13 | V | 22 | | E | 5 | N | 14 | W | 23 | | F | 6 | O | 15 | X | 24 | | G | 7 | P | 16 | Y | 25 | | H | 8 | Q | 17 | Z | 26 | | I | 9 | R | 18 | | |

You don't need to memorize this table. Once you know A=1, you can count to any letter on your fingers. For faster decoding, it helps to memorize a few anchor points: A=1, F=6, K=11, P=16, U=21, Z=26.

How to Encode a Message with A1Z26

Encoding is straightforward — replace each letter with its number and separate the numbers so they're readable.

Let's encode the word HELLO:

H = 8
E = 5
L = 12
L = 12
O = 15

Encoded: 8-5-12-12-15

For a full sentence like MEET AT NOON:

M=13, E=5, E=5, T=20 → 13-5-5-20
A=1, T=20 → 1-20
N=14, O=15, O=15, N=14 → 14-15-15-14

Encoded: 13-5-5-20 1-20 14-15-15-14

Notice how spaces between words are preserved while dashes separate letters within a word. This is the most common convention, though not the only one.

Decoding a Number Sequence

Decoding works in reverse. Take the sequence 19-5-3-18-5-20 and convert each number back to its letter:

19 = S
5  = E
3  = C
18 = R
5  = E
20 = T

Decoded: SECRET

The trickiest part of decoding is knowing where one number ends and the next begins, which is why separators matter.

Common Separators

Without separators, the sequence 11215 could mean KLO (11-21-5), KU (11-21-5), or ABAAE (1-1-2-1-5), among other possibilities. That's why A1Z26 messages almost always use a separator:

  • Dashes are the most common: 8-5-12-12-15
  • Dots or periods work too: 8.5.12.12.15
  • Spaces between numbers with slashes between words: 8 5 12 12 15 / 23 15 18 12 4
  • Commas are sometimes used: 8,5,12,12,15

If you encounter an unseparated string of digits, try all plausible splits — and use our A1Z26 decoder to test your guesses instantly.

Variations on A1Z26

The standard A=1 mapping is the most common, but puzzle designers sometimes twist it:

Reverse (Z=1, A=26): Flip the alphabet so Z=1, Y=2, and A=26. This is essentially combining A1Z26 with the Atbash cipher.

Zero-indexed (A=0, B=1 ... Z=25): Common in programming contexts where arrays start at zero. Every number is one less than standard A1Z26.

Offset starting point (A=27, B=28...): Sometimes used to disguise the pattern. If the lowest number in a sequence is 27, subtract 26 from everything and you're back to standard A1Z26.

Mixed case with separate ranges: A-Z = 1-26 for uppercase, a-z = 27-52 for lowercase. Rarely used in puzzles but occasionally appears in CTF challenges.

Where A1Z26 Appears in the Real World

Gravity Falls: The Disney animated series famously hides coded messages in its end credits. Season 2 uses A1Z26 for several episodes, alongside Caesar shifts and Vigenere ciphers.

Escape rooms: A1Z26 is one of the most popular escape room ciphers because it's solvable without instructions. Players intuitively try numbering the alphabet when they see a string of small numbers.

Geocaching: Puzzle caches frequently encode GPS coordinates or clue words with A1Z26. It's easy enough to solve in the field with just a phone.

Puzzle books and classroom activities: A1Z26 is a go-to for kids' cryptography activities because children can practice it once they know the alphabet.

Limitations: Why A1Z26 Isn't Secure

A1Z26 offers zero real security. Anyone who recognizes a string of numbers between 1 and 26 will decode it in seconds. There's no key to guess — the mapping is universal.

It's also trivially broken by pattern analysis. If the number 5 appears more often than any other, it's almost certainly E, the most common letter in English. Single-digit numbers like 1 and 9 can only be A and I, the only single-letter English words.

This makes A1Z26 a substitution cipher in its weakest possible form — a cipher with a fixed, publicly known key.

Combining A1Z26 with Other Ciphers

A1Z26 becomes more interesting when layered with another cipher. A few common combinations:

A1Z26 + Caesar shift: First convert letters to numbers with A1Z26, then add a constant to each number (wrapping around at 26). This is equivalent to a Caesar cipher but operating on numbers instead of letters.

A1Z26 + arithmetic operations: Multiply each number by 2, or square it, or apply a mathematical formula. The Affine cipher does something similar with its ax + b mod 26 formula.

A1Z26 + transposition: Encode the message as numbers, then rearrange the numbers using a columnar transposition pattern. Now the message is both substituted and scrambled.

None of these are cryptographically secure by modern standards, but they make for excellent multi-step puzzles.

Decode A1Z26 Messages Instantly

You don't need to count on your fingers. Our free A1Z26 encoder/decoder converts letters to numbers and numbers to letters instantly. Paste in a number sequence, and the tool handles any separator format. You can also use our homepage cipher tool to identify and decode A1Z26 automatically.

Frequently Asked Questions

Why is it called A1Z26?

The name describes the mapping: A=1 and Z=26. It's a compact way of saying "each letter equals its position in the alphabet." The name became popular in puzzle and geocaching communities.

Is A1Z26 the same as a substitution cipher?

Yes — A1Z26 is a specific type of substitution cipher where each letter is replaced by its alphabetical position number. It's the simplest possible substitution because the key is always the same.

How do I decode A1Z26 without a tool?

Memorize a few anchor letters: A=1, F=6, K=11, P=16, U=21, Z=26. From any anchor, count forward or backward to reach the letter you need. With practice, you'll have the whole table memorized.

What cipher does Gravity Falls use?

Gravity Falls uses four main ciphers across its run: Caesar (shift 3), Atbash, A1Z26, and Vigenere. The A1Z26 cipher appears in several Season 2 episodes.