IPv4 & IPv6 network, host range, mask and CIDR calculator
| Network | Usable host range | Broadcast |
|---|
An IPv4 address is 32 bits. The prefix length (CIDR, e.g. /24) says how many leading bits identify the network; the remaining bits identify hosts. A /24 leaves 8 host bits: 28 = 256 addresses, minus the network and broadcast addresses = 254 usable hosts. /31 (point-to-point, RFC 3021) and /32 (single host) have no reserved addresses.
| Class | Range | Default | Private |
| A | 0.0.0.0 โ 127.255.255.255 | /8 | 10.0.0.0/8 |
| B | 128.0.0.0 โ 191.255.255.255 | /16 | 172.16.0.0/12 |
| C | 192.0.0.0 โ 223.255.255.255 | /24 | 192.168.0.0/16 |
| D | 224.0.0.0 โ 239.255.255.255 | Multicast | |
| E | 240.0.0.0 โ 255.255.255.255 | Reserved | |