Text Toolbox
All posts

How to Convert Letters to Numbers (A=1, B=2) Online (2026)

By Text Toolbox Team · ·

You can convert letters to numbers using the A1Z26 cipher (A=1, B=2, C=3) instantly with our free Letter to Number Converter. Each letter in the alphabet gets a numeric index, letting you encode messages, solve puzzles, or create numeric representations of any text with customizable separators and base offsets.

What Is the A1Z26 Cipher

The A1Z26 cipher is a simple substitution cipher that maps each letter of the alphabet to its position number — A becomes 1, B becomes 2, all the way to Z which becomes 26. It is one of the oldest and simplest codes, often used in escape rooms, puzzle hunts, classroom activities, and secret messages between kids. The name “A1Z26” comes from the first and last letter mappings: A=1 and Z=26. Unlike more complex ciphers like Caesar or ROT13, A1Z26 is not really encryption since the mapping is public and predictable — it is better described as an encoding scheme. You can customize the output with different separators (space, comma, dash) and toggle between 1-based (A=1) and 0-based (A=0) offsets.

How to Use Our Letter to Number Converter

  1. Open the Letter to Number Converter and type or paste your text into the input field.
  2. Choose a separator to place between each number — space, comma, dash, or a custom separator.
  3. Toggle the offset preference between 1-based (A=1, B=2) and 0-based (A=0, B=1).
  4. Copy the resulting numeric output from the result area.

Example Letter to Number Conversions

Input TextSeparatorOffsetOutput
ABCSpaceA=1 (1-based)1 2 3
helloCommaA=1 (1-based)8,5,12,12,15
HELLODashA=1 (1-based)8-5-12-12-15
CodeSpaceA=0 (0-based)2 14 3 4
XYZCustom ”:“A=1 (1-based)24:25:26

Common Use Cases

  • Puzzles and escape rooms — hide clues as numeric codes that players must decode.
  • Secret messages — kids and friends exchange encoded notes that are easy to decode with the key.
  • Educational activities — teach number-letter associations and basic cryptography concepts.
  • Data processing — convert alphabetical data to numeric format for analysis or algorithms.
  • Creative writing — encode character names or locations as numbers for world-building.

FAQ

Does this handle non-English letters?

The converter maps standard A-Z English characters. Non-English characters like accented letters (é, ñ, ü) are either ignored or output directly based on your settings. The cipher is designed for the 26-letter English alphabet.

Is the A1Z26 cipher case-sensitive?

No. A1Z26 alphabet mapping assigns the same number to uppercase and lowercase letters — “A” and “a” are both 1, “Z” and “z” are both 26. The case of the input letter does not affect the numeric output.

What is the difference between 1-based and 0-based offset?

1-based offset follows the standard A=1, B=2, C=3 pattern where A starts at 1. 0-based offset starts at A=0, giving B=1, C=2, and so on. Use 1-based for traditional A1Z26 encoding and 0-based for programming contexts where index counting starts at zero.

Can I decode numbers back into letters?

Yes. The same Letter to Number Converter works in reverse — paste numbers separated by your chosen delimiter and the tool will convert them back into letters.

Is the letter to number converter free?

Yes. It is completely free with no signup required. All processing runs in your browser.


Try our free Letter to Number Converter to encode text as numbers and back.

Related Articles