Binary: The Language of Computers
Every time you read this article, you're seeing the result of millions of tiny switches flipping between two states. On or off. 1 or 0. That's it. That's binary.
No, your computer doesn't understand English. It doesn't understand emojis, images, videos, or anything you see on your screen. Everything your computer processes comes down to these two simple states. This isn't a metaphor. It's the literal foundation of modern computing.
What Is Binary Actually?
Binary is a number system that uses only two digits: 0 and 1. That's why we call it "binary" — from the Latin word meaning "two."
Humans use decimal (base-10). We have 10 digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. Computers use binary (base-2). They only need two digits: 0 and 1.
Why Only Two States?
Physics. That's the honest answer. Electronic circuits have two reliable states: charged or not charged, voltage high or voltage low. Creating circuits that distinguish between more than two states is exponentially harder and less reliable.
With two states, you get noise margins. A signal might be slightly off, but as long as it's clearly above or below a threshold, the computer knows what you mean. More states mean more opportunities for errors.
The Bit: Your Computer's Basic Unit
A single binary digit is called a bit. It's the smallest unit of data in computing. Each bit can be either 0 or 1. That's all it can store.
But combine enough bits together and you can represent anything:
- 8 bits = 1 byte — can represent 256 different values (0-255)
- 16 bits = 2 bytes — can represent 65,536 values
- 32 bits — over 4 billion values
- 64 bits — practically unlimited for most purposes
How Binary Represents Everything
Numbers
Counting in binary is straightforward. Each position represents a power of 2:
- 1 = 1
- 10 = 2
- 100 = 4
- 1000 = 8
- 1111 = 15 (8+4+2+1)
That's it. No tricks. Just powers of two added together.
Text
Text is just numbers. ASCII assigns numbers to characters. 'A' is 65. 'a' is 97. '0' (the digit, not the letter) is 48. The space character is 32. Every character you type gets converted to a number, which gets converted to binary.
UTF-8 and other encodings expand this to cover virtually every character in every language ever written.
Images
Every pixel in an image has color values. Each color channel (red, green, blue) typically uses 8 bits (0-255). So a single pixel might be: 255 (red), 128 (green), 0 (blue). That's three bytes per pixel. A 1920x1080 image has over 2 million pixels. Do the math.
Audio
Sound waves are continuous. Computers convert them to discrete values through sampling. CD quality audio uses 44,100 samples per second, 16 bits each, stereo. That's over 1.4 million bits per second just for music.
The Hardware Reality
Here's where it gets physical. Inside your CPU, you have transistors — billions of them. A transistor acts like a switch. Current flows or it doesn't. That's your 1 or 0.
Modern CPUs have billions of transistors. The Apple M2 chip has approximately 20 billion transistors. Each one flipping on and off billions of times per second. That's how your computer thinks.
RAM modules store bits using capacitors. Charged = 1. Discharged = 0. These capacitors leak charge, which is why RAM is volatile — lose power, lose data. That's why you need to save your work.
Hard drives (HDDs) use magnetic domains. North polarity = 0. South polarity = 1. SSDs use floating gate transistors that trap electrons. Same concept, different physics.
Binary Logic: Where It Actually Gets Interesting
Individual bits are boring. The power comes from combining them with logic gates:
- AND — outputs 1 only if both inputs are 1
- OR — outputs 1 if either input is 1
- XOR — outputs 1 if inputs are different
- NOT — inverts the input
Stack enough of these together and you get an ALU (Arithmetic Logic Unit). That's the part of the CPU that actually computes. Add, subtract, multiply, divide — all built from these simple logic gates.
Boolean Algebra
George Boole figured out in the 1800s that logical operations could be expressed mathematically. He had no idea his work would become the foundation of computing. AND, OR, NOT — that's the vocabulary of computation.
Binary in Everyday Tech
You interact with binary constantly:
- Your phone's screen — each pixel is red, green, blue at specific intensities. All numbers. All binary.
- Music streaming — MP3s, AAC files, FLAC — all compressed binary representations of sound waves
- Video calls — your voice gets converted to numbers, compressed, sent as packets of binary data, reconstructed on the other end
- Text messages — each character is stored as a number in Unicode
The Limitations
Binary isn't perfect. Representing certain numbers is problematic. 0.1 in binary is a repeating fraction (like 1/3 in decimal). This is why 0.1 + 0.2 ≠ 0.3 in most programming languages. It's not a bug — it's a fundamental limitation of floating-point arithmetic.
Decimal numbers can be represented exactly in binary, but only if they're powers of 2 (like 0.5, 0.25, 0.125). Everything else involves approximation.
Beyond Binary
Researchers are working on quantum computing, which uses qubits. A qubit can be 0, 1, or both simultaneously (superposition). This isn't just faster binary — it's a fundamentally different model of computation.
But we're nowhere near replacing your laptop with a quantum computer. Current quantum computers need to be cooled to near absolute zero and isolated from all interference. Your phone will be using binary for a very long time.
The Bottom Line
Binary is simple. Two states. On or off. 1 or 0. Everything your computer does — every pixel on your screen, every note in your playlist, every character in your documents — comes down to this.
There's no magic. No hidden complexity. Just millions of switches flipping between two states, faster than you can imagine. That's computing. That's binary.
Every digital thing you use: this fundamental truth.