01001000 01100101 01101100 01101100 01101111 00100001
Those ones and zeros might not look like anything to you, but in binary code the numbers are actually saying “Hello!”
Any code that uses just two symbols to represent information is considered binary code. Different versions of binary code have been around for centuries, and have been used in a variety of contexts. For example, Braille uses raised and unraised bumps to convey information to the blind, Morse code uses long and short signals to transmit information, and the example above uses sets of 0s and 1s to represent letters. Perhaps the most common use for binary nowadays is in computers: binary code is the way that most computers and computerized devices ultimately send, receive, and store information.
In computers, the two symbols used for binary code are 0 and 1, usually grouped in a specific sequence to represent information. Each 0 or 1 is called a “bit,” and different computers use different numbers of bits at a time. For example, most web servers interpret bits in groups of 8, while an iPhone 6 is built on a processor that handles bits in groups of 64. “UTF-8” is an 8-bit binary code, which means that it uses unique groups of eight 0s and 1s at a time to code for different letters, numbers, and symbols (for example *&^%$#@ and !), as well as other more complex functions. UTF-8 (which stands for “Unicode Transformation Format 8-bit”) is the version most commonly used by computers and the World Wide Web to represent information.
Take a look through the key below and try to spell something using UTF-8 binary code. Try your name! Find the 8-bit binary code sequence for each letter of your name, writing it down with a small space between each set of 8 bits. For example, if your name starts with the letter A, your first letter would be 01000001.
Write Your Name in Binary Code in Lots of Ways
The 0s and 1s of binary code are somewhat arbitrary. Any symbol, color, or physical object that can exist in two different forms or states—such as a coin (heads and tails), a switch (on and off), color (blue and green), shapes (circle and square)—can be used as a binary code. For example, here are the words “Science Friday Rules!” written in binary using peas and carrots:
What else can you think of that could be used to write your name in binary code? Try it!
Why Is Binary Code Such a Big Deal?
In computers and other computerized devices (like calculators, printers, coffee makers, and microwaves), bits are usually transmitted electronically. But this electronic information is fleeting. For it to exist for any length of time—and without a power supply—it must be stored physically within the device’s hardware. That means that every piece of binary code in a computer must be converted into a physical object or state. Binary code, as it turns out, is easy to convert from electronic information (e.g., 0s and 1s) to physical information, because only two kinds of physical objects or states are needed.
The conversion from electrical information to physical information storage is analogous to someone speaking the binary code for “dog” in 0s and 1s while you write them down on a piece of paper. The spoken 0s and 1s can’t be heard indefinitely after they are spoken, but by writing them physically on a piece of paper, you can refer back to them over and over again. In the case of a computer, that binary code might be stored in high and low voltages, in magnetized or demagnetized segments of a metallic disk, or, in super old computers, in punched and unpunched holes in cardstock.
In the Pulitzer Prize-Winning book The Soul of a New Machine, author Tracy Kidder explains how Data General computers stored information in a binary language:
Regardless of the medium, binary code has been the gold standard of physical information storage in computational devices from calculators to super computers.
Extension: Does Bit Number Matter?
Arranging and reading bits in ordered groups is what makes binary exceptionally powerful for storing and transmitting huge amounts of information. To understand why, it helps to consider the alternative: what if only one bit was used at a time? Well, you’d only be able to share two types of information—one type represented by 0 and the other by 1. Forget encoding the entire alphabet or punctuation signs—you just get two kinds of information.
But when you group bits by two, you get four kinds of information:
00, 01, 10, 11
By increasing from two-bit groups to three-bit groups, you double the amount of information you can encode:
000, 001, 010, 011, 100, 101, 110, 111
While eight different kinds of information are still not enough for representing a whole alphabet, perhaps you can see where the pattern is headed.
Using any binary code representation you’d like, try to figure out how many possible combinations of bits you can make out using bits grouped by four. Then try again using bits grouped by five. How many possible combinations do you think you can get using six bits at a time, or 64? By grouping single bits together in larger and larger groups, computers can use binary code to find, organize, send, and store more and more kinds of information.
Kidder drives this point home in The Soul of a New Machine:
As computer technology has advanced, computer engineers have needed ways of sending and storing greater amounts of information at a time. As a result, the bit-length used by computers has been growing steadily over the course of computer history. If you have a new iPhone, it is using a 64-bit microprocessor, which means that it stores and accesses information in groups of 64 binary digits—which means that it’s capable of storing 264, or more than 18,000,000,000,000,000,000 unique 64-bit combinations of binary integers. Whoa.
This idea of coding information with more bits at a time to improve the power and efficiency of computers has driven computer engineering from the beginning, and still does. Though this excerpt from The Soul of a New Machine was first published in 1981, the basic principle of encoding information in binary code with increasing complexity is still representative of the progression of computational power today:
Participate!
Follow-along as Science Friday’s Book Club reads The Soul of a New Machine, by Tracy Kidder.
Read an excerpt of the book here.
Write something cool in binary? Tweet a photo or your binary to @scifri!
Additional Resources:
Introducing Binary from BBC Bitesize
Binary Baubles lesson plan and activity from Thinkersmith.org
Untangling the Hairy Physics of Rapunzel SciFri video interviews software engineers!
There is no paywall on the story you just read because a community of dedicated listeners and readers have contributed to keep the global news you rely on free and accessible for all. Will you join the 226 donors who have supported The World so far? From now until Dec. 31, your gift will help us unlock a $67,000 match. Donate today to double your impact!