Network calculator

Turn an IP range into exact CIDR blocks.

Enter the first and last IPv4 or IPv6 address. The calculator counts the range and finds an exact aligned CIDR cover.

Exact

No addresses outside the range

The CIDR list covers the specified range exactly; it does not round outward into neighboring addresses.

Both

IPv4 and IPv6

Family is inferred from the entered endpoints. Mixing IPv4 and IPv6 values is rejected.

Routing

CIDRs are representation

Whether those blocks can or should be routed together depends on the upstream allocation and network design.

Private

Local calculation

The addresses stay in-browser.