Number code generator: turn letters into numbers (A1Z26)

Secret file
Mode
0 / 500 characters
Choose a secret code
Settings

This code has no settings.

Top secret

Your encrypted secret message

Type a message above and it will appear here in code.

Send via WhatsApp

Preview of the A4 print sheet with key

✂ This is your A4 sheet. The cut line separates message and key.

How the number code works: A = 1, B = 2, C = 3

The number code is the simplest secret code of all: every letter gets its position in the alphabet. HELLO becomes 8-5-12-12-15. A slash separates words so you know where a new word starts when decoding.

Letters to numbers chart: the A1Z26 cipher

The number code is also known as the A1Z26 cipher, the alphabet number code or simply “letters to numbers”. Each letter is replaced by its place in the alphabet, and to decode you do the reverse: number 1 is A, number 26 is Z. Here is the complete chart to look up or print:

Letters to numbers chart: A1Z26 cipher from A = 1 to Z = 26
The A1Z26 chart: every letter with its number. Also printed as the key under each generated sheet.

A = 1 · B = 2 · C = 3 · D = 4 · E = 5 · F = 6 · G = 7 · H = 8 · I = 9 · J = 10 · K = 11 · L = 12 · M = 13 · N = 14 · O = 15 · P = 16 · Q = 17 · R = 18 · S = 19 · T = 20 · U = 21 · V = 22 · W = 23 · X = 24 · Y = 25 · Z = 26

To turn numbers back into letters, paste them into the decoder or read them off the chart above. Tip for decoding by hand: numbers above 13 belong to the second half of the alphabet, so N = 14 is a good landmark.

Number code with offset and separator

The offset shifts the number row: with offset 4, A is not 1 but 5. The key becomes harder to guess because 1 no longer automatically means A. As the separator between numbers you can pick dash, dot or space.

Umlauts, ß and digits in the number code

To keep the key at 26 numbers, German umlauts are written as on an English keyboard: Ä = AE, Ö = OE, Ü = UE, ß = SS. Real digits in your message – a house number, say – appear in square brackets like [3] so they can be told apart from code numbers. Punctuation stays as it is.

What the number code is good for

For early readers who can already count to 26. For maths practice: the offset turns decoding into a subtraction exercise. And for combination locks: whoever cracks “OPEN 4-1-19” knows the combination. A blank key sheet for handwriting is under Templates.

Number code example step by step

Take the word SECRET. S is the 19th letter of the alphabet, E the 5th, C the 3rd, R the 18th and T the 20th. That gives 19-5-3-18-5-20. With offset 4 you add 4 to every number and get 23-9-7-22-9-24. Decoding works the other way round: subtract the offset first, then look the number up in the table.

Notice that 5 appears twice? That is the E, the most common letter in English. Repeats like this give a number code away when someone tries to crack it without the key. It makes a nice exercise for older children: which number turns up most often in a longer message?

Classroom variant: sums instead of numbers

Instead of the finished number you can write a small sum, such as 3+4 for G or 10−5 for E. Only someone who calculates correctly can read the message. The secret letter turns into a worksheet that children happily finish to the end.

FAQ

Frequently asked questions: Number code

How are umlauts written in the number code?

As AE, OE, UE and SS – like on a keyboard without umlauts. The key stays at 26 numbers.

What does the offset do?

With offset 4, A is not 1 but 5, B is 6 and so on. The key becomes harder to guess.

How are real digits in the message shown?

In square brackets, for example [3], so they can be told apart from code numbers when decoding.

How do I decode a number code?

Look up each number in the chart: 1 is A, 2 is B and so on up to 26 for Z. A slash marks the start of a new word. Or paste the numbers into the decoder and switch to “Decode”.