CIDR / Subnet Calculator

Enter an IP or CIDR notation to get mask, network / broadcast addresses and usable host range — all computed locally.

Computed entirely locally: the address never leaves your browser. A bare IP is treated as /32.

What CIDR notation means

192.168.1.0/24 means the first 24 bits are the network part, leaving 8 host bits — 256 addresses, 254 usable once network and broadcast are excluded. The calculator expands any CIDR into mask, range, wildcard and counts instantly.

Planning subnets

Splitting a /24 into four equal parts gives four /26s of 62 usable hosts each. Keep room for gateway and broadcast, and remember cloud providers reserve additional addresses inside VPC subnets.

Runs entirely locally

The calculation happens in your browser via BigInt arithmetic — nothing is sent to any server, and IPv6 ranges of any size are handled without precision loss.

Need the in-depth Chinese version? Read the full guide.

Related articles

More in the blog index

Frequently asked questions

Why does /24 show 254 usable hosts, not 256?

The first address is the network identifier and the last is broadcast. Neither can be assigned to a host, so a /24 yields 254 usable addresses.

Does it support IPv6?

Yes, with exact BigInt arithmetic — no floating-point shortcuts, so even a /12 IPv6 range computes correctly.

What is the wildcard mask used for?

Wildcard masks (the inverse of netmask) are used in ACL syntax on network gear — 0.0.0.255 matches the last octet range in access lists.