IPv6 Subnet Calculator
This IPv6 subnet calculator works out everything that follows from an IPv6 address and a prefix length: the network address in compressed and fully expanded form, the first and last usable address, the prefix and host masks, the mask in binary, and the exact number of addresses — all 39 digits of it for a /0. It lists every available address page by page, even for a /64 whose eighteen quintillion addresses are generated on demand rather than all at once, and every address that cannot be assigned, with the reason: the Subnet-Router anycast address at the start of each subnet and the 128 interface IDs reserved for subnet anycast. You can check a single address to see whether it is free to use. Prefixes shorter than /64 are treated as a set of /64 subnets, a /127 as a point-to-point link with both addresses usable, and a /128 as a single host.
How it works
Enter an IPv6 address with a prefix length, such as 2001:db8::/64 — full, shortened with :: or ending in an IPv4 address. It works out the network, the usable range, the prefix and host masks and the exact number of addresses, then lists every available address page by page and every reserved one, with the reason.
IPv6 has no broadcast address. Instead the first address of each subnet is the Subnet-Router anycast address, and in a /64 a block of 128 interface IDs is reserved for subnet anycast. A /127 is a point-to-point link where both addresses are usable, and a /128 is a single host.
Everything runs in your browser — nothing you enter is sent to a server.
What the prefix means
An IPv6 address is 128 bits, written as eight groups of four hexadecimal digits. The number after the slash is how many leading bits identify the network; the rest identify the interface. Each step down the prefix doubles the block, so the numbers get large quickly:
| Prefix | Typical use | Addresses |
|---|---|---|
| /32 | An ISP or large organisation | 296 |
| /48 | A site — 65,536 /64 subnets | 280 |
| /56 | A home or small office — 256 /64 subnets | 272 |
| /64 | One network segment (LAN, VLAN) | 264 |
| /127 | A point-to-point link (RFC 6164) | 2 |
| /128 | A single host or loopback | 1 |
Stateless autoconfiguration (SLAAC) only works on a /64, which is why a /64 is the standard size for
any segment with hosts on it.
Shortened and expanded forms
Leading zeros in a group can be dropped, and one run of all-zero groups can be replaced with ::, so
2001:0db8:0000:0000:0000:0000:0000:0001 is written 2001:db8::1. The calculator writes
every result in that standard short form (RFC 5952) and shows the network fully expanded alongside, which is the
form some firewalls and reverse-DNS zones need.
Available and not-available addresses
There is no broadcast address in IPv6 — multicast does that job — so the last address of a subnet is usable. Two kinds of address are still reserved:
- Subnet-Router anycast — the first address of every subnet, with an all-zero interface ID (RFC 4291). Routers answer to it, so a host must not use it.
- Reserved subnet anycast — in a /64, the 128 interface IDs from
fdff:ffff:ffff:ff80tofdff:ffff:ffff:ffff(RFC 2526, RFC 5453).
A /127 and a /128 reserve nothing. To check a single address, type it into Check an address: it says whether the address is available, reserved or outside the block, and jumps the list to it. For IPv4 blocks, use the CIDR / Subnet Calculator.
Frequently asked questions
How do I use the IPv6 subnet calculator?
Enter an address and prefix such as 2001:db8::/64. Full addresses, addresses shortened with ::, and ones ending in an IPv4 address like ::ffff:192.0.2.1 all work. The results and both address lists appear immediately.
Is there a broadcast address in IPv6?
No. IPv6 replaced broadcast with multicast, so the last address of a subnet is an ordinary usable address.
Which addresses are not available?
The first address of each subnet is the Subnet-Router anycast address (RFC 4291), which routers answer to. In a /64, the interface IDs fdff:ffff:ffff:ff80 to fdff:ffff:ffff:ffff are reserved for subnet anycast (RFC 2526, RFC 5453). A /127 and a /128 reserve nothing.
How many addresses are in a /64?
2^64, which is 18,446,744,073,709,551,616. After the Subnet-Router anycast address and the 128 reserved anycast IDs, 18,446,744,073,709,551,487 are usable.
Can it really list every address in a /64?
Yes, a page at a time. There are far too many to store, so each page is generated from its position when you open it, and Check an address jumps straight to the page holding any address you type.
What happens with a prefix shorter than /64, like a /48?
It is treated as what it normally is: a set of /64 subnets, 65,536 of them in a /48. The reserved addresses repeat in every /64 and the usable count allows for that.
Why does it warn about prefixes longer than /64?
Stateless address autoconfiguration (SLAAC) only works on a /64. Longer prefixes are fine for static addressing and point-to-point links, but hosts on them cannot configure themselves.
Is anything sent to a server?
No. The calculation is arithmetic and runs entirely in your browser.
Related tools
CIDR / Subnet Calculator
This subnet calculator works out the network, broadcast, masks and host range of an IPv4 block, and lists every available and reserved address.
IP Address Converter
This IP converter turns an address between dotted, decimal, hex, octal and binary forms.
Bitwise Calculator
This bitwise calculator shows AND, OR, XOR and shifts with the bits lined up.