NaaB Tools Fast. Private. Browser-native.
GitHub

Subnet / CIDR Calculator

Network, broadcast, masks, host range, binary mask, and RFC classification from any IPv4 CIDR block. Optionally subdivide into smaller subnets (preview of up to 256 blocks).

Enter a CIDR block above and click Calculate Subnet — results appear here.

IPv4 Subnet & CIDR Cheat Sheet

Common subnet masks, usable host capacities, and RFC 1918 private network allocations.

Prefix Subnet Mask Total IPs Usable Hosts Common Use Case
/32255.255.255.25511 (Host route)Single host / Loopback
/30255.255.255.25242Point-to-point link
/29255.255.255.24886Small office / DMZ
/28255.255.255.2401614Small subnet
/27255.255.255.2243230Medium departmental subnet
/26255.255.255.1926462Departmental subnet
/25255.255.255.128128126Large departmental subnet
/24255.255.255.0256254Standard LAN (Class C)
/23255.255.254.0512510Dual Class C supernet
/20255.255.240.04,0964,094Enterprise campus subnet
/16255.255.0.065,53665,534Large enterprise (Class B)
/8255.0.0.016,777,21616,777,214ISP / Cloud block (Class A)

Special & Private IPv4 Ranges

Block Scope Standard / RFC Purpose
10.0.0.0/8Private LANRFC 1918Enterprise private intranets
172.16.0.0/12Private LANRFC 1918Mid-size private networks (172.16 - 172.31)
192.168.0.0/16Private LANRFC 1918Home / SOHO local networks
127.0.0.0/8HostRFC 1122Loopback (localhost)
169.254.0.0/16SubnetRFC 3927Link-local (APIPA autoconfiguration)
100.64.0.0/10ISPRFC 6598Carrier-Grade NAT (CGNAT)
224.0.0.0/4MulticastRFC 5771Multicast group communication

Frequently Asked Questions

How do I calculate a subnet?

Enter a block like 192.168.1.0/24 and click Calculate Subnet — strict notation is enforced, so 192.168.1.0/24foo is rejected.

How do I split a network?

Enter a longer prefix such as /26 in the split field to preview up to 256 subnets with usable ranges and broadcasts.

How many addresses does a block hold?

Two to the power of host bits — 256 for a /24 — minus network and broadcast, except /31 with two usable and /32 with one.

Why do /31 and /32 show no broadcast?

They are point-to-point and host routes (RFC 3021) and have no broadcast address by design.

What is the wildcard mask for?

The inverse of the subnet mask, used in firewall and ACL rules — it is shown next to the regular mask.

Which special ranges are detected?

Private (RFC 1918), loopback, link-local, carrier-grade NAT, documentation, benchmarking, multicast and reserved ranges are named next to the class.

Does it support IPv6?

No — this calculator handles IPv4 CIDR blocks only.

Copied!