Explainer
What does 1011 mean? As an unsigned binary number, it means eleven. Read those same digits as ordinary decimal notation and you get one thousand and eleven. The symbols haven’t changed. The rule for reading them has.
Counting in base two
Decimal uses place values 1, 10, 100 and so on. Binary uses 1, 2, 4, 8 and successive powers of two. Reading 1011 as an unsigned binary integer gives 1 × 8 + 0 × 4 + 1 × 2 + 1 × 1 = 11.
With four bits, there are 16 possible patterns. Interpreted as unsigned integers, they represent 0 through 15. A signed representation uses the same finite set of patterns differently. The bits have not changed; the interpretation has. That is why a file format, variable type or network protocol matters. Without the convention, the sequence is ambiguous.
Turning bits into text
ASCII assigns numeric values to a limited set of characters using seven-bit codes. It is commonly stored in eight-bit bytes. Unicode defines a much larger character repertoire, while encodings such as UTF-8 specify how Unicode values are represented as bytes.
UTF-8 uses one to four bytes for a Unicode scalar value and preserves the ASCII range in its one-byte form. A displayed character can also involve multiple Unicode code points, so “one character equals one byte” is not a safe general rule. The Unicode Consortium’s UTF FAQ explains the encoding details.
Data and instructions
A processor’s instruction set specifies operations and their encodings. Software arranges those instructions to load data, perform arithmetic, compare values and branch. A picture file is not inherently an executable program simply because both are represented with bits. Context and the software interpreting those bytes determine what happens. Electronic hardware implements binary distinctions through physical states, often voltage ranges. It does not have to use an imaginary switch that is always exactly zero volts or exactly one volt.
The same problem in a spreadsheet
Data analysis has the same interpretive problem at a larger scale. A column of numbers does not explain its units, missing values or collection method. Before calculating anything, we need to know what its representation means. That becomes a practical problem in composite market scores, where adding prices with different meanings can produce a number that moves for the wrong reason.
Why do computers use zeros and ones?
Two distinguishable logical states give digital circuits a practical way to represent information. The physical states are not the printed characters 0 and 1, and a logical 1 does not universally mean exactly one volt. Circuits use defined ranges and conventions so the system can distinguish its states reliably.
In the video, I give a computer a deliberately silly dictionary: 1001 means a tennis ball, and 1110 means a taco. Those meanings are invented for the example, not part of ASCII. The joke gets at a real point: a pattern needs a convention before a reader can decide what it represents.
Harvard’s CS50 introduction to representing information walks through the connection between binary, numbers, text and images. A bit pattern can be used as data or as part of a processor instruction, depending on the system interpreting it. Calling binary a language is a useful shortcut, but it does not make every sequence of bits a program.
Continue the series
Start with electricity, charge and current for the physical foundations. The second lesson examines electrons, protons and neutrons and their different roles. Return to the series guide to watch all three in order.
Transcript
Read the original video transcript
How do zeros and ones, or simply on and off switches, make everything possible in our digital binary code world? To understand this concept, let's think about our own human communication. We use millions of references, such as words and letters, to learn and communicate. For example, 26 letters in the English language have helped us write millions of books, tell stories, and create religions, science, medicine, and innovation.
Similarly, a computer is nothing more than a box with billions of transistors that are simply on-and-off switches. Instead of calling them on and off switches though, we call them binary code, where 0 is the symbol for off and 1 is the symbol for on. Knowing this now, we can tell the computer, "hey computer, here is a book for you to understand how to talk to me as a human, so I want you to represent the combination of 1001 as a tennis ball, and the combination of 1110 as a taco. So the computer say's, ok, from now on, 1001 is a tennis ball, and 1110 is a taco.
Much like the alphabet for us represents an almost infinite amount of possibilities when you combine different letters in different ways, A combination of 0's and 1's in unique and specific ways is a reference for a computer that could be perhaps one of the 26 letters in our alphabet or maybe a pixel's color and location on a computer screen. Everything comes down to a reference, a mathematical rosetta stone, if you will, for us to interact with our digital devices instantly and understand each other. With this binary code, we can tell the computer to represent a combination of 0's and 1's as something else, just like how we use letters to represent words. This is where ASCII comes in.
ASCII is a set of rules for how computers can represent letters, numbers, and symbols using a series of numbers. Each letter, number, and symbol is assigned a unique number, called a code point, and that code point is represented by a combination of 0's and 1's. For example, the capital letter "A" is represented by code point 65, which is represented by the binary combination of 1000001, while the lowercase letter "a" is represented by the code point 97 and the binary combination of 01100001. But how does this all come together to make our favorite apps and programs work?
Well, it's all about layers. At the very bottom is binary code, the language that the computer's hardware understands. Above that is Assembly Language, a low-level language that is easier for humans to read and write. It's like the scaffolding around a building, providing a more accessible framework for the construction work to happen.
Above Assembly, we have more sophisticated high-level programming languages like C++, Java, and Python. These languages are closer to human languages and make it easier for developers to create complex software without dealing with the details of the computer's hardware. It's like the walls and roof of a building, providing protection and comfort for the people inside. At the top of this stack are the applications we use every day, created using high-level programming languages but still executed using the binary code that the computer's hardware understands.
It's like the people and furniture inside a building, the final result of all the hard work that went into creating the structure. So, in the end, it all comes down to a simple idea: a combination of 0's and 1's that make up everything we see and do on our computers.




