About this calculator
Enter a dotted address or a whole number.
How to use it
- Enter an IP address or number.
- Read the other forms.
The formula
- a.b.c.d
- the four octets
Worked example
192.168.1.1
- Integer: 3,232,235,777.
- Binary: 11000000.10101000.00000001.00000001; hex 0xC0A80101.
- Class C, private.
What the result means
Store IPs as integers to sort and compare ranges easily.
Common IPv4 addresses in every form
The integer is the value a database or log file stores. Paste it in to get the dotted form back.
| Address | Integer | Hex | What it is |
|---|---|---|---|
| 0.0.0.0 | 0 | 0x00000000 | Unspecified, “any address” |
| 8.8.8.8 | 134744072 | 0x08080808 | A public address |
| 10.0.0.1 | 167772161 | 0x0A000001 | Private (10.0.0.0/8) |
| 127.0.0.1 | 2130706433 | 0x7F000001 | Loopback |
| 172.16.0.1 | 2886729729 | 0xAC100001 | Private (172.16.0.0/12) |
| 192.168.0.1 | 3232235521 | 0xC0A80001 | Private, a common router address |
| 224.0.0.1 | 3758096385 | 0xE0000001 | Multicast |
| 255.255.255.0 | 4294967040 | 0xFFFFFF00 | The /24 subnet mask |
| 255.255.255.255 | 4294967295 | 0xFFFFFFFF | Largest value, limited broadcast |
Turning an integer back into an address
Divide by 256 three times and keep the remainders. Take 3232235876: 3232235876 ÷ 256 = 12625921 remainder 100, 12625921 ÷ 256 = 49320 remainder 1, 49320 ÷ 256 = 192 remainder 168. Reading from the last quotient gives 192.168.1.100, which is what the converter shows, with hex 0xC0A80164.
Storing addresses as integers makes range checks simple: an address is inside a block if its integer lies between the block’s first and last integers.
Things that trip people up
- Leading zeros: this converter reads 192.168.001.010 as 192.168.1.10, but some older software treats an octet with a leading zero as octal, so avoid writing them.
- Classes A to E are shown for reference only. Modern networks use CIDR prefixes, so a “class C” address can sit in a /16 or a /28.
- Hex input is not accepted directly. Convert a value such as C0A80101 to decimal with the number base converter first.
Assumptions
- IPv4.
Limitations
- IPv6 is not covered.
Frequently asked questions
How do I convert an IP to decimal?
Multiply the octets by 256³, 256², 256 and 1 and add.
What is 127.0.0.1?
The loopback address for your own computer.
Which ranges are private?
10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16.
What is 255.255.255.255 as a number?
4294967295, the largest 32-bit value, which is 0xFFFFFFFF in hex.
What is a 169.254.x.x address?
It is a link-local address. A device usually gives itself one when it cannot get an address from a DHCP server, so it often points to a network problem.
Can I convert an IPv6 address here?
No. IPv6 addresses are 128 bits long, and this converter handles only 32-bit IPv4 addresses.
Last reviewed on 12 October 2026. How we calculate and check. Found a mistake? Tell us.

