Network details
Slider and number field stay in sync. 0–32.
Formula
address = ((a×256+b)×256+c)×256+d · mask = high /n bits set · network = address & mask · broadcast = network + 2^(32−n) − 1 · usable = 2^(32−n) − 2
Subnet breakdown
Enter an IPv4 address such as 192.168.1.10 and a CIDR prefix (0–32) to get the subnet mask, wildcard mask, network and broadcast addresses, the first and last usable hosts, address counts, the address class and a binary breakdown.
How the figures are worked out
The address is converted to a single unsigned 32-bit integer, then masked: the network address is the address AND the mask, and the broadcast is the network plus 2^(32−prefix) − 1. The traditional usable-host formula (total − 2) assumes a network and broadcast address, so it is not applied to /31 and /32 — those cases are called out explicitly instead of showing a misleading number. RFC 1918 private ranges (10/8, 172.16/12, 192.168/16) and RFC 6598 CGNAT space (100.64/10) are recognised, but a real network may have extra rules (DHCP pools, gateways, IPv6-style reservations), so confirm against your routing configuration before deploying. Everything here is computed locally in your browser — no network request is made.
Results update live as you type.