Free IPv4 and IPv6 subnet calculator. Calculate CIDR prefixes, usable host ranges, AWS subnets, and binary netmasks with instant client-side processing.
Loading tool...
Master IPv4 subnetting, Classless Inter-Domain Routing (CIDR), subnet masks, network vs broadcast addresses, and VPC IP allocation for cloud engineers.
The Subnet Calculator performs dual-stack IPv4 and IPv6 Classless Inter-Domain Routing (CIDR) calculations, AWS subnet calculator planning, cloud VPC subnetting, CIDR prefix visualization, subnet division planning, and Variable Length Subnet Masking (VLSM) allocation with guaranteed zero address overlap.
Executes bitwise operations on 32-bit binary IPv4 integers and 128-bit IPv6 prefixes. Calculates network ID, broadcast address, first and last usable IPs, total and usable host capacities, wildcard masks, and RFC classification (RFC 1918 private, RFC 6598 CGNAT, RFC 5737 doc, RFC 3927 APIPA, RFC 4291 IPv6). The VLSM engine sorts subnets by size and guarantees contiguous, non-overlapping block allocation in local memory.
IP: 192.168.1.50, CIDR: /24Netmask: 255.255.255.0 | Network: 192.168.1.0 | Usable: 192.168.1.1 - 192.168.1.254 | Broadcast: 192.168.1.255 | Total Hosts: 254Provides 256 total IP addresses, reserving the first address for the network ID and the last for broadcast.
VPC CIDR: 10.0.0.0/16 | Subnet CIDR: 10.0.1.0/24Netmask: 255.255.255.0 | Total IPs: 256 | AWS Usable IPs: 251 (10.0.1.4 - 10.0.1.254)Calculates AWS VPC subnetting allocations, accounting for AWS 5 reserved IP addresses: .0 (Network), .1 (VPC Router), .2 (DNS), .3 (Future use), and .255 (Broadcast).
Yes. The engine seamlessly calculates IPv4 subnets (with network, broadcast, usable host ranges, and wildcard masks) as well as 128-bit IPv6 prefixes, SLAAC allocations, and address classifications.
Yes! When designing AWS VPCs, enter your VPC CIDR (such as 10.0.0.0/16) and use the Subnet Planner or VLSM mode to partition non-overlapping public and private subnets (such as /24 or /28 blocks) across multiple Availability Zones.
VLSM is a network design methodology that allocates subnets of different sizes according to specific host requirements, minimizing wasted IP addresses compared to fixed-length subnetting.
For standard IPv4 subnets, usable hosts = (2^(32 - CIDR)) - 2. Two addresses are reserved: the network identifier and the broadcast address (except /31 point-to-point and /32 host routes per RFC 3021).