Calculate network boundaries, host counts, and masks from a CIDR prefix.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Address and prefix become fixed-width bits; the mask yields network and broadcast boundaries, host count, wildcard mask, and range. IPv4 and IPv6 use separate widths and special-address rules.
192.168.1.0/24
CIDR: 192.168.1.0/24 Network address: 192.168.1.0 Broadcast address: 192.168.1.255 First IP: 192.168.1.0 Last IP: 192.168.1.255 Total addresses: 256 Subnet mask: 255.255.255.0 Wildcard mask: 0.0.0.255
Routers, firewalls, and IPAM systems calculate CIDR blocks.