IPv6 Calculator
Expand, compress, classify, split and convert IPv6 addresses with BigInt arithmetic, RFC 5952 formatting and pageable subnets.
How it works
addresses in prefix = 2^(128 − prefix); network = address AND prefix mask; canonical text = RFC 5952 §4
Sources
- RFC 4291 — IP Version 6 Addressing Architecture (2006)
- RFC 5952 — A Recommendation for IPv6 Address Text Representation (2010)
- RFC 3849 — IPv6 Address Prefix Reserved for Documentation (2004)
- RFC 4193 — Unique Local IPv6 Unicast Addresses (2005)
- RFC 2464 — Transmission of IPv6 Packets over Ethernet Networks (1998)
- RFC 3596 — DNS Extensions to Support IP Version 6 (2003)
Reading an IPv6 prefix
The number after the slash is how many leading bits identify the network. Everything below it is host bits. In 2001:db8:1234:5678::1/64 the first 64 bits are the network and the last 64 are the interface identifier.
Because the arithmetic is on 128-bit integers, a /64 contains 18,446,744,073,709,551,616 addresses. That number is exact here; a JavaScript number would have rounded it.
Subnetting an IPv6 block is usually done on nibble boundaries inside a /48 or /56: a /48 split at /64 gives 65,536 VLAN-sized subnets, and a /56 split at /64 gives 256.
Compression rules that people get wrong
Only one run of zero groups may be replaced by "::". An address with two separate runs must write one of them out in full, which is why 2001:db8:0:0:1:0:0:1 becomes 2001:db8::1:0:0:1 — the leftmost run wins the tie.
Leading zeros inside a group are always removed, and the text is always lowercase. "::" never stands for a single zero group: 2001:db8:0:1:1:1:1:1 keeps its 0.
The calculator accepts expanded, compressed and mixed forms, rejects a second "::", rejects groups longer than four hex digits, and validates the prefix boundary before doing any arithmetic.
Classification and special ranges
Address type is decided from the numeric range, not from how the text looks. 2001:db8::/32 is documentation space (RFC 3849) and is never routed; fd00::/8 is unique local; fe80::/10 is link-local; ff00::/8 is multicast.
::1 is loopback and :: is unspecified, the two addresses that look most like ordinary values. ::ffff:0:0/96 holds IPv4-mapped addresses, and 64:ff9b::/96 is the well-known NAT64 prefix.
Why EUI-64 is not reliable
RFC 2464 defines how to build an interface identifier from a 48-bit MAC: flip the universal/local bit and insert ff:fe in the middle. It is useful for recognising hardware-derived addresses in a trace.
It is not how most hosts address themselves today. Privacy extensions generate temporary random identifiers, and the stable-address scheme in RFC 7217 derives one from a secret. Treat an EUI-64 conversion as an explanation of an old address, not a prediction of a new one.
Questions
Does IPv6 have a broadcast address?
No. IPv6 uses multicast instead, so a block has no broadcast address to reserve and no network address rule that costs you two addresses. All 2^(128 − prefix) addresses in the prefix exist.
Why can my address only use one "::"?
Because "::" means "one or more zero groups" and its length is inferred from the groups around it. Two of them would make the address ambiguous, so RFC 4291 allows exactly one.
How many /64 subnets are in a /48?
65,536. Each extra bit doubles the number of subnets, so /48 → /64 is 16 bits, and 2^16 = 65,536.
Is the last address of an IPv6 subnet usable?
Yes. Unlike IPv4 there is no broadcast address at the top of the block, so the last address is ordinary. Some designs still avoid it by convention, but the protocol does not require it.