How Computers Store Text

IntermediateAbout 12 minData & binary

You already know a computer's secrets are just 0s and 1s. So how does a keyboard letter like "H" become binary?

Every Character Gets a Number

Long before your screen shows a letter, your computer has already turned it into a number. Computers and keyboards agree in advance on exactly which number means which character — so "H" always means the same thing to every device.

Once it's a number, it's easy: just write that number in binary, the same way you've already seen with any other value.

ASCII: One of the First Systems

One of the earliest standards, called ASCII, assigned a number to every letter, digit, and punctuation mark on a standard keyboard — 128 characters in total, each fitting in a single byte.

Take the word "HI." Your computer stores it as two numbers — H is 72, I is 73 — written out here as 8-bit binary, one byte each:

01001000
"H" = 72
01001001
"I" = 73

Why 128 Characters Wasn't Enough

ASCII covers English letters, numbers, and basic punctuation — plenty for a 1960s teleprinter, not enough for a modern one. It has no room for accented letters, other alphabets like Arabic or Chinese, or a single emoji.

That's why almost every computer today uses Unicode instead — a much bigger system built to give every character in every language (and yes, every 😀) its own number. The letters and numbers you already know still work exactly the same way underneath.

Text Is Just Another Kind of Bits

Every message you've ever sent, every word on this page, is binary underneath — no different in kind from a LogicDash secret. The only difference is scale: your guess is 5 or 6 bits; a text message is thousands.

Try It Yourself

00000000

Decimal value—

ASCII Quick Reference

Every character your keyboard can type, mapped to its decimal value and 8-bit binary. Handy any time you need to look one up.

Note: uppercase and lowercase letters are different characters to a computer — "A" (65) and "a" (97) are not the same number.

Uppercase Letters

CharDecBinary
A6501000001
B6601000010
C6701000011
D6801000100
E6901000101
F7001000110
G7101000111
CharDecBinary
H7201001000
I7301001001
J7401001010
K7501001011
L7601001100
M7701001101
N7801001110
CharDecBinary
O7901001111
P8001010000
Q8101010001
R8201010010
S8301010011
T8401010100
U8501010101
CharDecBinary
V8601010110
W8701010111
X8801011000
Y8901011001
Z9001011010

Lowercase Letters

CharDecBinary
a9701100001
b9801100010
c9901100011
d10001100100
e10101100101
f10201100110
g10301100111
CharDecBinary
h10401101000
i10501101001
j10601101010
k10701101011
l10801101100
m10901101101
n11001101110
CharDecBinary
o11101101111
p11201110000
q11301110001
r11401110010
s11501110011
t11601110100
u11701110101
CharDecBinary
v11801110110
w11901110111
x12001111000
y12101111001
z12201111010

Digits

CharDecBinary
04800110000
14900110001
25000110010
35100110011
45200110100
CharDecBinary
55300110101
65400110110
75500110111
85600111000
95700111001

Punctuation

CharDecBinary
Space3200100000
.4600101110
,4400101100
!3300100001
?6300111111

Crack the Code

Someone hid a message in binary. Decode each byte back into a letter — using the reference table above, or the math from earlier in this lesson — to reveal it.

Warm-up

01000010
01001001
01010100

Main Challenge

01000100
01001001
01000111
01001001
01010100
01000001
01001100