A1Z26 Cipher Converter

Encode and decode text using the classic A=1, B=2, C=3 through Z=26 alphabet position cipher. The most popular substitution cipher for puzzles, geocaching, and education.

A=1 · B=2 · View chart
11 characters
A = 1, B = 2, … Z = 26Client-side · no upload

What is the A1Z26 Cipher?

The A1Z26 cipher is one of the simplest and most recognizable substitution cipher systems in existence. Its name encodes its own rule: A equals 1, Z equals 26. Every letter of the English alphabet is replaced by its ordinal position number. B becomes 2, C becomes 3, D becomes 4, and the pattern continues all the way through the alphabet.

Despite its simplicity, A1Z26 remains remarkably popular across a wide range of applications. Geocaching enthusiasts encounter it regularly in puzzle caches where coordinates or hints are encoded as number sequences. Escape room designers use it as a beginner-friendly cipher step that players can solve without specialized knowledge. Teachers integrate it into classroom activities to make spelling and arithmetic practice more engaging for young students.

The A1Z26 cipher gained significant pop culture recognition through the animated television series Gravity Falls, which used it to encode secret messages in the end credits of Season 1 episodes. Fans would decode these messages frame by frame, sparking widespread interest in simple substitution ciphers among younger audiences. The show later switched to more complex ciphers like Caesar, Atbash, and the Vigenere system for subsequent seasons.

From a cryptographic perspective, A1Z26 offers zero security since the encoding scheme is universally known and contains no secret key. It is properly classified as an encoding rather than encryption. However, its transparency is precisely what makes it useful as a pedagogical tool and a building block for understanding more complex cipher systems.

How the A1Z26 Cipher Works

The A1Z26 encoding and decoding process is mathematically trivial, which is exactly why it is so accessible:

  1. Encoding (letters to numbers): Take each letter of your message and find its position in the alphabet. A is position 1, B is position 2, and so on. The word HELLO becomes 8-5-12-12-15. Separate each number with your chosen delimiter (space, comma, or hyphen).
  2. Decoding (numbers to letters): Take each number in the sequence and look up which letter occupies that position. The number 8 maps to H (the 8th letter), 5 maps to E, 12 maps to L, and 15 maps to O.
  3. Non-alphabetic handling: Characters that are not letters (spaces, digits, punctuation) have no standard A1Z26 mapping. The most common convention is to preserve word boundaries with a special separator like a forward slash or double space.

The mathematical formula for encoding is straightforward: for any uppercase letter with ASCII code C, the A1Z26 value equals C minus 64. For lowercase letters, it equals C minus 96. Decoding reverses this: add 64 to get the uppercase ASCII code, then convert to a character.

Worked Examples You Can Reproduce

Every result below comes straight from the converter above with the A1Z26 method selected — type the input and you will get the exact output shown. They cover the three cases that trip people up: a normal word, the edges of the range, a multi-word phrase, and an input the tool refuses rather than guessing.

ModeInputOutputWhy it matters
EncodeHELLO8-5-12-12-15Typical word; each letter → its position.
EncodeAZ1-26Boundary: A is the lowest code (1), Z the highest (26).
EncodeHI THERE8-9 / 20-8-5-18-5A space becomes a slash ( / ) so word boundaries survive.
Decode8-5-12-12-15HELLORound-trips back to the original word.
EncodeHELLO!RejectedThe ! has no A1Z26 value, so the tool reports an error instead of silently dropping it.

Want more practice cases to work through by hand first? Print the free alphabet cipher worksheet or keep the A=1 to Z=26 chart beside you while you decode.

What This Converter Accepts — and What It Rejects

This tool deliberately validates input rather than scraping whatever it can. That means a clean result you can trust, and a clear message when something is off — never a wrong letter pulled out of a bad input. Here is exactly where the line is drawn for the A1Z26 method:

  • Encoding accepts A–Z and whitespace only. Case is ignored (a and A both give 1). Multiple words are fine — each space becomes a slash separator. Digits, punctuation, and accented or non-English letters are not accepted: the tool answers “This format accepts A–Z and whitespace only. Remove digits, punctuation and non-English letters, or choose UTF-8 binary.”
  • Decoding accepts whole numbers 1 through 26, separated by spaces, commas, or hyphens, with a slash ( / ) marking a word break. A number outside that range is refused — decoding 27 returns “Word 1: value 27 is outside 1–26. Check the selected format.”, and 0 is refused the same way.
  • It will not guess run-together numbers. An unseparated string like 1215 is ambiguous, so it is rejected rather than interpreted (see the common mistake below).

If you actually need to encode digits, punctuation, or symbols, that is outside A1Z26 by definition — a byte-level scheme such as ASCII or binary is the right tool, and the linked comparison shows when to reach for each.

A Common Mistake: Running the Numbers Together

The single most common A1Z26 error is writing an encoded message with no separators — for example 1215 for the word LO. It looks compact, but it is genuinely ambiguous: 1215 could mean 12-15 (LO), or 1-2-1-5 (ABAE), or 12-1-5 (LAE), among others. There is no way to recover the intended split from the digits alone.

Because of that, this decoder refuses to guess. Enter 1215 in decode mode and you get “Word 1: “1215” is not a single valid code. Use separators between numbers; unseparated strings are not guessed.” The fix is simple: always put a space, comma, or hyphen between each number when you encode — write 12-15, not 1215. When you encode with the tool above, it does this for you automatically, which is the safest way to produce a message someone else can decode without ambiguity.

For the full background on why separators matter and how A1Z26 compares to other simple ciphers, see the complete A1Z26 cipher guide.

Common Use Cases

  • Geocaching puzzle caches: Cache owners encode GPS coordinates, hints, or lock combinations as A1Z26 number sequences. The challenge is identifying which cipher was used, then decoding to find the cache location. The sequence 19-15-21-20-8 decodes to SOUTH, possibly indicating a compass direction to the final waypoint.
  • Escape rooms and scavenger hunts: A1Z26 frequently appears as an early puzzle in escape room chains. A number grid on a wall might decode to a word that unlocks the next clue. Its simplicity ensures all team members can contribute to the solution.
  • Educational math and literacy activities: Teachers assign encoding and decoding exercises to help students practice alphabetical ordering and basic arithmetic. Students calculate word values by summing the position numbers of each letter, combining math and spelling practice.
  • Secret messages and games: Children and hobbyists use A1Z26 to write coded notes to friends. While easy to crack, the act of encoding and decoding makes communication feel more exciting and personal. Birthday party invitations, holiday cards, and journal entries are popular uses.

A1Z26 Alphabet Reference Chart

LetterNumberLetterNumber
A1N14
B2O15
C3P16
D4Q17
E5R18
F6S19
G7T20
H8U21
I9V22
J10W23
K11X24
L12Y25
M13Z26

Frequently Asked Questions

A1Z26 is a substitution cipher where each letter of the English alphabet is replaced by its ordinal position number. A becomes 1, B becomes 2, continuing sequentially through Z which becomes 26. It is one of the simplest and most widely recognized cipher systems.
Type your text with A1Z26 selected as the method. Each letter becomes its position number, so HELLO becomes 8-5-12-12-15. A1Z26 maps only the 26 English letters; spaces separate words (shown with /), and digits, punctuation or non-English letters are reported as invalid input rather than silently dropped.