Emojar – free online tools

Subnet Calculator

Enter an IP address with a CIDR prefix (192.168.1.10/24) or a subnet mask to get the network and broadcast address, subnet and wildcard masks, first and last usable host and the number of hosts. Split a network into smaller subnets. IPv6 prefixes are supported too.

This tool runs entirely in your browser.

Loading tool…

How to use the Subnet Calculator

  1. 1Enter an address with a prefix like 10.0.0.5/16, or an address and mask like 10.0.0.5 255.255.0.0.
  2. 2Read the network, broadcast, masks and usable host range.
  3. 3Optionally choose a longer prefix to split the network into equal subnets.

What is the Subnet Calculator?

The prefix length (/24) says how many leading bits identify the network; the rest identify hosts. A /24 leaves 8 host bits: 256 addresses, of which the first (network) and last (broadcast) are reserved, leaving 254 usable hosts. The subnet mask 255.255.255.0 is the same information written as an address, and the wildcard mask 0.0.0.255 — used in Cisco ACLs and OSPF — is its inverse.

The tool also tells you whether an address is private (10/8, 172.16/12, 192.168/16), loopback, link-local, carrier-grade NAT or public. For IPv6 it shows the first and last address of the prefix and the total count; IPv6 has no broadcast address, and /64 is the standard size for a LAN.

Frequently asked questions

How many hosts are in a /24, /25 or /30?

/24: 254 usable hosts, /25: 126, /26: 62, /27: 30, /28: 14, /29: 6, /30: 2. Each extra prefix bit halves the network.

Why does /31 have 2 usable hosts?

RFC 3021 allows /31 on point-to-point links, where no broadcast address is needed, so both addresses are usable.

Is the Subnet Calculator free and private?

Yes. The Subnet Calculator is free, needs no account, and runs entirely in your browser. What you type is never sent to a server or stored.