Binary and Decimal Description

Binary System:

Decimal System:

Conversion from Binary to Decimal

To convert a binary number to decimal:

  1. List the Powers of 2: Write down the powers of 2 from right to left. Start from 2^0, then 2^1, 2^2, and so on. Each power of 2 aligns with a digit in the binary number.
  2. Multiply and Sum: Multiply each binary digit by its corresponding power of 2. Then, sum all the resulting products to get the decimal equivalent.

For example, to convert the binary number 1101 to decimal:

So, 1101 in binary equals 13 in decimal.

Conversion from Decimal to Binary

To convert a decimal number to binary:

  1. Divide by 2: Divide the decimal number by 2.
  2. Write Down the Remainder: Record the remainder (it will be either 0 or 1).
  3. Repeat: Repeat the division with the quotient obtained until the quotient becomes 0.
  4. Read the Remainders in Reverse: The binary number is formed by the remainders, read from bottom to top.

For example, to convert the decimal number 13 to binary:

Reading the remainders from bottom to top, we get 1101.

So, 13 in decimal equals 1101 in binary.


Understanding binary and decimal systems is crucial in computing and electronics, as they form the basis of data representation and processing. Additionally, the ability to convert between these two systems is important in fields like computer science, engineering, and information technology.


Binary to Decimal

Decimal to Binary

IPv4 Addresses and Website Addresses

An IPv4 address is a 32-bit binary number represented in decimal format with four segments. Each segment represents 8 bits (1 byte) and can have a value from 0 to 255.

For example, the IP address can be represented in binary as:


The binary representation of an IP address is used by computers to route data over the Internet.

In the context of website addresses, a domain name (e.g., is associated with an IP address to allow users to access the website. The Domain Name System (DNS) translates domain names into their corresponding IP addresses.

Convert IPv4 Address to Binary

Apply Subnet Mask