Categories


IP to Binary

Convert IPV4 Adress to Binary





Result

What is IPv4?

IPV4 (Internet Protocol version 4) is the most used protocol for transmitting data around networks on the internet. IPV4 is the fourth iteration of the IP protocol and enables connected devices to share information over the internet. IPV4 has a 32 bit address space allowing around 4.3 billion unique IP addresses. An IPV4 address consists of four octets, each octet is eight bits in length. The number of new devices connecting to the internet each year is on the rise. The limited address space of IPV4 has called for the gradual adoption of IPV6 126 bit addresses, which has a significantly larger address space compared to IPV4. Broadcasting, unicating and multicast is also supported by IPV4. The packets of an IPV4 split into a payload and a header. The payload is the data that is being transmitted where the header contains the destination address and source address.


What is an Octet?

Octet is a grouping of eight binary bits, same as a byte. But the word octet is used when in networking so not to confuse with storage (byte). An IPv4 address is made up with four octets separated with a dot. In total an IP address comprises 32 binary bits. In binary the range of a octet starts at 00000000 up to 11111111. In Decimal a octet can a value from 0 up to 255.

What is an Octet of an IP address
Fig.1 An Example of an IP Address with four octets.

How to convert a IP to a binary?

There may be other methods out there that you could use to convert an IP address to binary. But there are two tried and tested methods: division and table method. In this article we will discuss how to convert an IP address using the division method. Which one you chose depends on you but they will have the same outcome if the methodology is applied correctly.

Converting IP to Binary Using Division

To convert an IP address of 193.168.67.33 using division you simply continually divide the octet by two until the quotation (answer of the division) reaches zero. During each division iteration the remainder should be noted. An IPv4 address consists of four octets, each separated with a dot between them. These octets will be converted separately to one another. Start with the first octet which is 193 and divide it by 2 which results in 193/2 = 96 with a remainder of 1. So the next step would be noting the remainder which is 1 and then taking the quotation from the first step which is 96 then divide that by two. Continue to repeat each step again until the quotation is zero, Then reverse the order list of eight remainders that was noting during the division to reverse the binary equivalent of the integer. See the steps below and compare your answers:

  1. 193 / 2 = 96 remainder 1
  2. 96 / 2 = 48 remainder 0
  3. 48 / 2 = 24 remainder 0
  4. 24 / 2 = 12 remainder 0
  5. 12 / 2 = 6 remainder 0
  6. 6 / 2 = 3 remainder 0
  7. 3 / 2 = 1 remainder 1
  8. 1 / 2 = 0 remainder 1

When you reverse the order of the remainders you get 11000001, so 193 is 11000001 in binary. Repeat the same steps for the next octet which is 168 and repeat for octet 67 and 33. In the end your answer should exactly match “11000001.10101000.01000011.00100001”


Similar Pages/Apps

Subnet Mask to Binary

Calculate the Subnet Mask to Binary Notation



Star Icon

4.3

Number of Hosts Per Subnet

Check the number of hosts that is in a subnet on CIDR



Star Icon

4

IPV4 Validator

Check if an IPV4 Address is vaild



Star Icon

4.1

Subnet Mask To CIDR

Convert subnet mask to a CIDR



Star Icon

4.4

Subnet Mask To Wildcard Mask

Convert subnet mask to a wildcard mask



Star Icon

4.1

Subnet Mask To Wildcard Mask

Calculate the number of hosts



Star Icon

2.2

IP class checker

Check the class of an IP address



Star Icon

4.2