Subnet

tools.bytesdust.com/subnet-calculator
$

IPv6

expand · compress · subnet
$

IPv6 analysis: expansion and compression, address-type detection (loopback, ULA, link-local, multicast, 6to4, Teredo, IPv4-mapped), and with a /prefix the network range as BigInt math — first and last address plus the total count (IPv6 has no network/broadcast split).

IP range → CIDR

supernetting / summarization
$
$

The smallest list of CIDR blocks that covers exactly this range — no more, no less. Each address's own trailing zero bits cap how large a block can start there, same logic a router uses to summarize routes.

What is CIDR?

CIDR notation writes a network as an address plus a prefix length, like 10.0.0.0/24: the prefix says how many of the 32 bits identify the network, the rest identify hosts. A /24 leaves 8 host bits (256 addresses), a /16 leaves 16 (about 65 thousand).

The network address is the address ANDed with the prefix mask; the broadcast address has all host bits set. Both are reserved, so usable hosts are 2(32 − prefix) − 2 — except /31 point-to-point links (RFC 3021) and /32 single hosts, which use every address.

The wildcard mask is the inverse netmask used in router ACLs; the IP class is the pre-CIDR vocabulary; and an address is private when it falls in the RFC 1918 ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16).

Common prefix lengths

CIDRNetmaskAddressesHosts
/80.0.0.25516,777,21616,777,214
/160.0.255.25565,53665,534
/200.240.255.2554,0964,094
/220.252.255.2551,0241,022
/230.254.255.255512510
/240.255.255.255256254
/25128.255.255.255128126
/26192.255.255.2556462
/27224.255.255.2553230
/28240.255.255.2551614
/29248.255.255.25586
/30252.255.255.25542