ToolerCat / Subnet / CIDR Calculator

Subnet / CIDR Calculator

Type an IP with a prefix or netmask — get network, hosts and masks for IPv4 and IPv6.

Try:

Validate an IP address → · What is my IP? → · CIDR cheat sheet →

How to read the result

The prefix (/24) says how many leading bits belong to the network. The rest is for hosts: a /24 has 28 = 256 addresses, of which 254 are usable — the first is the network address and the last is the broadcast. A /31 is used for point-to-point links (both addresses usable, RFC 3021), a /32 is a single host. IPv6 has no broadcast, so every address in the prefix counts.

Private and special ranges

CIDRUse
10.0.0.0/8Private network (RFC 1918)
172.16.0.0/12Private network (RFC 1918)
192.168.0.0/16Private network (RFC 1918)
100.64.0.0/10Carrier-grade NAT
127.0.0.0/8Loopback
169.254.0.0/16Link-local
fc00::/7IPv6 unique local (private)
fe80::/10Link-local

FAQ

Can I enter a netmask instead of a prefix?

Yes: 10.0.0.1 255.255.255.0, 10.0.0.1/255.255.255.0 or even a wildcard mask 0.0.0.255 as used in Cisco ACLs.

How do I turn an IP range into CIDR?

Fill in “IP range → CIDR”: the tool returns the smallest list of blocks that covers exactly that range — handy for firewall rules and allowlists.

How many /24 networks are in a /16?

256. Use “Split into subnets” to list them; see also the CIDR cheat sheet.

More about this tool

Calculate IPv4 and IPv6 subnets from a CIDR: network and broadcast addresses, usable host range, mask and number of hosts.

Network engineers and DevOps teams use it to plan VPCs, firewall rules and IP allocations.