What Is the A1Z26 Code?
A1Z26 is the simplest letter-to-number code in existence: each letter of the alphabet is replaced by its position in the alphabet, with A = 1, B = 2, and so on up to Z = 26. The name spells out the rule — "A to Z, 1 to 26." It is not a cipher in the modern sense of the word; it has no key and no secrecy, because the mapping is completely public and every letter keeps its identity. What it is, instead, is a compact and durable notation that has been used to hide messages in plain sight for centuries.
Its strength is versatility. Numbers are easier to write in some contexts than letters — chiseled into stone, tapped out on a surface, typed on a numeric keypad — and they can be disguised as dates, coordinates, or other innocuous values. That is why A1Z26 (and its close relative, the Polybius square) shows up so often in puzzles, escape rooms, geocaching clues, and children's secret-code books: it is easy to explain, easy to apply by hand, and easy to recognize once you know the trick.
How A1Z26 Works
Encoding is a simple lookup: A = 1, B = 2, C = 3, and so on through Z = 26. Decoding reverses the
lookup: 1 = A, 2 = B, and so on. This tool follows a formatting convention shared with the Morse
translator: numbers within a word are separated by single spaces, and words are separated by a slash
with spaces (/):
| Direction | Rule | Example |
|---|---|---|
| Encode | Each letter → its alphabet position | HELLO → 8 5 12 12 15 |
| Decode | Each number 1–26 → its letter | 8 5 12 12 15 → HELLO |
Because there is only one code per letter and one letter per code, A1Z26 is unambiguous in both
directions — a rare convenience among simple codes. The decoder is also forgiving about formatting: it
accepts spaces, dashes, or commas between numbers, and treats / (with or without
surrounding spaces) as a word boundary.
Step-by-Step Example
Encode "HELLO WORLD". Count each letter's position in the alphabet:
| Plain | H | E | L | L | O | W | O | R | L | D |
|---|---|---|---|---|---|---|---|---|---|---|
| Number | 8 | 5 | 12 | 12 | 15 | 23 | 15 | 18 | 12 | 4 |
H is the 8th letter of the alphabet, E the 5th, L the 12th, O the 15th, and so on. Joining the two words with the slash separator gives 8 5 12 12 15 / 23 15 18 12 4 — exactly what the tool produces. Paste those numbers into the Numbers box and the phrase HELLO WORLD reappears on the left.
The A1Z26 Alphabet Table
| Letter | # | Letter | # | Letter | # |
|---|---|---|---|---|---|
| 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 |
The pattern is easy to internalize: A–I are 1–9, J–R are 10–18, and S–Z are 19–26. Once you know those three bands, you can encode and decode A1Z26 entirely in your head.
Where You'll Meet A1Z26
A1Z26 is everywhere in the puzzling world. Geocaching coordinates and hint pages frequently hide text as A1Z26 numbers. Escape rooms use it in everything from chalkboard messages to the clues on a combination lock. Children's code books have taught it for generations, and it is the first code many people ever learn — before they even hear the word "cipher." It also sits at the foundation of historical book ciphers: the Beale cipher, one of the most famous unsolved codes in American history, encodes words by the number of their position in a book, and A1Z26 is the same idea applied to the alphabet. Understanding A1Z26 makes all of those systems click.
Related Codes
Two relatives are worth knowing so you can tell them apart. The Polybius square arranges the alphabet in a 5×5 grid and encodes each letter as its row-and-column pair (two digits), which was designed for signaling over noisy channels. Bacon's cipher encodes each letter as a five-bit pattern of two symbols (historically A and B), trading compactness for steganography — the ability to hide a message inside innocuous text. A1Z26 is the simplest of the three, and the one most people meet first.
Troubleshooting & Common Mistakes
My numbers fail to decode
Every value must be a whole number from 1 to 26. A 0, a 27, a decimal like 5.5, or stray text will produce an explicit error naming the offending token. The decoder does accept spaces, dashes, and commas as separators, so check that your values themselves are in range.
My decoded text is missing characters
Encoding skips anything that is not a Latin letter — digits, punctuation, emoji, accented letters. Word boundaries survive via the slash separator, but within a word, only letters become numbers. If you encoded "Hello, World!" the comma simply vanishes.
Do I need to type leading zeros?
No. "08" and "8" both decode to H, and the encoder always writes the plain number without padding. Zero-padded input is accepted so that codes pasted from other tools work without cleanup.
How This Cipher Compares to Other Classical Ciphers
A1Z26 is one of several classical ciphers covered on this site, though technically it is an encoding rather than a cipher — it has no key and offers no real secrecy. The table below shows how it differs from every genuine cipher here.
| Cipher | Mechanism | What Makes It Different |
|---|---|---|
| Caesar Cipher | Substitution | Shifts every letter by one fixed number (the key) through the alphabet — the simplest classical substitution cipher. |
| Atbash Cipher | Substitution (fixed) | A special case of substitution with no key at all — it always mirrors the alphabet (A↔Z, B↔Y, ...). |
| Vigenère Cipher | Polyalphabetic substitution | Repeats a keyword to shift each letter by a different amount, defeating simple frequency analysis that breaks Caesar. |
| Beaufort Cipher | Polyalphabetic substitution (reciprocal) | A variant of Vigenère's idea that is self-reciprocal — the same operation both encrypts and decrypts. |
| Playfair Cipher | Digraph substitution | Encrypts letters two at a time using their positions in a 5×5 key square — the first practical digraph cipher (1854). |
| Affine Cipher | Mathematical substitution | Encrypts using a linear function (ax + b mod 26) with two keys instead of one shift value. |
| ROT47 | Substitution (extended range) | Applies a Caesar-style shift across the full printable ASCII range, not just letters — used to obfuscate text online (e.g. spoilers), not for security. |
| Rail Fence Cipher | Transposition | Rearranges letter order in a zigzag pattern instead of substituting letters — a fundamentally different technique from every cipher above. |
| A1Z26 (this page) | Encoding (not a cipher) | Simply maps each letter to its position number (A=1...Z=26) — a puzzle/encoding convention, not intended for real secrecy. |
| NATO Phonetic Alphabet | Encoding (not a cipher) | Replaces each letter with a spoken code word (Alfa, Bravo, Charlie…) for reliable voice transmission on noisy radios — built for clarity, not secrecy. |