IP calculators

IPv6 subnet calculator

Enter an IPv6 address with its prefix and get the expanded and compressed forms, the network, the range and how many /64 subnets it holds.

What does it do?

Calculates an IPv6 address with its prefix: the compressed and full forms, the network, the range, how many /64 subnets it contains and the reverse DNS name (ip6.arpa).

Why does it matter?

IPv6 now reaches many homes and businesses, but its 128-bit addresses are hard to handle by hand. One extra zero or a misplaced "::" changes the whole address. When configuring a router, a firewall or reverse DNS, it pays to double-check the math.

How does it work?

The address is expanded to its 8 groups of 16 bits, the prefix is applied to get the network and the end of the range, and it's compressed again following RFC 5952 (no leading zeros and the longest run of zeros as "::"). Everything is calculated in your browser.

How to read the result

Compressed form
The correct way to write it (RFC 5952).
Full form
All 32 hex digits, useful for comparing and for access lists.
/64 subnets
How many local networks fit in the prefix. Each LAN uses a /64.
Reverse DNS
The name for creating the PTR record in the ip6.arpa zone.

What is it for?

Frequently asked questions

Why does every local network use a /64?

Because IPv6 autoconfiguration (SLAAC) needs 64 bits for the device. Using longer prefixes on a LAN breaks it.

What does "::" mean?

It replaces a single run of all-zero groups. It can only appear once in an address.

How many /64s are in a /56?

256. A /48 has 65,536.