← All tools

IPv4 Address Classes Reference

Classes A–E with ranges, default masks, network/host counts, plus private and special ranges.

ClassFirst octetDefault maskNetworksHosts/netUse
A1–126255.0.0.0 (/8)12616,777,214Huge networks, legacy unicast
B128–191255.255.0.0 (/16)16,38465,534Medium networks, legacy unicast
C192–223255.255.255.0 (/24)2,097,152254Small LANs, legacy unicast
D224–239N/A (multicast)Multicast groups, no host assignment
E240–255N/A (reserved)Experimental, reserved

Private (RFC1918): 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16

Special: 127.0.0.0/8 loopback · 169.254.0.0/16 APIPA · 224.0.0.0/4 multicast

How to read the result

Class is set by the first octet. A/B/C are unicast with default /8, /16, /24 masks. D is multicast, E is reserved. 127.x loopback and 0 are excluded from Class A.

Example

Class C 192.168.1.0/24 → 254 usable hosts.

FAQ

What are the private ranges?

RFC1918: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16. Not routable on the public internet.

What is APIPA?

169.254.0.0/16 self-assigned addresses when DHCP fails.