CIDR to IP Range

Expand a CIDR block to its network, broadcast and host range.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

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:

FieldValue
Network192.168.1.0
Broadcast192.168.1.255
Subnet mask255.255.255.0
Usable range192.168.1.1 – 192.168.1.254
Total / usable256 / 254

All calculations are bitwise integer maths performed locally in your browser.

Ad placeholder (rectangle)