NETWORKING · FREE TOOL

IPv4 subnet calculator

Cover an IPv4 range with CIDRs ↓

Find a subnet’s mask, address range and conventional host count.

On-device processing · No account · No ads

Files and entered values are processed in your browser, without uploading them to Toolfred. Our tools do not automatically save your work or send it to embedded analytics.

Pages, libraries and shared reference files still download from our host. Downloads you save, browser recovery and hosting logs have separate retention. Local processing is not a guarantee of anonymity or secure deletion.

See where data goes →

How this tool works

The prefix keeps the first n bits; the remaining bits describe the range. 192.0.2.17/24 belongs to 192.0.2.0/24, with mask 255.255.255.0 and 256 addresses. Conventional subnet arithmetic leaves 254 host addresses, .1 through .254.

A /31 is treated as two point-to-point endpoints under RFC 3021; /32 is one host route. For other prefixes, the reported conventional host range excludes the first and last addresses. Special-purpose ranges, local policy and device support can further restrict actual use. This is arithmetic, not an allocation or routing recommendation. See CIDR, RFC 4632.

MORE WITH THIS TOOL

Cover an IPv4 range with CIDRs

Find the smallest aligned CIDR list covering two inclusive IPv4 endpoints.

Cover an IPv4 range with CIDRs inputs

Preparing local controls. Reload if they stay inactive.

RESULT

Enter your inputs to see the result.

IPv4 arithmetic only. No IP lookup, geolocation, reputation check, scan or network request. Address totals do not imply usable hosts. Method / format reference. Reviewed October 23, 2026. Working inputs stay in this page; downloads and hosting request logs have separate retention.