Cloud tools

Decimal to IP converter

Enter decimal number to convert it to IP address API (coming soon)
Decimal Ip

About Decimal to IP converter online

Easily convert decimal IP addresses to their standard representation using our online conversion tool. With its user-friendly interface, it's a great way to quickly transform decimal IPs

Learn how decimal to IP address conversion is done

An IP address is a unique numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication. It consists of four decimal numbers separated by dots, each ranging from 0 to 255. These decimal numbers represent the 32-bit binary value of the IP address.

To convert a decimal IP address to binary, each decimal number in the IP address is converted to 8-bit binary. This is done by dividing the decimal number by 2 repeatedly, noting down the remainder each time, and reversing the order of the remainders to get the binary representation of the decimal number.

For example, to convert the decimal number 192 to binary, we can follow these steps:

Divide 192 by 2: 192 / 2 = 96 with a remainder of 0
Divide 96 by 2: 96 / 2 = 48 with a remainder of 0
Divide 48 by 2: 48 / 2 = 24 with a remainder of 0
Divide 24 by 2: 24 / 2 = 12 with a remainder of 0
Divide 12 by 2: 12 / 2 = 6 with a remainder of 0
Divide 6 by 2: 6 / 2 = 3 with a remainder of 0
Divide 3 by 2: 3 / 2 = 1 with a remainder of 1
Divide 1 by 2: 1 / 2 = 0 with a remainder of 1

The binary representation of the decimal number 192 is 11000000 (by reversing the order of the remainders) so the IP address 192.168.1.1 will be converted to 11000000.10101000.00000001.00000001 in binary.

Conversely, to convert a binary IP address to decimal, each 8-bit binary number is converted to decimal by applying the following formula:

(1st bit * 2^7) + (2nd bit * 2^6) + (3rd bit * 2^5) + ... + (8th bit * 2^0)

For example, to convert the binary number 11000000 to decimal, the calculation would be:

(1 * 2^7) + (1 * 2^6) + (0 * 2^5) + (0 * 2^4) + (0 * 2^3) + (0 * 2^2) + (0 * 2^1) + (0 * 2^0) = 128 + 64 = 192

Similar IP converters