Free network utility
IPv6 Subnet Calculator
Calculate an IPv6 network range, expanded address, address capacity, and available /64 subnets.
What this IPv6 subnet calculator does
Enter a delegated IPv6 address and prefix, select a child-prefix length, and choose a decimal child index. RouterNAT normalizes the parent by clearing host bits, calculates its final numerical address and exact capacity, identifies common address scope, counts available /64 networks, and derives the selected child prefix. It also shows the child's final address, parent and child reverse-DNS zones when the prefixes are nibble-aligned, plus a small table around the selected child index. Everything runs in the browser. The calculator does not discover what an ISP delegated, query a router, read DHCPv6-PD state, send router solicitations, alter DNS, or prove that a child prefix is routed.
IPv6 addresses contain 128 bits
An IPv6 address contains 128 binary bits, normally displayed as eight groups of four hexadecimal digits. Each group, or hextet, represents 16 bits. The CIDR prefix length states how many leading bits identify the routed network; the remaining bits vary inside that prefix. In 2001:db8:1234::/48, the first 48 bits are fixed and 80 bits remain. Selecting /64 children uses 16 of those remaining bits as a subnet identifier and leaves the final 64 bits for the interface identifier. Prefix arithmetic is binary even though hexadecimal makes four-bit boundaries easier to read. A familiar-looking hextet is not proof that an entered address already begins on its true prefix boundary.
Normalization clears host and subnet bits
A user can enter an interface address rather than the first address of its prefix. The calculator converts the address to one 128-bit integer, applies a mask containing the selected number of leading one bits, and clears every bit outside that mask. For example, 2001:db8:1234:abcd::1/48 normalizes to 2001:db8:1234::/48 because the fourth and later hextets are outside the /48. The final address is produced by setting every remaining bit to one. IPv6 has no directed-broadcast address, so this final value is only the numerical end of the block. Do not label or configure it as a broadcast address by copying IPv4 terminology.
Compressed and expanded notation
Expanded IPv6 notation always contains eight zero-padded four-digit hextets, such as 2001:0db8:0000:0000:0000:0000:0000:0001. RFC 5952-style canonical compression removes leading zeros in each hextet and replaces one longest run of all-zero hextets with a double colon, producing 2001:db8::1. A double colon can appear only once because the omitted group count must remain unambiguous. Compression changes presentation, not the 128-bit value, prefix, route, or security state. When comparing firewall objects, DNS records, logs, and application output, normalize both values or compare their binary representation; textual inequality does not always mean address inequality.
Parent delegation and child-prefix index
The parent prefix is the block routed to the customer router or site. A child prefix is one contained network selected for a LAN, VLAN, downstream router, lab, guest segment, or other routed purpose. The number of equal child prefixes is two raised to the difference between child and parent lengths. A /56 contains 256 /64 children because eight bits select the child. Decimal index 0 selects the first child, index 1 the second, and index 255 the last. Router interfaces often call this value a prefix ID and may display it in hexadecimal. Confirm the base and numbering convention before transferring a decimal calculator index into a hexadecimal device field.
Why /64 is the ordinary LAN boundary
A /64 leaves a 64-bit interface identifier and is the normal prefix size for IPv6 multi-access LANs. Stateless Address Autoconfiguration, or SLAAC, and several IPv6 assumptions are designed around that boundary. Devices can learn the prefix and default-router information from Router Advertisements and create one or more addresses without a stateful address lease. A /64 contains an enormous number of numerical addresses, but that does not mean Neighbor Discovery can track two raised to 64 active devices. Capacity remains limited by wireless airtime, switching, multicast and neighbor behavior, router resources, security policy, and application demand. Use one /64 per normal VLAN rather than shrinking it to conserve addresses like IPv4.
What /48, /56, and /60 provide
A /48 contains 65,536 /64 networks, a /56 contains 256, and a /60 contains 16. These counts describe subnet capacity, not simultaneous device capacity. A larger site allocation has a numerically shorter prefix. End-site policy and provider practice vary; an organization can receive a /48, while residential service may delegate a /56, /60, or sometimes only one /64. RFC 6177 moved away from treating one fixed size as correct for every end site and emphasizes sufficient subnetting space. Choose the requested delegation based on present and expected routed segments, downstream routers, labs, guest networks, failover design, and stable operational boundaries—not on the number of individual hosts.
DHCPv6 Prefix Delegation is not a WAN address
A global IPv6 address visible on a WAN interface does not reveal the prefix routed for downstream LANs. DHCPv6 Prefix Delegation can provide a separate parent block to the customer router, which then assigns child prefixes to internal interfaces or delegates them farther downstream. The WAN can use an address from another link, a link-local next hop, or provider-specific design. Copying the WAN /128 or WAN-link /64 into LANs can fail routing and create overlap. Check the router's delegated-prefix status, requested prefix length, lease lifetime, and assigned prefix IDs. The calculator requires the authoritative delegated parent; it cannot infer it from a public address checker or from one interface address.
Router Advertisements, SLAAC, and DHCPv6
Router Advertisements carry prefix information, default-router lifetime, flags, MTU, and potentially recursive DNS information. SLAAC uses advertised prefix data to form addresses, while DHCPv6 can provide additional configuration or stateful addresses depending on platform support and RA flags. DHCPv6 does not normally replace Router Advertisements as the mechanism by which hosts learn a default gateway. A mathematically correct /64 will still fail when RA transmission is disabled, the prefix is not marked appropriately, firewall policy blocks essential ICMPv6, the upstream route is missing, or DNS information is unavailable. Validate an actual client address, default route, DNS, neighbor discovery, and outbound and inbound policy.
Stable, temporary, and changing IPv6 addresses
One interface can hold several IPv6 addresses simultaneously: link-local, stable global, temporary privacy addresses, unique-local, and deprecated addresses during renumbering. Privacy extensions can rotate interface identifiers while the /64 prefix remains constant. Providers can also change the delegated parent, invalidating hard-coded global addresses and firewall objects. Avoid assuming that the address observed today permanently identifies a person or device. For services, use an intentional stable addressing and DNS strategy supported by the operating system and router. For client tracking, rely on authorized identity and management systems rather than publishing interface identifiers. The calculator shows prefix mathematics and does not predict address-generation policy or lifetime transitions.
Global, unique-local, link-local, and documentation scope
Global unicast addresses are generally associated with routable IPv6 space, but a global-looking value still requires an actual route and policy. Unique-local addresses use fc00::/7, commonly locally generated under fd00::/8, and are not intended as ordinary public internet addresses. Link-local addresses use fe80::/10 and are valid only on the local link, often requiring an interface zone identifier in host software. Multicast begins ff00::/8; :: is unspecified and ::1 is loopback. Documentation prefixes such as 2001:db8::/32 belong in examples, not production routing. RouterNAT classifies several common cases so a correct calculation is not mistaken for proof of external reachability.
Point-to-point /127 and host /128 routes
RFC 6164 describes /127 use on suitable inter-router point-to-point links. With two numerical addresses, it avoids ordinary /64 LAN semantics and can reduce certain neighbor-discovery concerns on infrastructure links. A /128 identifies one address or host route and is often used for loopbacks, explicit routes, or policy objects. These specialized prefixes do not justify assigning /127 or /128 to an ordinary Ethernet or Wi-Fi client segment. Some platforms and protocols have requirements for link-local addresses even when global /127 addressing is used. Confirm vendor support, routing-protocol behavior, monitoring, and operational conventions before deploying specialized link prefixes.
Reverse DNS and nibble boundaries
IPv6 reverse DNS uses the ip6.arpa tree with hexadecimal digits written individually in reverse order. A /48, /52, /56, /60, or /64 ends on a four-bit hexadecimal nibble boundary, so its reverse zone maps cleanly to a complete number of reversed digits. A prefix such as /57 cuts through a hexadecimal digit and cannot be expressed as one simple delegated label at that exact boundary. The calculator returns a direct ip6.arpa zone only for nibble-aligned prefixes and warns otherwise. Producing a zone name does not create or delegate DNS. The address owner or provider must arrange the authoritative delegation, and PTR records must be maintained inside the delegated zone.
Address planning across VLANs and sites
Assign child /64 networks according to stable operational boundaries such as site, building, security zone, tenant, service, or VLAN. Leave documented space for growth and downstream delegation rather than numbering only today's interfaces consecutively with no hierarchy. A /56 allows eight subnet-ID bits, which can be represented as two hexadecimal digits; an administrator can reserve ranges by function while retaining summarization. Do not encode sensitive organizational details into publicly visible addresses unnecessarily. Record parent ownership, prefix lifetime, child ID, VLAN, gateway, RA mode, DHCPv6 role, DNS zone, firewall zone, responsible owner, and rollback method. Keep global and unique-local plans distinct and prevent overlap across VPN and multi-site routing.
IPv6 routing and firewall policy
IPv6 generally routes end-to-end without IPv4-style port-forwarding NAT, but global addressing does not mean unsolicited inbound traffic is automatically allowed. A stateful firewall can deny inbound connections while permitting established return traffic. Each child prefix must be routed toward the correct downstream interface, and the upstream router must know the delegated parent path. Essential ICMPv6 supports error reporting, Packet Too Big messages, Neighbor Discovery, and other control functions; blocking it indiscriminately can break connectivity and Path MTU Discovery. Apply least-privilege rules by source, destination, protocol, and port, maintain address objects as prefixes change, and test from authorized external and internal locations.
Worked /56 to /64 example
Suppose the ISP delegates 2001:db8:1234:ab00::/56. The first 56 bits are fixed, leaving eight bits before the normal /64 interface-ID boundary. Therefore 256 child /64 networks exist. Index 0 selects 2001:db8:1234:ab00::/64, decimal index 1 selects 2001:db8:1234:ab01::/64, and decimal index 16 corresponds to hexadecimal 10, selecting 2001:db8:1234:ab10::/64. Index 255 corresponds to hexadecimal ff and selects the final child. If a router's prefix-ID field expects hexadecimal, entering decimal 16 as the text 16 can select a different network. Verify the field format and compare the normalized resulting prefix after configuration.
Renumbering and dynamic delegations
An ISP can replace a delegated prefix after reconnect, lease change, equipment replacement, or provider policy update. A robust router can advertise the new prefix while deprecating the old one, allowing clients to transition before the old valid lifetime expires. Hard-coded global addresses, DNS records, firewall aliases, VPN selectors, monitoring, and allowlists can fail during this change. Prefix-stable service, dynamic DNS, automation, unique-local internal addressing, or provider-independent space may be considered according to requirements and expertise. Do not use IPv6 prefix translation automatically as an IPv4 NAT habit. Document how the network detects, distributes, validates, and rolls back prefix changes.
Privacy, limitations, and validation checklist
The entered address, prefix, and index are processed in browser memory and are not submitted as a calculator request. Avoid pasting confidential allocations when screenshots or shared devices are involved. RouterNAT performs deterministic 128-bit mathematics; it cannot detect prefix ownership, DHCPv6-PD, RA configuration, routes, DNS delegation, duplicate use, client support, firewall policy, ISP filtering, or prefix stability. Before deployment, verify the authoritative delegated prefix and lifetime, normalize every child, confirm non-overlap, assign one normal /64 per client LAN, document specialized /127 or /128 uses, configure routing and RA, preserve necessary ICMPv6, apply firewall policy, test DNS and application paths, monitor renewal, and retain a rollback procedure.
To study notation without changing a prefix, use the IPv6 compressor and expander. For IPv4 network and broadcast calculations, use the IPv4 subnet calculator.
Classify an unfamiliar IPv6 literal with the IP address type checker, then inspect a hostname's AAAA and related records with the DNS lookup tool.
The delegated LAN prefix is not necessarily the address displayed on the WAN interface. Use What Is My IP only to observe the public address family visible to a website, not to infer the DHCPv6-PD size.
Privacy and responsible use
This calculation runs locally in your browser. RouterNAT does not receive or save the values entered into this tool. Use the result only for lawful network administration and troubleshooting.
What this IPv6 subnet calculator returns
Enter an IPv6 address with its parent prefix, choose the child prefix length, and select a decimal child index. The calculator normalizes the parent network, finds its final numerical address, expands and compresses the notation, counts total addresses and available child prefixes, selects the requested child network, and builds reverse-DNS information when the boundary is nibble-aligned. It performs exact 128-bit integer calculations in the browser and does not contact the router or ISP.
Understand /48, /56, /60, /64, and /128 before splitting
How the child subnet index works
Index zero selects the first child prefix inside the normalized parent, index one selects the second, and the highest permitted index is one less than the number of children. Splitting a /56 into /64s creates 256 child networks, so valid decimal indexes are 0 through 255. The index is multiplied by the child block size and added to the parent network. It is not a VLAN ID, interface number, or fourth-hextet text copied without calculation, although a documented address plan may intentionally align these values.
Worked example: divide a /56 into /64 LANs
Suppose the delegated prefix is 2001:db8:1234:5600::/56. The first 56 bits identify the parent, leaving eight bits before the /64 LAN boundary. This produces 256 possible /64 child prefixes. Child index 0 is 2001:db8:1234:5600::/64, index 1 is 2001:db8:1234:5601::/64, and decimal index 15 is 2001:db8:1234:560f::/64. The 2001:db8::/32 block is reserved for documentation; replace it with an assigned prefix only in a private planning workflow.
IPv6 has no directed broadcast address
The calculator reports the final numerical address in a prefix, but this is not an IPv4-style broadcast address. IPv6 uses multicast and neighbor discovery instead of directed broadcast. Do not reserve the all-zero or all-one host values by automatically applying IPv4 rules. Actual interface addressing can use SLAAC, DHCPv6, stable privacy addresses, temporary addresses, manual assignments, or platform-specific mechanisms, while the router and firewall still require deliberate policy.
Reverse DNS and nibble-aligned prefixes
IPv6 reverse DNS uses reversed hexadecimal nibbles beneath ip6.arpa. A prefix length divisible by four aligns with a complete hexadecimal digit and can map directly to a conventional delegation boundary. A non-nibble prefix such as /57 needs provider-specific delegation or covering-zone handling; the calculator does not invent a misleading exact zone. Reverse DNS does not create forward AAAA records, routes, router advertisements, DHCPv6-PD, or firewall rules.
Calculation does not prove delegation or reachability
A mathematically valid child prefix is usable only if the ISP or upstream router delegates and routes the parent toward the site. Verify DHCPv6 prefix delegation, WAN status, routing, router advertisements, DNS, and firewall policy. Avoid copying a temporary interface address and assuming its visible prefix equals the delegated block. If renumbering can occur, design address plans and DNS automation around the provider's actual delegation behavior.
Normalize a single address with the IPv6 compressor and expander, classify global, unique-local, link-local, multicast, and documentation space with the IP address type checker, and inspect published AAAA records with the DNS lookup tool.
If a router or client shows several addresses from the calculated prefix, use the guide to understand multiple IPv6 addresses and choose the correct one. It separates the delegated parent prefix, LAN /64, stable address, temporary address, and link-local scope before you build an address plan.
How to use this result
Verify important changes against your router manual, ISP documentation, or an authorized network administrator. This utility provides planning guidance and does not connect to, scan, or modify your router.

Comments
Leave a Comment
Your email address will not be published. Comments are reviewed before appearing.