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
Integer = a × 256³ + b × 256² + c × 256 + d
- 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.
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.
Last reviewed on 3 October 2026. Found a mistake? Tell us.

