A1Z26 Cipher

Convert letters to their alphabet positions and back, the number cipher used in puzzle hunts and children's codes.

16Letters converted
0Numbers found
4Words
1Possible keys

Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.

What the A1Z26 Cipher does

Use this A1Z26 cipher to convert letters to their alphabet positions and back, the number cipher used in puzzle hunts and children's codes. Paste your text in, pick the options you need, and copy the result straight back out. It is most often used for setting or solving a number-cipher clue in a puzzle hunt. For a second version of this A1Z26 cipher, see FreeToolStation.org.

How to use it

  1. Paste letters to convert them to numbers, or numbers to convert them back.
  2. Tick Decode when you are going from numbers to letters.
  3. Change the separator if your puzzle uses spaces, dots or commas between numbers instead of dashes.
  4. If decoding gives nonsense, try shifting every number by one — the A=0 variant is common.

How it works

A1Z26 replaces each letter with its position in the alphabet: A is 1, M is 13, Z is 26. It is not really a cipher in the cryptographic sense, since there is no key and the mapping is the first thing anyone tries — it is a transliteration into numbers, and its appeal is that numbers look like a code even to someone who has never seen one.

Word boundaries carry the cipher. Within a word the numbers are joined by a separator, and words are separated by spaces, which is what makes the result readable at all — without that structure, 1-13 could be A-M or the single letter M preceded by nothing, and a long string of digits becomes genuinely ambiguous. That ambiguity is the one real design problem with number ciphers, and it is why the separator matters more here than in any letter-based cipher.

Digits in the input are dropped on the way in rather than passed through, because a 7 in the plaintext would be indistinguishable from the 7 that encodes a G. Punctuation within words is also stripped. Those are deliberate choices to keep the round trip reliable: encode then decode and you get your letters back, lowercased and without punctuation.

It appears constantly in puzzle hunts, treasure trails and children's codebooks, often layered with something else — a Caesar shift applied before conversion, or the numbers reversed, or offset by one so A becomes 0. If you have a number sequence that does not decode to anything sensible, try an offset of one in each direction before concluding it is not A1Z26, since the zero-indexed variant is nearly as common as this one.

When to use it

  • Setting or solving a number-cipher clue in a puzzle hunt.
  • Decoding a letters-as-numbers message from a geocache.
  • Making a simple code for a children's treasure hunt.
  • Finding the alphabet position of letters for a word game.

Common mistakes to avoid

  • Running numbers together without a separator, which makes 1-13 and 11-3 indistinguishable.
  • Forgetting the A=0 variant. If the message almost decodes, shift everything by one.
  • Expecting digits in the plaintext to survive. They are dropped, because they would be ambiguous with the cipher output.

Frequently asked questions

What is A1Z26?

A substitution of each letter for its place in the alphabet — A is 1 through to Z is 26. It is also written A=1, Z=26, and the zero-indexed variant A=0, Z=25 appears nearly as often in puzzles.

Why are separators needed?

Because the numbers have different digit lengths. Without a separator, 113 could be A-A-C, A-M, or K-C, and there is no way to tell. The separator removes the ambiguity entirely.

What if my numbers decode to gibberish?

Try adding or subtracting one from every number, since the A=0 variant is common. Also check whether the sequence has been reversed, or whether another cipher was applied before the numbering.

Related tools

See all security & privacy tools →