IP Calculator

Enter any IPv4 address with optional prefix length to get full network details, binary representation, and subnet information.

TypePrivate
ClassC
First octet range192–223
192.168.0.0/16 — RFC 1918

Binary breakdown

11000000
192
10101000
168
00000001
1
01100100
100
■ Network (24 bits)■ Host (8 bits)
11000000101010000000000101100100/24

Network

Network address192.168.1.0
Broadcast address192.168.1.255
First usable host192.168.1.1
Last usable host192.168.1.254
Total hosts256
Usable hosts254

Masks

Subnet mask255.255.255.0
Wildcard mask0.0.0.255
Mask (hex)0xFFFFFF00
Prefix length/24
IP (decimal)3232235876
IP (hex)0xC0A80164

Octet breakdown

OctetDecimalHexBinary
Octet 1192C011000000
Octet 2168A810101000
Octet 310100000001
Octet 41006401100100

Anatomy of an IPv4 Address

Every IPv4 address contains 32 binary bits divided into two logical sections: the Network Portion (which designates the routing prefix) and the Host Portion (which designates the individual network interface).

When an IP is assigned a subnet mask (such as 192.168.1.100/24), the calculator computes four primary structural coordinates:

  • Network Address (ID): The first address of the block (e.g. 192.168.1.0). All host bits set to 0.
  • First Usable Host: Network Address + 1 (e.g. 192.168.1.1), commonly configured on default gateway routers.
  • Last Usable Host: Broadcast Address - 1 (e.g. 192.168.1.254).
  • Broadcast Address: The final address of the block (e.g. 192.168.1.255). All host bits set to 1.

Historical Classful IP Addressing Scheme

Before CIDR was standardized in 1993, IPv4 address allocations were strictly bound to five historical classes based on the leading bits of the first octet:

ClassLeading BitsFirst Octet RangeDefault Subnet MaskTotal NetworksHosts per Network
Class A0...1 – 126255.0.0.0 (/8)12816,777,214
Class B10...128 – 191255.255.0.0 (/16)16,38465,534
Class C110...192 – 223255.255.255.0 (/24)2,097,152254
Class D1110...224 – 239Unassigned (Multicast)N/AMulticast groups
Class E1111...240 – 255Unassigned (Experimental)N/AIETF Research reserve

RFC 1918 & Special-Purpose IPv4 Address Blocks

Address BlockPrefix LengthScope / SpecificationUsage & Purpose
10.0.0.0 – 10.255.255.255/8RFC 1918 PrivateEnterprise private LANs, Cloud VPCs, Data centers
172.16.0.0 – 172.31.255.255/12RFC 1918 PrivateDocker container bridges, Mid-sized corporate subnets
192.168.0.0 – 192.168.255.255/16RFC 1918 PrivateHome Wi-Fi routers, SOHO local subnets
127.0.0.0 – 127.255.255.255/8RFC 1122 LoopbackLocalhost internal IPC and software testing
169.254.0.0 – 169.254.255.255/16RFC 3927 Link-LocalAPIPA auto-assignment when DHCP server is unreachable
100.64.0.0 – 100.127.255.255/10RFC 6598 Carrier NATShared address space for ISP Carrier-Grade NAT

Frequently Asked Questions

What is the difference between Classful and Classless (CIDR) IP addressing?

Classful addressing (RFC 791) originally grouped IPv4 into fixed Classes (A = /8, B = /16, C = /24) based on the first octet. Classless Inter-Domain Routing (CIDR, RFC 1519) abolished these rigid boundaries, allowing subnets to be partitioned at any bit prefix from /1 to /32 for efficient address allocation.

What are RFC 1918 Private IP addresses?

RFC 1918 reserves three address blocks for private internal networks: 10.0.0.0/8 (10.0.0.0 - 10.255.255.255), 172.16.0.0/12 (172.16.0.0 - 172.31.255.255), and 192.168.0.0/16 (192.168.0.0 - 192.168.255.255). These addresses are never routed over the public internet and require NAT (Network Address Translation).

What is an APIPA (Automatic Private IP Addressing) address?

An APIPA address (169.254.0.0/16, RFC 3927) is a link-local address that client operating systems (Windows, macOS) automatically self-assign when they fail to obtain an IP configuration from a local DHCP server.

What is the difference between the Network ID and the Broadcast address?

The Network ID is the very first address in a subnet where all host bits are binary 0, representing the entire network segment in routing tables. The Broadcast address is the very last address where all host bits are binary 1, used to send a single packet to every host on that local subnet.

What is Carrier-Grade NAT (CGNAT) 100.64.0.0/10?

Defined in RFC 6598, 100.64.0.0/10 (100.64.0.0 - 100.127.255.255) is reserved for ISPs to perform Carrier-Grade NAT (Large-Scale NAT), enabling internet service providers to connect thousands of residential customers using shared public IPv4 addresses without colliding with private RFC 1918 networks.