IPv6 Subnet Calculator
About this tool
About IPv6 Calculator
Paste any IPv6 address, in short or full form, optionally with a prefix such as 2001:db8:abcd:12::1/48, and the calculator validates it and gives you the canonical compressed form defined by RFC 5952, the fully expanded eight-group form, the network prefix, the first and last address in the range, the exact number of addresses and how many /64 subnets fit inside. It recognises the address type, including global unicast, unique local (fc00::/7), link-local (fe80::/10), multicast, loopback, documentation (2001:db8::/32), IPv4-mapped, NAT64, 6to4 and Teredo, and pulls out the embedded IPv4 address where there is one. Zone ids like %eth0 and bracketed URL forms are accepted. The subnet list splits your prefix into any longer prefix and pages through the results, so you can plan /48 to /56 or /64 allocations without a spreadsheet. The ip6.arpa reverse DNS name is ready to copy for PTR records. All maths uses exact 128-bit integers in your browser.
Built and maintained by Abhi JainUpdated
How to Use the IPv6 Calculator
- 1
Enter the address
Type an IPv6 address in the IPv6 address field, with or without a /prefix, or click one of the examples.
- 2
Set the prefix
Pick the prefix length if you didn't type one. The network, first and last address and counts update instantly.
- 3
Subnet it
In the Subnets panel choose a longer prefix in Split into and page through the resulting subnets.
- 4
Copy
Copy the compressed or expanded form, the reverse DNS name or a page of subnets.
IPv6 Calculator: questions and answers
How do you compress an IPv6 address?
RFC 5952 says: drop leading zeros in each group, use lowercase hex, and replace the longest run of two or more all-zero groups with "::" (the first run if two are equally long). A single zero group stays as 0. So 2001:0db8:0000:0000:0000:0000:0002:0001 becomes 2001:db8::2:1.
How many /64 subnets are in a /48?
65,536. Each extra bit of prefix doubles the count, so a /48 holds 2^(64−48) = 2^16 /64 networks, and a /56 holds 256.
How many addresses are in a /64?
2^64, which is 18,446,744,073,709,551,616. That is why a /64 is the standard size for a single LAN segment: SLAAC needs 64 bits for the interface identifier.
What is the difference between ULA and link-local addresses?
Unique local addresses (fd00::/8 in practice, from fc00::/7) are routable inside your organisation but not on the internet, like private IPv4. Link-local addresses (fe80::/10) only work on one network segment and are configured automatically on every interface.
What is the ip6.arpa name used for?
Reverse DNS. It is the address's 32 hex nibbles in reverse order, separated by dots, followed by ip6.arpa. You create a PTR record at that name to map the address back to a hostname.
Related Tools
- Subnet CalculatorIPv4 CIDR details, subnet splitting, VLSM and IP range to CIDR.
- IP Address ConverterConvert IPv4 between dotted, integer, hex, binary and octal.
- URL ParserSplit a URL into protocol, host, port, path, query and fragment; edit any part and rebuild it.
- Number Base ConverterConvert whole numbers between binary, octal, decimal, hex and any base 2–36, with two's complement.