A1Z26 Cipher
Encode and decode the A1Z26 cipher, the simplest letter-to-number code: every letter becomes its position in the alphabet, A=1 through Z=26, and back again. Choose how the numbers are separated, decode any separator automatically, read off the full reference table, and copy, download, or share the result. Everything runs in your browser.
Separator
Enter text above to see the result here.
A1Z26 reference table
A
1
B
2
C
3
D
4
E
5
F
6
G
7
H
8
I
9
J
10
K
11
L
12
M
13
N
14
O
15
P
16
Q
17
R
18
S
19
T
20
U
21
V
22
W
23
X
24
Y
25
Z
26
How to use A1Z26 Cipher
- 1
Choose encode or decode
Pick Encode to turn letters into A1Z26 numbers, or Decode to turn numbers back into letters.
- 2
Pick a number separator
When encoding, choose whether the numbers within each word are joined by a space, a dash, or a comma. Dashes and commas let word breaks survive decoding.
- 3
Type or paste your text
Enter your message and it is converted as you type. Letters become their alphabet positions on encode, and numbers become letters on decode.
- 4
Read the reference table
Open the A=1 to Z=26 table to check any letter's number by hand, or to follow along with the conversion.
- 5
Copy, download, or share
Copy the result, download it as a text file, or share a link that reopens the tool with your exact text, direction, and separator ready to go.
Understanding the A1Z26 Cipher
What is the A1Z26 cipher?
The A1Z26 cipher is the simplest letter-to-number code there is: each letter is replaced by its position in the alphabet, so A becomes 1, B becomes 2, and so on up to Z, which becomes 26. The name itself spells out the whole rule — A is 1 and Z is 26. Because the key never changes and there is nothing to memorise beyond counting through the alphabet, it is one of the first ciphers most people ever meet.
Strictly speaking A1Z26 is an encoding rather than a secret cipher. It has no key, so anyone who recognises the pattern can read it instantly. That openness is exactly why it is so popular for puzzles, escape rooms, geocaching, and children's secret messages: the challenge is spotting that a string of numbers between 1 and 26 is really hidden text, not breaking a hard code. This tool converts in both directions as you type, so you never have to count letters on your fingers.
How the A1Z26 cipher works
Encoding could not be more direct. Walk through your message one letter at a time, find each letter's place in the alphabet, and write down that number. Letters are treated without regard to case, so an uppercase A and a lowercase a both become 1. Spaces between words are kept as word breaks, and anything that is not a letter — punctuation, digits, symbols — simply has no alphabet position, so it is left out.
The numbers within a word need something between them, otherwise 1 and 2 would run together and look like 12. That separator is your choice: a space, a hyphen, or a comma. Whichever you pick, the words themselves stay separated by a space, so the structure of the original sentence is still visible. Decoding reverses the lookup: read each number, count that far into the alphabet, and write the letter — 8 becomes H, 5 becomes E, and so on.
Choosing a separator
Within a word, A1Z26 numbers are joined by a separator so that multi-digit values stay readable. The space style writes HELLO as 8 5 12 12 15. The dash style writes it as 8-5-12-12-15, and the comma style as 8,5,12,12,15. All three decode back to the same text, so the choice is purely about how you want the message to look.
The separator also affects whether word breaks survive a round trip. When you use dashes or commas inside words, the spaces left between words clearly mark where one word ends and the next begins, so decoding can restore them. With the plain space style every number is separated by a space and there is no way to tell a number break from a word break, so the decoded text comes back as one continuous run of letters. If keeping the words matters, choose the dash or comma separator.
Decoding A1Z26 numbers
To decode, the tool scans the text for runs of digits and turns each run into the letter at that alphabet position. It is deliberately forgiving about what sits between the numbers: spaces, dashes, commas, dots, slashes, or line breaks all work, so you can paste numbers exactly as you found them in a puzzle without tidying them up first. That means 8-5-12-12-15, 8.5.12.12.15, and 8 / 5 / 12 / 12 / 15 all decode to HELLO.
If a number falls outside the valid range of 1 to 26 — say a typo left a 0 or a 27 — it cannot map to a letter, so the tool shows a question mark in its place instead of silently dropping it. That makes transcription slips easy to spot and fix. When the text contains dashes or commas, spaces are read as word breaks and the spacing of the original message is rebuilt; when it contains only spaces, every space is treated as a number separator.
A worked A1Z26 example
Take the word HELLO. H is the 8th letter, E is the 5th, L is the 12th, the second L is the 12th again, and O is the 15th. With the space separator that is 8 5 12 12 15; with dashes it is 8-5-12-12-15. To decode, you simply read the numbers back as letters: 8 to H, 5 to E, 12 to L, 12 to L, 15 to O, giving HELLO again.
Now a two-word phrase, THE KEY, with the dash separator. THE is 20-8-5 and KEY is 11-5-25, so the full message is 20-8-5 11-5-25 — the space in the middle marks the word break. Because dashes separate the numbers, decoding that string returns THE KEY with its space intact. Encode the same phrase with the space separator instead and you get 20 8 5 11 5 25, which decodes to THEKEY as a single run, since nothing distinguishes the word gap from the number gaps.
Where you will meet the A1Z26 cipher
A1Z26 turns up far more often than its simplicity might suggest. Escape rooms love it because a list of small numbers on a prop instantly reads as a hidden word once players have the idea. Geocachers use it to encode coordinates and clues, treasure-hunt and puzzle books lean on it for gentle ciphers, and capture-the-flag security challenges drop A1Z26 strings as a first, quick layer to peel back. It is also a classic classroom introduction to the idea that letters can be represented as numbers.
The cipher reached a wide audience through the animated series Gravity Falls, whose end-credit cryptograms frequently used A1Z26 alongside Caesar and Atbash ciphers, sending a generation of fans counting through the alphabet. Anywhere you find a sequence of numbers all sitting between 1 and 26, separated by spaces, dashes, or commas, A1Z26 is the first thing worth trying — paste it above and decode it in a click.
History and security of the A1Z26 cipher
Numbering the letters of the alphabet is an old and obvious idea, and A1Z26 has no single inventor; it is really just the plainest possible substitution of numbers for letters. It belongs to the same family as the Caesar shift and the Atbash cipher — simple monoalphabetic schemes where each letter maps to one fixed symbol. What sets A1Z26 apart is that it does not even shift or reverse the alphabet; it maps each letter to its natural ordinal, which is why it has no secret key at all.
Because there is no key, A1Z26 offers no real security: the moment someone recognises that a string of numbers represents letters, the message is open. It is best thought of as obfuscation or a puzzle format rather than encryption. For protecting genuinely sensitive information you should always use a modern, peer-reviewed algorithm such as AES. Keep A1Z26 for what it does best — fun, fast, hands-on puzzles, classroom demonstrations, escape rooms, and capture-the-flag warm-ups.
Frequently asked questions
What is the A1Z26 cipher?
How do you encode text with A1Z26?
How do you decode A1Z26 numbers?
What does A1Z26 stand for?
Why are some words run together when I decode?
Which separator should I use?
Is A1Z26 case sensitive?
What happens to spaces, numbers, and punctuation?
Is A1Z26 a real cipher or just an encoding?
How secure is the A1Z26 cipher?
Where is the A1Z26 cipher used?
Is my text uploaded to a server?
Related tools
Keep going with these handy tools