Number to Letter

Number to Letter › Number to letter binary

Number to letter binary

Result

Tap any lamp in the visual to flip that bit.

Bit lamps3 bytes

To convert binary to letters, split the bits into groups of 8, turn each group into a number, and read that number as an ASCII character. 01000001 is 65, which is "A"; 01100001 is 97, which is "a." For puzzle codes that use the alphabet position instead, 5 bits are enough: 00001 = A (1) and 11010 = Z (26).

The converter reads and writes both 8-bit ASCII and 5-bit A1Z26 binary. Each character gets a row of lamps with the place values 128, 64, 32, 16, 8, 4, 2, and 1 above them; tap a lamp to flip that bit and watch the letter change.

How number to letter binary calculator works?

To turn binary into letters, the number to letter binary calculator reads each group of bits as a number and looks up its character. The calculator splits the binary into 8-bit bytes (or 5-bit groups for A1Z26), converts each group to decimal with place values 128 to 1, and maps the decimal to its ASCII character. 01001000 01101001 becomes Hi.

  1. Split into groups

    Spaces separate groups. Unbroken bits are cut every 8 (or 5) bits.

    01001000 | 01101001
  2. Add place values

    Each 1 adds its place value: 128, 64, 32, 16, 8, 4, 2, 1.

    64 + 8 = 72
  3. Look up the character

    The decimal code is read from the ASCII table (or A1Z26 in 5-bit mode).

    72 → H
  4. Show the lamps

    Each bit is a lamp. Tap a lamp to flip the bit and watch the letter change.

    01101001 → 105 → i

ASCII covers codes 0–127. Unicode, maintained by the Unicode Consortium, keeps the same 128 codes for its first block, so UTF-8 text uses the same bytes for A–Z.

Number to letter binary formula

The number to letter binary formula is a sum of powers of 2. code = Σ bᵢ × 2ⁱ, and letter = ASCII(code), with A = 65 and a = 97.

Formula

code = Σ bi × 2i
letter = ASCII(code)
A1Z26: letter = alphabet[code − 1]

Where

bi
bit at position i, 0 or 1, counted from the right
2i
place value: 1, 2, 4, 8, 16, 32, 64, 128
code
decimal value of the byte, 0–255

Worked example

01000001= 64 + 1 = 65 → A01111010 = 64 + 32 + 16 + 8 + 2 = 122 → z

Capital and lowercase letters differ by 1 bit: bit 5 (value 32). A is 01000001 and a is 01100001.

Number to letter binary conversion chart

The number to letter binary conversion chart lists A–Z in 8-bit ASCII, lowercase ASCII, and 5-bit A1Z26. A = 01000001, Z = 01011010, a = 01100001, and z = 01111010.

LetterDecimal8-bit ASCIILowercase5-bit A1Z26
A65010000010110000100001
B66010000100110001000010
C67010000110110001100011
D68010001000110010000100
E69010001010110010100101
F70010001100110011000110
G71010001110110011100111
H72010010000110100001000
I73010010010110100101001
J74010010100110101001010
K75010010110110101101011
L76010011000110110001100
M77010011010110110101101
N78010011100110111001110
O79010011110110111101111
P80010100000111000010000
Q81010100010111000110001
R82010100100111001010010
S83010100110111001110011
T84010101000111010010100
U85010101010111010110101
V86010101100111011010110
W87010101110111011110111
X88010110000111100011000
Y89010110010111100111001
Z90010110100111101011010
LetterUppercase binaryDecimalLowercase binaryDecimal
A01000001650110000197
B01000010660110001098
C01000011670110001199
D010001006801100100100
E010001016901100101101
F010001107001100110102
G010001117101100111103
H010010007201101000104
I010010017301101001105
J010010107401101010106
K010010117501101011107
L010011007601101100108
M010011017701101101109
N010011107801101110110
O010011117901101111111
P010100008001110000112
Q010100018101110001113
R010100108201110010114
S010100118301110011115
T010101008401110100116
U010101018501110101117
V010101108601110110118
W010101118701110111119
X010110008801111000120
Y010110018901111001121
Z010110109001111010122

Uppercase and lowercase differ by 1 bit: the 32s place. A is 01000001 and a is 01100001, so flipping that bit changes the case of any letter.

How to convert binary to a letter by hand

  1. Write the place values 128, 64, 32, 16, 8, 4, 2, 1 over the 8 bits.
  2. Add the values under every 1. 01001000 = 64 + 8 = 72.
  3. Look up the number in the ASCII table. 72 is H.

For 5-bit A1Z26 binary, use the place values 16, 8, 4, 2, 1 and read the total as an alphabet position: 01000 = 8 = H.

ASCII vs A1Z26 binary

8-bit ASCII5-bit A1Z26
Bits per letter85
A01000001 (65)00001 (1)
Z01011010 (90)11010 (26)
CoversUpper and lower case, digits, punctuation26 capital letters
Used inComputers, files, networksPuzzles, escape rooms, classroom codes

ASCII defines 128 characters (0–127) and needs only 7 bits; computers store it in 8-bit bytes, so binary text is written in groups of 8 with a leading 0.

Frequently asked questions

What letter is 01000001 in binary?

01000001 is A (65 in ASCII).

What is "hi" in binary?

"hi" is 01101000 01101001. "HI" is 01001000 01001001.

How many bits are in a letter?

A letter takes 8 bits (1 byte) in ASCII, or 5 bits when only A–Z are coded.

What does 01001000 01101001 mean?

It means "Hi": 72 is H and 105 is i.

What is the formula to convert binary to a letter?

Add the place values of the 1 bits, then look the total up in the ASCII table. 01000011 = 64 + 2 + 1 = 67 = C.

What is Z in binary?

Z is 01011010 in 8-bit ASCII (decimal 90). Lowercase z is 01111010.

What is the difference between uppercase and lowercase in binary?

Uppercase and lowercase differ by 1 bit worth 32. A is 65 and a is 97.