Compute network ID, broadcast address, usable host range, wildcard mask, binary breakdown for IPv4, and IPv6 network prefix, address range, total addresses. Supports CIDR notation for both protocols.
In modern networking, subnetting divides a single IP network into smaller logical subnetworks. For IPv4, a subnet mask defines the network portion; for IPv6, the prefix length (CIDR) serves the same purpose. This calculator delivers instant network IDs, address ranges, and critical details for both protocols.
IPv4: Network Address = IP & Mask, Broadcast = Network | ~Mask, Usable hosts = 2(32 - prefix) - 2 (except /31, /32)
IPv6: Network Prefix = IP & (Mask128), Address Range = [Network, Network + (2(128-prefix) - 1)]
IPv4: Given an IPv4 address and mask, the tool performs bitwise AND for network ID, sets host bits to 1 for broadcast, and derives usable range.
IPv6: The IPv6 address is converted to a 128-bit integer, masked with the prefix length to obtain the network prefix, then the last address is computed by adding (2(128-prefix) - 1). All calculations are done using native BigInt for exactness.
An organization receives 2001:db8:abcd::/48. They need /64 subnets for each department. Using our IPv6 calculator, they quickly determine that 2(64-48) = 65536 subnets are available, and each /64 contains 264 addresses — more than enough for any LAN.
When designing a VPC with CIDR 172.31.0.0/16, subnets require /24 ranges. Using this tool, engineers can compute the number of available subnets (256) and precise host counts per subnet — critical for auto-scaling groups.