IPv6 Subnet & Dual-Stack Address Calculator
Pure frontend: enter an IPv6 address and prefix to compute network range, address scale, /64 count and reverse zone name locally. No DNS queries, no reachability tests, no logging.
How to use
Enter an IPv6 address with a prefix, for example 2001:db8:1234::/48, and hit Calculate. The tool normalises it, aligns it to the network boundary, shows the first and last addresses and total address count, then lists how many /64s fit, what the first few /64s look like, and the ip6.arpa reverse zone name (only when the prefix is nibble-aligned).
How this differs from the CIDR calculator
This site already has a CIDR subnet calculator for IPv4: how many usable IPs in a /24, why /31 and /32 are special, where the broadcast address sits. That tool answers "is this segment big enough for our hosts?" IPv6 asks something else entirely: a single /64 holds vastly more addresses than the whole IPv4 space, so nobody counts hosts in it.
This tool therefore reports different things. It tells you where the network boundary is, how many standard links you can carve out, how to write the reverse lookup zone and how to number a dual-stack plan. The arithmetic still starts from the prefix length, but the conclusions are about planning, not host counting. If you are holding an IPv4 network, the CIDR calculator is the right tool.
The two writing rules for IPv6 addresses
A 128-bit address is written as eight groups of four hexadecimal digits, separated by colons. Two shortcuts keep it short: leading zeros in a group can be dropped, so 0db8 becomes db8; and one run of all-zero groups can be replaced by ::, but only once per address. That second rule is the most common source of mistakes, so the tool rejects input containing two :: sequences outright.
Normalisation is more than cosmetic. 2001:0db8:1234:0000:0000:0000:0000:0001 and 2001:db8:1234::1 are the same address, but mixing forms in a config makes comparison painful. The tool prints both compressed and fully expanded forms, so anything you copy into documentation reads unambiguously.
Prefix alignment: a host address is fine as input
Often you have a specific address such as 2001:db8:1234:5678::9/56 and want to know which network it belongs to. The tool clears the host bits under the prefix to get the real network prefix: 2001:db8:1234:5600::/56. Notice 5678 became 5600 — a /56 aligns on a 16-bit boundary, so only the first eight bits of the fourth group belong to the network portion.
That alignment step matters. Firewall rules, route aggregation and reverse DNS zones all require a prefix on the correct boundary. Get one bit wrong and you may write a route for a network that does not exist. The normalised network is the first line of the output, ready to copy.
Carve by /64, not by host count
The core unit of IPv6 subnetting is /64. SLAAC needs a 64-bit interface identifier, and privacy extensions and neighbour discovery assume the same size, so end-user subnets get /64 across the board. Your job is to split the site prefix into enough /64s: a /48 yields 65,536, a /56 yields 256, a /60 yields 16.
A few exceptions are worth knowing: point-to-point router links can use /127 (RFC 6164), and loopback addresses are /128. Those are link-layer needs and should not spread to segments with end devices. IPv6 also has no broadcast address and does not lose two addresses to network and broadcast, so the output gives total addresses and available /64s rather than a made-up usable-host count.
Choosing prefixes in multiples of four has a practical advantage: they land on a hex digit boundary, so you change one hexadecimal character and both the address and the summary route stay readable. The tool lists the first 16 /64s, enough to see the numbering pattern before extrapolating.
Dual-stack numbering: keep both address families in step
Dual-stack is not just configuring two protocols; the two structures need to be relatable. A useful convention is to put the VLAN or service number into one hextet. With a site prefix of 2001:db8:1::/48, if VLAN 10 is 10.0.10.0/24 in IPv4, use 2001:db8:1:10::/64 in IPv6. Servers on 10, staff on 20, guests on 30, and the two tables read in parallel.
The payoff shows when you add a segment: you write one more /64 using the same rule instead of re-deriving two unrelated plans. A firewall description like "let the guest segment reach DNS" then maps to two prefixes at once. The first-/64 list is there for exactly this numbering exercise.
Reverse DNS uses nibble-reversed digits
IPv6 PTR records live under ip6.arpa, named by taking each hexadecimal digit in reverse order and separating them with dots. 2001:db8::1, for instance, expands to 32 hex digits and reverses to 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa. Only nibble-aligned prefixes map cleanly to a reverse zone, so the tool emits a zone name when alignment is detected and explains why it cannot when it is not, instead of fabricating a plausible-looking string.
The boundaries of this tool are worth stating: it only does address arithmetic. It does not check whether a prefix has been allocated to you, send DNS queries or tell you whether any address in the prefix is in use. Confirm those in the relevant systems.
Related tutorials
- IPv6 migration — address planning steps and device-specific differences in dual-stack rollouts
- IPv6 transition and tunnelling — how to bridge the gap before native IPv6 is available