How to use this calculator
Find the IPv6 network address, final address, and exact address count for a CIDR prefix.
- Enter IPv6 hexadecimal address, CIDR prefix length. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
IPv6 subnet network and range explained
Mask the 128-bit IPv6 address at the selected prefix length to identify the resulting network and address range.
A numerical walkthrough
IPv6 hexadecimal address = 2001:db8::1234; CIDR prefix length = 64.
- Network address: 2001:db8::
- Final address: 2001:db8::ffff:ffff:ffff:ffff
- Address count: 18446744073709551616
The address belongs to 2001:db8::/64; its final address is 2001:db8::ffff:ffff:ffff:ffff.
The model behind the numbers
128-bit prefix masking
The CIDR prefix selects the network bits; the remaining bits define the address range within the subnet. Hexadecimal IPv6 syntax only; embedded dotted IPv4, zone identifiers, routing policy, and address assignment rules are excluded..
What to enter
a— IPv6 hexadecimal address- A single IPv6 address in hexadecimal notation. The prefix masks host bits; the address need not be the network address.
p— CIDR prefix length- Number of leading network bits, from 0 through 128; the remaining bits span the subnet address range.
Interpreting the result
Hexadecimal IPv6 syntax only; embedded dotted IPv4, zone identifiers, routing policy, and address assignment rules are excluded.
Frequently asked questions
Is the last address a broadcast address?
No, IPv6 does not use IPv4-style broadcast addressing.
Does /128 work?
Yes, it represents one address.
Are huge counts rounded?
No, counts use exact BigInt arithmetic.
How do I use the IPv6 subnet network and range calculator?
Enter IPv6 hexadecimal address, CIDR prefix length. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of IPv6 subnet network and range?
IPv6 hexadecimal address = 2001:db8::1234; CIDR prefix length = 64. Network address: 2001:db8:: Final address: 2001:db8::ffff:ffff:ffff:ffff Address count: 18446744073709551616 The address belongs to 2001:db8::/64; its final address is 2001:db8::ffff:ffff:ffff:ffff.
Method reference: RFC 8200 IPv6 specification.
Read our calculation methodology.