IPv4 Subnet Calculator
Calculate IPv4 subnets, convert address formats and collapse ranges into minimal CIDRs.
Runs locally
Loading tool…
Loading tool…
How to use
Choose Subnet for an address such as 192.168.1.10/24, or enter an IP and a separate prefix or dotted mask. The result includes network, broadcast, wildcard, usable hosts and binary views; /31 follows point-to-point semantics and /32 represents one host. Converter shows the 32-bit decimal, hexadecimal, binary and IPv4-mapped IPv6 forms. Range to CIDR accepts start-end and returns the smallest exact set of CIDR blocks without enumerating every address.
FAQ
How many usable hosts are in a /24?
Traditionally 254: 256 total addresses minus the network and broadcast addresses.
Why does a /31 show two hosts?
RFC 3021 permits both addresses on point-to-point links, so neither is reserved as network or broadcast there.