Skip to main content
HandyWeb

IP Subnet Calculator (CIDR)

Work out the network, broadcast, mask, host range, and address count for IPv4 and IPv6, and see whether an address is private or reserved.

Runs on your device.

In IPv4, the network and broadcast addresses are not hosts, except in /31 and /32. IPv6 has no broadcast address.

How to Use It

  1. Enter the address and the prefix (such as /24) or the mask.
  2. Read the network, the host range, and the masks.

Questions and Answers

How many hosts does a /24 have?

256 addresses, of which 254 are hosts; the network and broadcast addresses are left out.

Good to Know

One subnet at a time; splitting into smaller subnets and merging ranges are not supported. Special range names come from the IANA lists; the tool does not know who owns an address.

Source code of this toolReport a problem on GitHub