Shipping an AI app or agent? Security review in 1 working day: $149 / ₹13,900. Request a review →
AI Review Ready
Home / Free tools / Subnet calculator
Free tool · no sign-up

Subnet calculator IPv4 / CIDR

Network, broadcast, usable hosts, mask and wildcard for any IPv4 address and prefix. Runs entirely in your browser.

How it works

The prefix (/24) says how many leading bits are the network part. The rest are host bits: a /24 has 8 host bits, so 256 addresses. The first is the network address and the last is the broadcast address, leaving 254 for hosts.

Special cases

  • /31: 2 addresses, both usable on point-to-point links (RFC 3021), no broadcast.
  • /32: a single host.
  • Private ranges (RFC 1918): 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16. Carrier-grade NAT uses 100.64.0.0/10 (RFC 6598).

Quick table

PrefixMaskAddressesUsable hosts
/16255.255.0.065,53665,534
/20255.255.240.04,0964,094
/22255.255.252.01,0241,022
/23255.255.254.0512510
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/27255.255.255.2243230
/28255.255.255.2401614
/29255.255.255.24886
/30255.255.255.25242
/31255.255.255.25422
/32255.255.255.25511

Related: what is my IP · IP owner lookup

Sources