What Is Binary Code?


Binary Code is a representation format for the different types of data like Text, Image, Video, etc. Binary code is expressed two basic symbols or numbers 1 and 0. Binary code is related to the binary number system those are 1 and 0. Binary is very related to the computers where the CPU works with binary values in the most basic terms.

Binary Code History

The binary numbering system is invented by Gottfried Leibniz in 1689 which was a mathematician. George Bool published the Mathematical Analysis of Logic paper in 1847 which is the base and description of the Boolean Algebra and Boolean Logic.

How To Create or Convert Into Binary Code?

Binary code can be created for different data types. The data formats like Video, Text, Instructions, etc can be converted into the binary code by using their representations. In the following example, we will convert an ASCII text into the binary code. The following ASCII text can be expressed in binary code.

Hello Poftut.com

When we convert the “Hello Poftut.com” into the binary code we will see the following output. As we can see there is no letter and there is only numbers which are binary. 0 and 1 are binary numbers and for binary coding only 0 and 1 can be used. Using decimal numbers like 2,3,5,14 etc are no possible.

01001000 01100101 01101100 01101100 01101111 00100000 01010000 01101111 01100110 01110100 01110101 01110100 00101110 01100011 01101111 01101101

Usage Of Binary Code

Binary code is very popular in computing and IT and used in different types of hardware, devices, and software. Here we will list some of the usage examples of the binary code.

LEARN MORE  Awk Logical Operators - OR, AND, NOT

CPU is the most important hardware which uses the binary code. All CPU logic and operation run with the binary code and binary logic like AND, OR, EXOR, NOT AND, NOT OR etc. All CPU instructions are coded as binary and executed in the resistors.

GPU or Graphical Processing Unit is another important hardware that uses the binary code in order to process the binary code. All graphics are rendered as binary code and parallel architecture most of the time.

Computer Network provides the data transmission between different hosts. Internet uses the computer networks for communication and in general, the transmitted data is encoded as binary code during the transmission.

Binary Code and Boolean Logic

Binary Code and Binary Logic are two related topics where Boolean Logic uses True and False where Binary Codes uses 1 and 0. Boolean values can be converted into the Binary Code where True is converted into 1 and False is converted into 0. All of the boolean logic operations can be easily expressed and applied to the binary code.

True AND True = True
1 AND 1 = 1


True AND False = False
1 AND 0 = 0


True OR False = True
1 OR 0 = 1

ASCII and Binary Conversion

ASCII is a text format that contains 255 characters. ASCII contains letters, numbers, alphanumeric, and sign characters. For example, ASCII character A is represented as 01000001 in binary code. Each ASCII character can store a single byte where a single byte can be expressed with the 8 bit. 8-bit stores 8 binary codes.

ASCII and Binary Conversion Table

Decimal and Binary Conversion

Decimal numbers are used in daily life by humans. Decimal numbers also used in computers by the user interfaces for users. But as most of the computer hardware is binary code based they will be eventually converted into the binary code. This is also called as Binary Coded Decimal. Hexadecimal numbering is another popular numbering scheme used in computing too.

Leave a Comment