Binary

Binary (or base-2) a numeric system that only uses two digits — 0 and 1. Computers operate in binary, meaning they store data and perform calculations using only zeros and ones.

A single binary digit can only represent True (1) or False (0) in boolean logic. However, multiple binary digits can be used to represent large numbers and perform complex functions. In fact, any integer can be represented in binary.

Below is a list of several decimal (or "base-10") numbers represented in binary.

DecimalBinaryBase-2 Calculation
00n/a
1120
21021
31121 + 20
410022
510122+ 20
611022 + 21
711122 + 21 + 20
8100023
9100123 + 20
10101023 + 21
64100000026
25610000000028
102410000000000210

One bit contains a single binary value — either a 0 or a 1. A byte contains eight bits, which means it can have 256 (28) different values. These values may be used to represent different characters in a text document, the RGB values of a pixel within an image file, or many other types of data.

Large files may contain several thousand bytes (or several megabytes) of binary data. A large application may take up thousands of megabytes of data. No matter how big a file or program is, at its most basic level, it is simply a collection of binary digits that can be read by a computer processor.

NOTE: The term "binary" may also be used to describe a compiled software program. Once a program has been compiled, it contains binary data called "machine code" that can be executed by a computer's CPU. In this case, "binary" is used in contrast to the text-based source code files that were used to build the application.

Updated March 22, 2018

Definitions by TechTerms.com

The definition of Binary on this page is an original TechTerms.com definition. If you would like to reference this page or cite this definition, you can use the green citation links above.

The goal of TechTerms.com is to explain computer terminology in a way that is easy to understand. We strive for simplicity and accuracy with every definition we publish. If you have feedback about the Binary definition or would like to suggest a new technical term, please contact us.

Want to learn more tech terms? Subscribe to the daily or weekly newsletter and get featured terms and quizzes delivered to your inbox.

Sign up for the free TechTerms Newsletter

How often would you like to receive an email?

You can unsubscribe or change your frequency setting at any time using the links available in each email.

Questions? Please contact us.