To 1, or To 0: Translating Binary in Fiction

Nat Russo How-To, Subject Matter Expertise 4 Comments

Binary in fiction is often laughable to an engineer like me. You’ve all seen the same scenes I have. A scientific research facility gets a signal from outer space. After several try/fail cycles, one of the junior scientists has a Eureka! moment.

“Eureka! It’s binary!” the scientist says. [At least, I hope not. I really hope the writer does a better job than that. But, you get the idea.]

Binary, the magic message container.

Within hours (or even minutes), the engineer translates the entire message to perfection (with images and blueprints even!) and we understand the message being sent by the alien civilization. We can then march off and build our new teleportation device, space ship, poverty-fixing widget, or, perhaps, merely learn the meaning of life.

Only one problem. Binary, in a vacuum, doesn’t simply translate directly to English words. Trust me…it doesn’t even do it in a Roomba. (Ba-dump-tis)

The upshot is this: You cannot simply translate binary to English (or any other language) without additional information.

Let’s find out why and how to fix it so that your scientist can at least appear to know what they’re talking about.

Who the hell is this guy, and why is he talking about binary instead of writing?

First, I’ll give you some background so that you’ll understand this isn’t merely an opinion of some random guy on the internet.

Many of you have been here for a while, so you know I’m a speculative fiction writer who mentors other up-and-coming writers. But, many don’t know that I’ve been a professional software engineer for more than 20 years, with nearly 20 years of personal experience prior to that. For those of you doing the math in the background, you’re correct. I’ve been programming computers since I was 10 years old.

Among my various bona fides, I have several years of university-level engineering mathematics under my belt, including a healthy dose of “discrete mathematics”, which is used in the realm of computer and software engineering, and is where Computer Science and other engineering students typically learn how to interact with binary.

In short, I’m the guy who’s going to read your book, or watch the movie based on your screenplay, and leave the experience shaking my head. The problem is that I’m likely your target demographic (geeky “computer dude/dudette” who is immersed in various fandoms, is likely a gamer, and is definitely an avid speculative fiction reader).

So, how do we turn this hot mess around? We learn just enough binary to be dangerous.

Don’t run away scared just yet! We’ll keep this simple. But, when it’s over, your readers will think you’re an expert.

What is Binary?

Binary is nothing more than the base-2 number system.

“Wait! You’ve lost me already! Base WHAT?! What’s a base?”

You’re already familiar with the decimal system. It’s the numbers you use every day, from buying gas, to paying your bills, to counting how many words you didn’t write today.

Sorry. Couldn’t resist. Back to the numbers…

What you may not be aware of is the decimal system is also referred to as the “base-10” system. Why? Because every digit can have 10 possible values, from 0 to 9.

In binary, which is “base-2”, each digit, which we call a “bit”, can have 2 possible values: 0 or 1.

That’s it. No magic. Nothing particularly scientific about it. Not any more than base 10, at least. It’s just a number system.

Okay. So what?

The numbers themselves don’t mean anything. There isn’t some direct “binary-to-English” or “binary-to-whatever-language” converter that doesn’t have to make certain assumptions first.

The binary number “01001110”, by itself, is just a number. It’s meaningless by itself. It contains 8 “bits”, which, in computer speak is known as a “byte”. So, how do we derive English (or some other language) from this byte of binary?

It’s simple. You need a lookup table.

In most computer systems, we use a lookup table known as an ASCII table. ASCII is an acronym that stands for American Standard Code for Information Interchange.

Here’s an example:

A partial ASCII table.

That table is particularly nice in that it includes not only decimal, but binary, octal (base-8) and hexadecimal (base-16). Many tables are abbreviated and only include the decimal values.

How do we work with binary?

Let’s take a look at how binary converts to something we all know. The decimal system. The first thing you have to understand is how the “weight” of the digits increase when we move from right to left. In the decimal system, the weight is “10”, so the number increases by powers of 10 as we move from right to left. The number 128, for example, has an “8” in the “ones” slot, a “2” in the “tens” slot, and a “1” in the “hundreds” slot. 100 + 20 + 8 = 128.

With me so far? We can put this into a handy table as follows. The top row is the “weight” of the digit. Notice how the weight increases by a power of 10 as we move from right to left.


Easy so far, right? This is stuff we learned back in elementary school.

In binary, since the system is base-2, the numbers increase in “weight” by powers of 2 as we move from right to left. Let’s take our binary number from above, 01001110, and plug it into a handy table. The top row is the “weight” of the digit in the decimal system. Notice how the “weight” doubles from right to left.


If we were to add one more binary digit to the left of this table, its “weight” would be “256”. After that, “512”, and so on.

Using the above table, we can easily convert the binary to decimal: 64 + 8 + 4 + 2 = 78.

So, the binary number 01001110 is the same as 78 in the decimal system.

Where’s our binary message from outer space?

In order to get there, we’d have to take the ASCII table above (or some other lookup mechanism of your devising that an alien civilization would plausibly know about) and combine it with our binary digit conversion (01001110 = 78) to arrive at the capital-letter “N”.

Hopefully, you can now see why you can’t just take a random binary message and convert it into English. Too many assumptions have to be made for that to be successful. First, both the sender and receiver would have to read English. Second, both the sender and receiver would have to agree on a data interchange format. We looked at ASCII as a data interchange format, but there are many others, and computer programmers routinely create ad hoc interchange formats to meet specific needs.

And we haven’t even looked at how to transmit/receive binary data, such as images, video, or sound!

Before we go, I’ll leave you with this exercise. See if you can translate the binary message in the image using an ASCII table.

Nothing to see here

Related Articles

    Sign up for the free Erindor Press newsletter. Stay Informed. Be a better writer. Your contact information will NEVER be shared for ANY reason. Join Nat on Facebook for additional content that he doesn’t post on the blog or on Twitter. Be part of the conversation! Head on over to The Mukhtaar Estate and see what everyone’s talking about!

    About Nat Russo

    Nat Russo is the Amazon #1 Bestselling Fantasy author of Necromancer Awakening and Necromancer Falling. Nat was born in New York, raised in Arizona, and has lived just about everywhere in-between. He’s gone from pizza maker, to radio DJ, to Catholic seminarian (in a Benedictine monastery, of all places), to police officer, to software engineer. His career has taken him from central Texas to central Germany, where he worked as a defense contractor for Northrop Grumman. He's spent most of his adult life developing software, playing video games, running a Cub Scout den, gaining/losing weight, and listening to every kind of music under the sun. Along the way he managed to earn a degree in Philosophy and a black belt in Tang Soo Do. He currently makes his home in central Texas with his wife, teenager, mischievous beagle, and goofy boxador.

    Comments 4

      1. Post
    1. Good point. Saying “it’s binary” as a way to translate anything is pure technobabble.

      One possibility: binary could send universal messages as *pictures*: if the first digit is a 1, put a pixel in the screen’s upper left corner, then look at the second digit, etc. You’d just need to figure out how many digits wide a screen was and whether the aliens draw pictures in leftward rows from the top, leftward rows from the bottom, or the other six possibilities.

      The question then is how much real information you could share in pictures. Faces, yes, but no way to say what’s a friendly smile and what’s a snarl. Star maps and directions, maybe. Engineering diagrams and chemical structures, yes. Art, yes. Philosophy and diplomacy, no…

      1. Post

        Carl Sagan did a particularly clever thing in his book “Contact”. He had the alien civilization send a binary signal, but they included a “primer” in the signal itself that (if I recall correctly) was based on pure mathematics.

    Leave a Reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.