IPv4 subnet calculator
Calculate the network, broadcast, usable address range and host count from an IPv4 address with a CIDR prefix or subnet mask.
Convert an inclusive IPv4 or IPv6 address range into the smallest set of CIDR blocks, with exact address counts.
Prepare address ranges for a firewall rule or inventory without accidentally including neighboring addresses.
Enter the first and last addresses from the same IP family. Both endpoints are included, and the first address must not exceed the last. Results update automatically and show each block’s CIDR, boundaries and address count. Copy or download the full block list.
IPv4 and IPv6 ranges use integer arithmetic without enumerating individual addresses. The blocks cover exactly the requested range; mixed address families are rejected. This is a local calculation and does not check whether addresses are reachable or available to assign.
Yes, both endpoints are included. They must belong to the same IP family and appear in increasing order. Calculation does not test reachability or assignment availability.
CIDR blocks must align with binary boundaries and have power-of-two sizes. A range such as 192.0.2.1–192.0.2.6 cannot be represented by one exact block. Use all returned blocks together; replacing them with one broader prefix would include addresses outside your range.
Your choice about analytics
We use Umami to measure page visits. Analytics is optional, and your tools work either way.
Your current setting allows analytics.
Your current setting does not allow analytics.
The analytics service has changed. Refresh the page after finishing your current work to apply the new settings.
Your browser is sending a Do Not Track or Global Privacy Control signal. Analytics will remain off.
We use Umami to understand which pages people visit and how they find this site. You can decline or change your choice at any time. All site features will still work.
Your choice is saved in this browser for six months. Analytics does not upload files or content you enter in our tools.
Privacy Policy
Comments
0