IP Address Converter

An IPv4 address is a 32-bit number. Databases and some software store it as an integer, and networking lessons use its binary form. This converter shows all forms at once.

Results update as you type.

Dotted decimal

192.168.1.1

class C, private

Decimal (integer)
3232235777
Binary
11000000.10101000.00000001.00000001
Hexadecimal
0xC0A80101

About this calculator

Enter a dotted address or a whole number.

How to use it

  1. Enter an IP address or number.
  2. 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

  1. Integer: 3,232,235,777.
  2. Binary: 11000000.10101000.00000001.00000001; hex 0xC0A80101.
  3. 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.