About this tool
Two IPv4 helpers in one page: turn a CIDR block into its first and last address, or collapse a start-to-end IP range into the smallest list of CIDR blocks that covers it exactly. Everything is calculated in your browser.
In CIDR mode, type something like 10.0.0.0/22 and you get the first address, the last address and the total number of addresses. The address you type does not have to be the network address: bits beyond the prefix are masked off, so 10.0.0.77/22 gives the same block as 10.0.0.0/22. The first and last values are the network and broadcast addresses, and the total includes them, so it is not a count of usable hosts. Prefixes from /0 to /32 are accepted.
In range mode, enter a start and end address. An arbitrary range seldom lines up with one power-of-two block, so the result is a list with one aligned CIDR per line. If the end is lower than the start, the two are swapped for you.
Only IPv4 in dotted-decimal form is supported; IPv6, netmask notation and leading-zero shortcuts are reported as invalid. Nothing is sent anywhere.