What it does
Parses an IPv4 address in CIDR notation — a.b.c.d/prefix — and derives the whole subnet: the network address, the broadcast address, the first and last usable host, the subnet mask, the wildcard mask (the mask's bitwise inverse, used in Cisco ACLs and OSPF) and the count of usable hosts. The prefix is the number of leading 1 bits in the mask, so /24 fixes the first 24 bits as the network and leaves 8 bits for hosts.
How it works
The address and mask are treated as 32-bit integers. The network address is ip AND mask; the broadcast is the network with every host bit set to 1. The usable host range is everything between those two, which is why a block of n addresses normally offers n − 2 usable hosts: one address is reserved for the network identifier and one for broadcast.
Worked examples
192.168.1.0/24→ network192.168.1.0, broadcast192.168.1.255, mask255.255.255.0, hosts192.168.1.1–192.168.1.254(254 usable).10.0.0.5/30→ network10.0.0.4, broadcast10.0.0.7, just 2 usable hosts (.5and.6) — the classic sizing for a router-to-router link.
Gotchas
- Any host address works as input:
192.168.1.73/24is normalised to the192.168.1.0/24network — the tool does not require you to type the network address. /31is special (RFC 3021): point-to-point links use both addresses, so it reports 2 usable hosts, and/32describes a single host.- This is IPv4 only (prefix 0–32); IPv6 uses a different 128-bit model.
When to use it
Sizing a subnet, writing firewall or ACL mask rules, filling in a VPC/VLAN plan, or checking whether an IP falls inside a given range. To convert a mask or octet to binary, use the Number Base converter.
Privacy
Everything is computed locally in your browser; no address or range is uploaded.