IP Address Calculator

e.g. 192.168.1.1/24, 10.0.0.5 255.255.252.0, 3232235777, 0xC0A80101 or an IPv6 address

IP calculator results
FieldValueBinaryCopy
Address192.168.1.111000000.10101000.00000001.00000001
Netmask255.255.255.0 = 2411111111.11111111.11111111.00000000
Wildcard0.0.0.25500000000.00000000.00000000.11111111
Network192.168.1.0/2411000000.10101000.00000001.00000000
Broadcast192.168.1.25511000000.10101000.00000001.11111111
HostMin192.168.1.111000000.10101000.00000001.00000001
HostMax192.168.1.25411000000.10101000.00000001.11111110
Hosts/Net254
Decimal3,232,235,777
Hex0xC0A80101
ClassClass C (legacy)
TypePrivate (RFC 1918)
Reverse DNS1.1.168.192.in-addr.arpa

■ network bits ■ host bits

Need to split this network? Use the subnet calculator.

Runs entirely in your browser. Nothing you enter is sent to a server.

What the IP calculator shows

Enter an IPv4 address, with or without a prefix or mask, to see it in dotted decimal, binary, a single decimal integer and hexadecimal. The calculator also shows the network it belongs to, the broadcast address, the usable host range, the legacy address class and whether the address is private, public or reserved. IPv6 addresses are detected automatically. Nothing you enter leaves your browser.

Example: 192.168.1.1/24 in binary

Address:   192.168.1.1     11000000.10101000.00000001. 00000001
Netmask:   255.255.255.0   11111111.11111111.11111111. 00000000
Network:   192.168.1.0     11000000.10101000.00000001. 00000000
Broadcast: 192.168.1.255   11000000.10101000.00000001. 11111111
HostMin:   192.168.1.1
HostMax:   192.168.1.254
Hosts/Net: 254             Private (RFC 1918)

Converting an IP address to decimal

Multiply each octet by its place value and add: 192 × 16,777,216 + 168 × 65,536 + 1 × 256 + 1 = 3,232,235,777. In hexadecimal, 192.168.1.1 is 0xC0A80101.

IP address classes (legacy)

Classes are obsolete since CIDR (1993) but still appear in exams.

IPv4 address classes
ClassFirst octetDefault maskNotes
A1 – 126255.0.0.0 (/8)127 is loopback
B128 – 191255.255.0.0 (/16)
C192 – 223255.255.255.0 (/24)
D224 – 239—Multicast
E240 – 255—Reserved

FAQ

How do I convert an IP address to binary?

Convert each octet to an 8-bit binary number. 192 is 11000000, 168 is 10101000, 1 is 00000001, so 192.168.1.1 is 11000000.10101000.00000001.00000001.

What class is 172.16.0.1?

Class B (first octet 128–191). It is also in the private range 172.16.0.0/12.

What is 192.168.1.1 as a number?

3,232,235,777 in decimal, or 0xC0A80101 in hex.

Is 10.x.x.x a public IP?

No. 10.0.0.0/8 is a private range (RFC 1918) and is not routed on the internet.

What is the difference between the IP calculator and the subnet calculator?

The IP calculator focuses on one address: its binary, decimal, class and type. The subnet calculator focuses on the network and on splitting it into subnets.