CIDR (Classless Inter-Domain Routing) notation compresses an IP range into an address and a prefix, like 192.168.1.0/24. This tool expands any IPv4 CIDR block into its full details: the network address, broadcast address, usable host range, subnet mask, and the total and usable address counts. It is built for network engineers planning subnets and anyone decoding a firewall or routing rule.
How it works
The prefix is the number of leading bits that form the network portion; the rest address hosts. The tool converts the IP to a 32-bit integer, builds a mask with the top prefix bits set, then derives:
- Network = IP AND mask (the lowest address in the block)
- Broadcast = network OR (NOT mask) (the highest address)
- Total addresses = 2^(32 − prefix)
- Usable hosts = total − 2, since the network and broadcast addresses are reserved
/31 (point-to-point links) and /32 (single host) are special cases with 2 and 1 usable addresses respectively.
Example
For 192.168.1.0/24:
| Field | Value |
|---|---|
| Network | 192.168.1.0 |
| Broadcast | 192.168.1.255 |
| Subnet mask | 255.255.255.0 |
| Usable range | 192.168.1.1 – 192.168.1.254 |
| Total / usable | 256 / 254 |
All calculations are bitwise integer maths performed locally in your browser.