Letters to numbers converter (A1Z26 cipher)
Turn each letter into its place in the alphabet, from A=1 to Z=26, or decode a string of numbers back into words.
Words are separated by “ / ” in the result, and accented letters count as their base letter, so é is 5. Digits and punctuation stay as they are. It all runs in your browser: your text is never uploaded.
Example input and result
Hello world
Result
8 5 12 12 15 / 23 15 18 12 4
How the letters to numbers converter works
Type or paste your text and each letter turns into its position in the alphabet: A is 1, B is 2, and so on up to Z at 26. This is the A1Z26 cipher, one of the simplest codes there is. With the default settings, “Hello world” comes out as “8 5 12 12 15 / 23 15 18 12 4”.
Capital and small letters give the same number, and accented letters count as their base letter, so “é” is 5, the same as “e”. Digits, punctuation, and other characters pass through unchanged, so a date or a question mark stays where it was. Each word is separated from the next by “ / ”, which keeps the code easy to read when you decode it later.
Numbers to letters: decode an A1Z26 message
Switch the direction to “Numbers → letters” and paste the code. Separate the numbers with the separator you pick in the options, a space, a dash, or a comma, and mark each new word with “/” or a line break. “8 9 / 20 8 5 18 5” decodes to “hi there”.
Choose uppercase or lowercase for the letters you get back. If a number has no letter, the converter shows an error that names it, so with the English alphabet “27” gets flagged instead of guessed. That usually means a typo, a code that starts at A=0, or a message written with the Spanish alphabet.
English or Spanish alphabet, A=1 or A=0
The English alphabet has 26 letters. The Spanish one has 27, because Ñ sits right after N as letter 15, which moves every letter after it up by one: O is 16 and Z is 27. This page starts on the English alphabet. If a puzzle comes from a Spanish book or game, switch to Spanish, or every letter from O onward will be off by one.
Some puzzles count from zero, so A is 0, B is 1, and Z is 25. Pick “A=0” when the numbers you have include a 0, or when the puzzle says so. Here is “sol” in three settings:
- English, starting at A=1: 19 15 12
- English, starting at A=0: 18 14 11
- Spanish, starting at A=1: 20 16 12
Letter sums, puzzles, and secret codes
Under the result, the sum adds up the value of every letter. “Hello world” adds up to 124. Word value games and some puzzle hunts ask for exactly that total, so you can test several answers quickly without adding by hand.
The A1Z26 code turns up in escape rooms, geocaching caches, and puzzle hunts, and it makes a good first cipher for kids writing secret notes or for a classroom activity on codes. Everything runs in your browser and your text is never uploaded. The box takes up to 500,000 characters, and “Copy result” and “Download TXT” save what you get.
Frequently asked questions
What is the A1Z26 cipher?
It's a code that swaps each letter for its position in the alphabet: A is 1, B is 2, and Z is 26. The name spells out the rule, A1 to Z26. It's easy to learn and easy to crack, which makes it popular in puzzles, escape rooms, and kids' secret messages.
How do I convert numbers back to letters?
Choose “Numbers → letters” as the direction and paste your numbers, separated by the space, dash, or comma you pick in the options. Use “/” or a line break between words, and choose uppercase or lowercase for the result. If a number is out of range, the error names it so you can fix it.
Why does 27 give an error?
The English alphabet has only 26 letters, so 27 has no letter to match. If the code was made with the Spanish alphabet, which adds Ñ and runs to 27, switch the alphabet to Spanish. With A=0, the highest number is 25 in English and 26 in Spanish.
What happens to accents, digits, and punctuation?
Accented letters count as their base letter, so “á” is 1 and “é” is 5. Digits and punctuation pass through unchanged when you convert letters to numbers, so “Room 7” keeps its 7. Keep that in mind if you decode the result later, because a digit left in the code reads as a letter.
What is the letter sum for?
The sum adds the value of every letter in your text, so “Hello world” totals 124 with A=1. Puzzle hunts and word value games use these totals, for example to find a word worth exactly 100. Change the alphabet or the starting number and the sum changes with it.