CIDR / Subnet Calculator

Enter a CIDR block or an IP plus subnet mask to get the network address, broadcast address, usable host range, and address counts — including how many addresses AWS and GCP actually reserve out of the "textbook" usable count. Supports IPv4 and IPv6. Everything runs in your browser; nothing is looked up or sent anywhere.

Two IPs → smallest covering CIDR

Enter two addresses of the same family (both IPv4 or both IPv6) to find the smallest CIDR block that contains both.