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.

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.

Dotted decimal, 32-bit integer and hex
AddressIntegerHexWhat it is
0.0.0.000x00000000Unspecified, “any address”
8.8.8.81347440720x08080808A public address
10.0.0.11677721610x0A000001Private (10.0.0.0/8)
127.0.0.121307064330x7F000001Loopback
172.16.0.128867297290xAC100001Private (172.16.0.0/12)
192.168.0.132322355210xC0A80001Private, a common router address
224.0.0.137580963850xE0000001Multicast
255.255.255.042949670400xFFFFFF00The /24 subnet mask
255.255.255.25542949672950xFFFFFFFFLargest 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.