Skip to content

Install ALink Tools

Free browser tools for images, PDFs, media, text and web checks. Most tools process files locally on your device.

  1. Tap the Share button in the Safari toolbar.
  2. Scroll down and tap Add to Home Screen.
  3. Tap Add. ALink Tools then opens from your Home Screen like an app.

IP Subnet Calculator

Enter an IPv4 or IPv6 address with a prefix, or an IPv4 address and a dotted mask. This page reports the network block, usable hosts, and optional overlap with another address. Calculations stay in this browser.

Runs in your browserRuns in your browserIPv4 and IPv6
1

Address and prefix

Limits

  • CIDR arithmetic only; not a DNS, WHOIS, or geolocation lookup.
  • IPv4 dotted masks must be contiguous (for example 255.255.255.0, not 255.0.255.0).
  • IPv6 has no broadcast address; the first and last addresses in the prefix are reported instead.
2

Subnet details

Network (CIDR)
—

How to use Subnet Calculator

  1. Enter an addressType an IPv4 or IPv6 address. You can include a prefix, such as 192.0.2.10/24 or 2001:db8::1/64.
  2. Optionally set the maskFor IPv4, you may enter a dotted mask such as 255.255.255.0 or a prefix length such as 24. If you fill this field, it overrides a prefix typed in the address.
  3. Compare if neededOptionally enter a second address or prefix to see whether it sits inside this subnet or overlaps it.

Limits and how it works

  • CIDR arithmetic only; not a DNS, WHOIS, or geolocation lookup.
  • IPv4 dotted masks must be contiguous (for example 255.255.255.0, not 255.0.255.0).
  • IPv6 has no broadcast address; the first and last addresses in the prefix are reported instead.

How the subnet is calculated

IPv4 results follow classless addressing in RFC 4632. The network address is the input address bitwise-ANDed with the prefix mask. For prefixes /0–/30, the broadcast address is the last address in the block (host bits all set), and the usable host range excludes the network and broadcast addresses. A /31 prefix is a point-to-point link: both addresses are usable and there is no broadcast address (RFC 3021). A /32 prefix is a single-host route.

IPv6 has no broadcast address (RFC 4291). This page reports the first and last addresses in the prefix and the total number of addresses, which is 2^(128 − prefix). A /127 prefix is the IPv6 point-to-point prefix (RFC 6164).

This is a local calculator. It does not query DNS, geolocation, or registration databases. For address lookups, use IP Lookup or IP Whois. Documentation examples on this page use the TEST-NET-1 block 192.0.2.0/24 (RFC 5737) and the IPv6 documentation prefix 2001:db8::/32 (RFC 3849).

Frequently asked questions

Is this the same as IP Lookup?

No. IP Lookup and IP Whois identify or describe an address using network data. This page only does CIDR arithmetic: mask, network, broadcast, and host counts. Nothing is sent to a server.

How many usable hosts are in a /24?

A /24 IPv4 prefix has 256 addresses. The usable host range excludes the network and broadcast addresses, so there are 254 usable hosts. A /31 has 2 usable addresses and no broadcast (RFC 3021). A /32 is a single host.

What is a wildcard mask?

For IPv4, the wildcard mask is the bitwise NOT of the subnet mask (host bits set, prefix bits clear). Access-control lists often use this form. IPv6 results do not include a wildcard mask.

Related tools

All tools