Subnet Calculator
Calculates everything a network address tells you for IPv4 and IPv6, and splits a block into smaller subnets by prefix length, the number of subnets you need, or the number of hosts each must hold. Handles /31 point-to-point links and /32 host routes the way the RFCs define them.