🔢 IP Address to Decimal Calculator
Convert IPv4 addresses to decimal, hexadecimal, and binary — and back again
| IP Address | Decimal | Hex | Binary (first octet) |
|---|---|---|---|
| 0.0.0.0 | 0 | 00000000 | 00000000 |
| 1.1.1.1 | 16,843,009 | 01010101 | 00000001 |
| 8.8.8.8 | 134,744,072 | 08080808 | 00001000 |
| 10.0.0.1 | 167,772,161 | 0A000001 | 00001010 |
| 127.0.0.1 | 2,130,706,433 | 7F000001 | 01111111 |
| 172.16.0.1 | 2,886,729,729 | AC100001 | 10101100 |
| 192.168.0.1 | 3,232,235,521 | C0A80001 | 11000000 |
| 192.168.1.1 | 3,232,235,777 | C0A80101 | 11000000 |
| 255.255.255.0 | 4,294,967,040 | FFFFFF00 | 11111111 |
| 255.255.255.255 | 4,294,967,295 | FFFFFFFF | 11111111 |
An IP address is made up of 32-bit binary. For human use, it is split into four 8-bit parts, that are shown as decimal numbers in “dotted quad” format. Usually IPv4 addresses appear in dot-decimal form with four numbers between 0 and 255, separated by dots, like 192.0.2.1.
Each of those parts matches a group of 8 bits called an octet.
How IPv4 dotted decimal addresses work and how to change them to one number
Why decimal and not hex? The range 0-255 is easier to understand than hex. Such a number is not too big, and hex form only complicates it for average folks.
Because each part has only 8 bits, it matches two hex digits. Probably it was chosen for memorizing. Before DNS, folks had to recall IP addresses, and hex is recalled much more hardly than four short decimal numbers.
You can count 8 bits from 0 to 255 in binary. The decimal octet form helps to read the bit value of every byte. In an octet the bit weights are 128, 64, 32, 16, 8, 4, 2, and 1 from left to right.
You count the decimal value by adding weights of bits equal to 1. For instance, 11000000 in binary gives 192. Full octet 11111111 maches 255, because 1+2+4+8+16+32+64+128=255.
There are free tools that convert an IPv4 address from dot-decimal into one decimal number and back. For IPv4 you calculate it by means of 192×256³ + 168×256² + 1×256 + 1 four 192.168.1.1. Each octet is multiplied by 256 raised to its position from the right, starting from 0.
For instance, 8.8.8.8 using that formula becomes 134744072. You can ping it directly as 134744072 from a command prompt. Another example: 192.168.1.1 becomes 3232235777.
Address 218.53.147.240 gives 3660944368 by means of 218×256³ + 53×256² + 147×256 + 240.
Manually converting takes a long time and risks mistakes. It is easier to use an online IP to Decimal converter. Enter an address, click the button, and get it as one number.
In an IP header, addresses are raw 32-bit binary. Dotted decimal helps only folks. IPv4 can appear in hex like 0xff000102, but dotteddecimal stays standard.



