How Computers Store Text
You already know a computer's secrets are just 0s and 1s. So how does a keyboard letter like "H" become binary?
Swipe or tap Next for the next section
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:
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
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
| Char | Dec | Binary |
|---|---|---|
| A | 65 | 01000001 |
| B | 66 | 01000010 |
| C | 67 | 01000011 |
| D | 68 | 01000100 |
| E | 69 | 01000101 |
| F | 70 | 01000110 |
| G | 71 | 01000111 |
| Char | Dec | Binary |
|---|---|---|
| H | 72 | 01001000 |
| I | 73 | 01001001 |
| J | 74 | 01001010 |
| K | 75 | 01001011 |
| L | 76 | 01001100 |
| M | 77 | 01001101 |
| N | 78 | 01001110 |
| Char | Dec | Binary |
|---|---|---|
| O | 79 | 01001111 |
| P | 80 | 01010000 |
| Q | 81 | 01010001 |
| R | 82 | 01010010 |
| S | 83 | 01010011 |
| T | 84 | 01010100 |
| U | 85 | 01010101 |
| Char | Dec | Binary |
|---|---|---|
| V | 86 | 01010110 |
| W | 87 | 01010111 |
| X | 88 | 01011000 |
| Y | 89 | 01011001 |
| Z | 90 | 01011010 |
Lowercase Letters
| Char | Dec | Binary |
|---|---|---|
| a | 97 | 01100001 |
| b | 98 | 01100010 |
| c | 99 | 01100011 |
| d | 100 | 01100100 |
| e | 101 | 01100101 |
| f | 102 | 01100110 |
| g | 103 | 01100111 |
| Char | Dec | Binary |
|---|---|---|
| h | 104 | 01101000 |
| i | 105 | 01101001 |
| j | 106 | 01101010 |
| k | 107 | 01101011 |
| l | 108 | 01101100 |
| m | 109 | 01101101 |
| n | 110 | 01101110 |
| Char | Dec | Binary |
|---|---|---|
| o | 111 | 01101111 |
| p | 112 | 01110000 |
| q | 113 | 01110001 |
| r | 114 | 01110010 |
| s | 115 | 01110011 |
| t | 116 | 01110100 |
| u | 117 | 01110101 |
| Char | Dec | Binary |
|---|---|---|
| v | 118 | 01110110 |
| w | 119 | 01110111 |
| x | 120 | 01111000 |
| y | 121 | 01111001 |
| z | 122 | 01111010 |
Digits
| Char | Dec | Binary |
|---|---|---|
| 0 | 48 | 00110000 |
| 1 | 49 | 00110001 |
| 2 | 50 | 00110010 |
| 3 | 51 | 00110011 |
| 4 | 52 | 00110100 |
| Char | Dec | Binary |
|---|---|---|
| 5 | 53 | 00110101 |
| 6 | 54 | 00110110 |
| 7 | 55 | 00110111 |
| 8 | 56 | 00111000 |
| 9 | 57 | 00111001 |
Punctuation
| Char | Dec | Binary |
|---|---|---|
| Space | 32 | 00100000 |
| . | 46 | 00101110 |
| , | 44 | 00101100 |
| ! | 33 | 00100001 |
| ? | 63 | 00111111 |
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
Answer: BIT
Main Challenge
Answer: DIGITAL