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 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
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.

CPU is the most important hardware which uses the binary code. All CPU logic and operation runs 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.

LEARN MORE  Javascript Boolean Variable Types

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

Computer Network provides the data transmission between different hosts. Internet uses the computers 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 topic where Boolean Logic uses True and False where Binary Codes uses 1 and .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 into 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 signs 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