Guide

THE TOOLBOX / NETWORKING & INFRASTRUCTURE

Calculate CIDR subnets
and split IP blocks.

Compute IPv4 and IPv6 network boundaries, broadcast addresses, netmasks, ACL wildcard masks, RFC 1918 scopes, and child VPC subnet allocations locally.

CIDR BLOCK & BIT BOUNDARYIPv4 · /24 · Class C
Network (24b)Host (8b)
192
11000000
168
10101000
1
00000001
0
00000000
Network Address192.168.1.0
Broadcast / Last IP192.168.1.255
Usable Host Range192.168.1.1 – 192.168.1.254
Usable Hosts254AWS / GCP / Azure (-5): 251
Subnet Mask255.255.255.0
Wildcard Mask (ACL)0.0.0.255
Total Addresses256
Address ScopeRFC 1918 Private Network
Match: 192.168.1.42 is inside 192.168.1.0/24
128-bit BigInt IP math
SUBNET SPLITTER & EXPORTS4 × /26 subnets

Ready. Enter an IPv4 or IPv6 CIDR block, drag the prefix slider, or click any child subnet to drill down.

Binary Netmask & Reverse DNS11111111.11111111.11111111.00000000PTR: 1.168.192.in-addr.arpa · IPv4-mapped: ::ffff:c0a8:100
Child CIDR (Click to zoom)First IPLast IPUsable
192.168.1.0192.168.1.6362
192.168.1.64192.168.1.12762
192.168.1.128192.168.1.19162
192.168.1.192192.168.1.25562

THE DETAILS

RFC 4632 IPv4/IPv6 CIDR arithmetic, VPC subnetting, and prefix reference.

1. Step-by-Step Workflow

Enter any IPv4 or IPv6 CIDR block (such as 192.168.1.0/24 or 2001:db8::/48) or select a preset for VPC (/16), LAN (/24), or K8s Pod (/20). Adjust the Split Into Child Prefix number to subdivide the parent block into up to 64 equal child subnets.

2. RFC 4632, RFC 1918 & RFC 3021 Compliance

Built on exact 32-bit and 128-bit BigInt bitwise masks per IETF RFC 4632 (CIDR) and RFC 4291 (IPv6), the calculator automatically classifies RFC 1918 private networks, RFC 6598 Carrier-Grade NAT (100.64.0.0/10), and RFC 3021 /31 point-to-point links.

3. Reverse DNS PTR & IPv4-Mapped IPv6

Alongside standard netmasks and wildcard masks, the right panel computes the binary netmask bit pattern, reverse DNS in-addr.arpa / ip6.arpa zone prefix, and dual-stack IPv4-mapped IPv6 representation (::ffff:xxxx:xxxx).

IPv4 CIDR Reference & CLI Matrix

CIDR PrefixSubnet MaskWildcard MaskTotal IPsUsable Hosts
/16255.255.0.00.0.255.25565,53665,534
/20255.255.240.00.0.15.2554,0964,094
/24255.255.255.00.0.0.255256254
/26255.255.255.1920.0.0.636462
/28255.255.255.2400.0.0.151614

Common Subnetting Pitfalls & Cloud VPC Gotchas

Cloud VPC Reserved Addresses (AWS, GCP, Azure)

While standard RFC 4632 reserves 2 addresses per subnet (network and broadcast), AWS, Azure, and GCP reserve 5 addresses per VPC subnet (including the router, DNS, and future-use IPs), so a /24 in AWS provides 251 usable IPs rather than 254.

Non-Zero Host Bits in CIDR Input

Passing an interface IP like 192.168.1.42/24 is valid CIDR notation; the bitwise AND operation (ip & mask) normalizes the network boundary to 192.168.1.0/24 automatically.

Overlapping Docker & VPN Subnets

Docker’s default bridge uses 172.17.0.0/16, which often collides with corporate VPNs in 172.16.0.0/12. Allocate non-overlapping slices from 10.x.0.0/16 when designing multi-region VPC peering.

IPv6 Double-Colon (::) Compression

Per RFC 5952, the double-colon (::) zero-compression shorthand can appear at most once in an IPv6 address because multiple :: tokens make the 128-bit expansion ambiguous.

Frequently Asked Questions

How do you calculate usable hosts in an IPv4 CIDR block?

An IPv4 address has 32 bits. A /n prefix leaves (32 - n) host bits, producing 2^(32 - n) total IPv4 addresses. For prefixes from /0 through /30, subtract 2 (the network address and broadcast address) to get usable host IPs. Under RFC 3021, a /31 point-to-point link has 2 usable hosts, and a /32 host route has 1.

What is the difference between a subnet mask and a wildcard mask?

A subnet mask uses 1 bits for the network prefix and 0 bits for the host portion (for example, 255.255.255.0 for /24). A wildcard mask is the bitwise inverse (~netmask, or 0.0.0.255 for /24) used in Cisco ACLs, OSPF network statements, and firewall rules.

How do I split a /16 or /24 VPC network into smaller child subnets?

Enter your parent block (such as 10.0.0.0/16 or 192.168.1.0/24) and increase the Split Into Child Prefix input (for example, /18 for 4 subnets or /26 for 4 subnets). The table displays the exact CIDR, first IP, last IP, and usable host count for each child slice.

Which IPv4 address ranges are reserved for private networks under RFC 1918?

IETF RFC 1918 reserves three private IPv4 ranges that are not routed on the public internet: 10.0.0.0/8 (10.0.0.0–10.255.255.255), 172.16.0.0/12 (172.16.0.0–172.31.255.255), and 192.168.0.0/16 (192.168.0.0–192.168.255.255).

Does the calculator support 128-bit IPv6 CIDR prefixes?

Yes. Passing any compressed or expanded IPv6 block (such as 2001:db8::/48 or fe80::/64) switches the engine to 128-bit BigInt arithmetic, calculating the compressed network address, last address, scope, and child IPv6 subnet splits.