Introduction
Stuck on a string of numbers that should spell something? The A=1, B=2 system maps 1 to A, 2 to B, 26 to Z. It is the encoding behind most escape room number puzzles, geocache coordinates, and classroom cryptography exercises. This tool decodes your numbers back to letters using three systems at once: alphabetical positions, ASCII decimal codes, and ITU-T E.161 phone keypad possibilities. Paste your numbers below and the decoded text appears instantly. Any separator works: hyphens, spaces, commas, periods. Nothing leaves your browser.
What this tool does
- Decodes A=1 B=2 number sequences into letters (1=A, 2=B, through 26=Z) with uppercase or lowercase output.
- Interprets numbers as ASCII decimal codes (0-127) to recover text that was encoded using character code points.
- Shows possible letter combinations for phone keypad digits per ITU-T E.161, since each digit maps to 3 or 4 letters.
- Accepts any non-digit separator: hyphens, spaces, commas, periods, or mixed punctuation.
- Handles numbers outside the 1-26 range by falling back to ASCII interpretation when the value is a printable code point.
How this tool works
The tool splits your input on any non-digit character, so hyphens, spaces, commas, and periods all work as separators without configuration. Each token is parsed as an integer and run through three independent decoders.
For A=1 B=2 decoding, numbers 1 through 26 map to the corresponding letter. The number 1 becomes A (or a in lowercase mode), 13 becomes M, 26 becomes Z. The number 0 is treated as a space when the original encoding used 0 for spaces. Numbers above 26 that fall in the printable ASCII range (32-126) are interpreted as ASCII codes as a fallback, so mixed encodings still produce readable output.
For ASCII decoding, each number is converted to its character using `String.fromCharCode`. Codes 32 through 126 cover the standard printable ASCII set. Codes outside that range produce a placeholder.
For phone keypad decoding, each digit 2 through 9 maps to its group of possible letters per ITU-T E.161. The digit 2 could be A, B, or C. The digit 7 could be P, Q, R, or S. The tool shows all possibilities in brackets like [ABC] because phone keypad encoding is ambiguous: you cannot know which letter was intended without additional context.
The A=1 B=2 result is highlighted as the best match because it is the most common encoding for number puzzles. Use the copy button to grab whichever result matches your puzzle.
How the cipher or encoding works
The A=1 B=2 system, also called A1Z26 in puzzle communities, is a positional mapping where each letter's number equals its position in the Latin alphabet. The system is not a cipher in the cryptographic sense because the mapping is fixed and publicly known. Its value is recreational and educational. Escape room designers use it because the encoding is simple enough for participants to decode by hand if they have an alphabet chart, but obscure enough to slow them down.
Phone keypad decoding follows ITU-T E.161, the standard that defines letter-to-digit mapping on telephone keypads. The standard was first published in 1988, with the current version dated February 2001. The digit 2 covers ABC, 3 covers DEF, 4 covers GHI, 5 covers JKL, 6 covers MNO, 7 covers PQRS, 8 covers TUV, and 9 covers WXYZ. The digits 1 and 0 have no letters. Decoding phone keypad numbers is inherently ambiguous because three or four letters share each digit. A number like 4-6-6-3 could spell HOME, GOOD, GONE, HONE, or dozens of other combinations. The tool shows the possible letters for each digit so you can narrow down the answer using context.
ASCII decoding uses the American Standard Code for Information Interchange, defined by ANSI X3.4-1986 and now maintained as ISO/IEC 646. ASCII assigns decimal codes 0 through 127 to characters. Uppercase letters occupy 65 through 90, lowercase letters 97 through 122, digits 48 through 57. The space character is code 32. ASCII encoding is lossless: every number maps to exactly one character, and every character maps to exactly one number.
For encoding text in the other direction, use the letters to numbers tool. For a combined tool that handles both directions in tabs, see text to number.
How to use this tool
- Paste your number sequence into the input field. Hyphens, spaces, commas, periods, or any mix of non-digit characters will work as separators.
- Choose uppercase or lowercase output from the dropdown.
- Review the three decoding results. The A=1 B=2 result is highlighted as the best match for most puzzles.
- Check the phone keypad result if your numbers are single digits between 2 and 9. Each digit shows its possible letters in brackets.
- Click the copy icon next to the result that matches your puzzle. Paste it wherever you need the decoded text.
Real-world examples
Escape room code lock
Your escape room team finds a note reading "3-9-16-8-5-18" next to a four-digit lock. You paste the numbers into the tool. The A=1 B=2 decoder outputs "CIPHER". The phone keypad decoder shows [DEF] [WXYZ] [PQRS] [GHI] [JKL] [PQRS], confirming the digits do not map cleanly to a phone word. You try CIPHER on the lock and it opens.
Geocache multi-cache stage
A geocache page gives coordinates encoded as "8-5-12-12-15 23-15-18-12-4" and says "decode to find the next waypoint name." You paste the numbers and the A=1 B=2 result reads "HELLO WORLD". The ASCII decoder produces garbage because 8-5-12-12-15 are control characters in ASCII, confirming that A=1 B=2 is the correct interpretation.
CTF challenge with ASCII-encoded flag
A CTF challenge gives you the number string "70-76-65-71-123-83-48-76-86-51-100-125" and says the flag format is FLAG{...}. You paste it in. The ASCII decoder outputs "FLAG{S0LV3d}" because all numbers are in the printable ASCII range (70=F, 76=L, 65=A, 71=G, 123={, and so on). The A=1 B=2 decoder produces garbage because numbers like 70 and 123 are outside the 1-26 letter range, confirming ASCII is the correct interpretation.
Comparison with similar methods
| Method | Complexity | Typical use |
|---|---|---|
| A=1, B=2 (A1Z26) decode | O(n) lookup, unambiguous | Escape rooms, geocaches, puzzle hunts |
| ASCII decimal decode | O(n) code point, unambiguous | CTF challenges, programming exercises |
| Phone keypad decode | O(n) lookup, ambiguous | Vanity number reverse lookup, telecom puzzles |
Limitations or considerations
A=1 B=2 decoding only works for numbers 1 through 26. Numbers outside that range are interpreted as ASCII codes when they fall in the printable range (32-126), which may produce unexpected characters if the original encoding was something else. Phone keypad decoding is inherently ambiguous: the digit 2 could be A, B, or C, so the tool shows all possibilities rather than guessing. The tool does not attempt to brute-force phone keypad combinations because a 7-digit number has up to 2187 possible letter strings. For encoding text to numbers, use the letters to numbers tool.
Frequently asked questions
How do I convert numbers to letters in A=1, B=2 format?
Split your numbers on any separator, then map each number to its letter: 1=A, 2=B, 3=C, through 26=Z. This tool does it automatically. Paste your numbers with any separator (hyphens, spaces, commas) and the decoded text appears in the A=1 B=2 result panel.
What is the number alphabet decoder for phone keypads?
Phone keypad decoding reverses the ITU-T E.161 mapping. Each digit 2-9 maps to 3 or 4 possible letters. The digit 2 could be A, B, or C. The digit 7 could be P, Q, R, or S. Because multiple letters share each digit, the tool shows all possibilities in brackets rather than picking one. You need context from the puzzle to choose the correct letter.
Can I use this as a name to number converter?
Yes. Type a name into the letters to numbers tool to get its A=1 B=2 number sequence. To reverse the process, paste the numbers here. For example, "JANE" encodes to 10-1-14-5, and decoding 10-1-14-5 gives back JANE.
What separators does the tool accept?
Any non-digit character works as a separator: hyphens, spaces, commas, periods, semicolons, pipes, or newlines. You can mix them. The tool splits on anything that is not a digit, so "8-5 12,15" works the same as "8 5 12 15".
Why does my number decode to garbage?
If the A=1 B=2 result looks wrong, your numbers may be ASCII codes instead. Check the ASCII decode panel. ASCII uses codes 65-90 for uppercase letters and 97-122 for lowercase, so numbers in that range are ASCII, not A=1 B=2. Numbers between 1 and 26 work in both systems, but the results differ for larger values.
Conclusion
Numbers to letters decoding is the reverse step for A=1 B=2 puzzles, ASCII challenges, and phone keypad reverse lookups. The tool tries all three systems so you do not need to guess which one applies. For encoding in the other direction, use the letters to numbers tool.