T

Text Machine

Powerful text tools, in your browser

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.

Number separator

Separator

Plain text
Numbers

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. 1

    Choose encode or decode

    Pick Encode to turn letters into A1Z26 numbers, or Decode to turn numbers back into letters.

  2. 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. 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. 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. 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?
The A1Z26 cipher replaces each letter with its position in the alphabet: A is 1, B is 2, and so on up to Z, which is 26. The name spells out the rule — A equals 1 and Z equals 26. It has no key and needs nothing beyond the alphabet itself, which makes it one of the simplest and most popular codes for puzzles, escape rooms, and secret messages.
How do you encode text with A1Z26?
Go through your message one letter at a time and write down each letter's number in the alphabet. H is 8, E is 5, L is 12, O is 15, so HELLO becomes 8 5 12 12 15. Letters are handled without regard to case, and anything that is not a letter is left out because it has no alphabet position. The numbers within a word are joined by your chosen separator.
How do you decode A1Z26 numbers?
Read each number and count that far into the alphabet to get the letter: 8 is H, 5 is E, 12 is L, 15 is O, so 8 5 12 12 15 decodes to HELLO. This tool does it instantly and accepts any separator — spaces, dashes, commas, dots, or slashes — so you can paste numbers straight from a puzzle. Just choose Decode and the letters appear as you type.
What does A1Z26 stand for?
A1Z26 is shorthand for the cipher's own rule: the letter A maps to the number 1 and the letter Z maps to the number 26, with every letter in between taking its natural position. The name is the key, which is part of why the cipher is so easy to remember and use — there is nothing else to look up.
Why are some words run together when I decode?
It depends on the separator. With dashes or commas between the numbers, the spaces clearly mark word breaks, so decoding restores them. With the plain space separator every number is separated by a space and there is no way to tell a word break from a number break, so the text comes back as one continuous run. Encode with dashes or commas if you need the words preserved.
Which separator should I use?
All three decode to the same letters, so it is mostly about appearance. Spaces give 8 5 12 12 15, dashes give 8-5-12-12-15, and commas give 8,5,12,12,15. Choose dashes or commas if you want word breaks to survive decoding, since the spaces between words then unambiguously mark where one word ends and the next begins.
Is A1Z26 case sensitive?
No. Uppercase and lowercase letters share the same alphabet position, so A and a both become 1, and Z and z both become 26. Case information is not part of the cipher and is not preserved, which is normal for A1Z26 and most classical ciphers. The decoded output is shown in uppercase.
What happens to spaces, numbers, and punctuation?
On encoding, only letters have alphabet positions, so spaces are kept as word breaks while punctuation, digits, and symbols are dropped. On decoding, any character that is not a digit acts as a separator, and a number outside the range 1 to 26 — such as 0 or 27 — is shown as a question mark so you can spot a typo and fix it.
Is A1Z26 a real cipher or just an encoding?
Technically it is an encoding rather than a secret cipher, because it has no key — anyone who recognises the pattern can read it. It is usually called a cipher out of tradition and because it is used like one in puzzles. Think of it as obfuscation: it hides a message in plain sight rather than protecting it against someone determined to break it.
How secure is the A1Z26 cipher?
Not secure at all. Because there is no key and the mapping is fixed and public, the message is readable the moment someone realises the numbers stand for letters. A1Z26 is meant for fun and learning, not for protecting sensitive data. For real security, always use a modern, peer-reviewed algorithm such as AES, and keep A1Z26 for puzzles, classrooms, and games.
Where is the A1Z26 cipher used?
It appears in escape rooms, geocaching clues, puzzle and treasure-hunt books, classroom cryptography lessons, and capture-the-flag security challenges as a quick first layer. It also became widely known through the animated series Gravity Falls, whose end-credit puzzles used A1Z26 alongside Caesar and Atbash ciphers. Any sequence of numbers between 1 and 26 is worth trying as A1Z26.
Is my text uploaded to a server?
No. All encoding and decoding happens entirely in your browser, so your text is never uploaded, logged, or stored. Even a share link keeps your text, direction, and separator in the part of the URL after the hash, which browsers never send to a server, so your message stays private until you choose to share the link.

Related tools

Keep going with these handy tools

Caesar Cipher

Vigenère Cipher

Atbash Cipher

Rail Fence Cipher

Playfair Cipher

Affine Cipher