IPv6 Calculator

Expand, compress, classify, split and convert IPv6 addresses with BigInt arithmetic, RFC 5952 formatting and pageable subnets.

Any valid form: compressed, expanded, or with an embedded IPv4 tail. A bare address is a /128.

Must be longer than the address prefix. A /48 parent split at /64 gives 65,536 subnets.

Page through the children 16 at a time. The full range is never built in memory.

Used by the analyzer to test identity, shared subnet and prefix overlap.

Converts to a modified EUI-64 interface identifier. Many networks use privacy addresses instead.

Canonical form (RFC 5952)

2001:db8:1234:5678::1/64

Fully expanded: 2001:0db8:1234:5678:0000:0000:0000:0001

  • As entered2001:db8:1234:5678::1/64
  • Network prefix2001:db8:1234:5678::/64
  • Interface identifier0:0:0:1
  • First address2001:db8:1234:5678::
  • Last address2001:db8:1234:5678:ffff:ffff:ffff:ffff
  • Prefix length/64

Address Calculator

  • Fully expanded2001:0db8:1234:5678:0000:0000:0000:0001
  • Original text2001:db8:1234:5678::1/64
  • Canonical (RFC 5952)2001:db8:1234:5678::1/64
  • Network prefix2001:db8:1234:5678::/64
  • Interface identifier0:0:0:1
  • First address in prefix2001:db8:1234:5678::
  • Last address in prefix2001:db8:1234:5678:ffff:ffff:ffff:ffff
  • Addresses in prefix1,84,46,74,40,73,70,95,51,616
  • Subnet bits availableNone
  • Child subnets at the chosen prefix16
  • A 128-bit address is carried as a BigInt end to end. JavaScript numbers stop being exact above 2^53, which a /64 passes after the first 64 addresses.

Subnet Calculator

Child subnets of 2001:db8:1234:5678::/64 at /68
#PrefixRangeCopy row
12001:db8:1234:5678::/682001:db8:1234:5678:: – 2001:db8:1234:5678:fff:ffff:ffff:ffff
22001:db8:1234:5678:1000::/682001:db8:1234:5678:1000:: – 2001:db8:1234:5678:1fff:ffff:ffff:ffff
32001:db8:1234:5678:2000::/682001:db8:1234:5678:2000:: – 2001:db8:1234:5678:2fff:ffff:ffff:ffff
42001:db8:1234:5678:3000::/682001:db8:1234:5678:3000:: – 2001:db8:1234:5678:3fff:ffff:ffff:ffff
52001:db8:1234:5678:4000::/682001:db8:1234:5678:4000:: – 2001:db8:1234:5678:4fff:ffff:ffff:ffff
62001:db8:1234:5678:5000::/682001:db8:1234:5678:5000:: – 2001:db8:1234:5678:5fff:ffff:ffff:ffff
72001:db8:1234:5678:6000::/682001:db8:1234:5678:6000:: – 2001:db8:1234:5678:6fff:ffff:ffff:ffff
82001:db8:1234:5678:7000::/682001:db8:1234:5678:7000:: – 2001:db8:1234:5678:7fff:ffff:ffff:ffff
92001:db8:1234:5678:8000::/682001:db8:1234:5678:8000:: – 2001:db8:1234:5678:8fff:ffff:ffff:ffff
102001:db8:1234:5678:9000::/682001:db8:1234:5678:9000:: – 2001:db8:1234:5678:9fff:ffff:ffff:ffff
112001:db8:1234:5678:a000::/682001:db8:1234:5678:a000:: – 2001:db8:1234:5678:afff:ffff:ffff:ffff
122001:db8:1234:5678:b000::/682001:db8:1234:5678:b000:: – 2001:db8:1234:5678:bfff:ffff:ffff:ffff
132001:db8:1234:5678:c000::/682001:db8:1234:5678:c000:: – 2001:db8:1234:5678:cfff:ffff:ffff:ffff
142001:db8:1234:5678:d000::/682001:db8:1234:5678:d000:: – 2001:db8:1234:5678:dfff:ffff:ffff:ffff
152001:db8:1234:5678:e000::/682001:db8:1234:5678:e000:: – 2001:db8:1234:5678:efff:ffff:ffff:ffff
162001:db8:1234:5678:f000::/682001:db8:1234:5678:f000:: – 2001:db8:1234:5678:ffff:ffff:ffff:ffff
  • This parent holds 16 /68 subnets. Showing 1–16.
  • Subnet 1 of a /68 split starts at 2001:db8:1234:5678:: and each step adds 2^60 addresses.

Address Analyzer

  • Second address typeDocumentation (RFC 3849)
  • Address typeDocumentation (RFC 3849)
  • Subnet bits available (to /64)None — the prefix is /64 or longer
  • Addresses in this prefix1,84,46,74,40,73,70,95,51,616
  • Identical address and prefixNo
  • Same /64 subnetYes
  • Prefixes overlapYes
  • IPv6 has no broadcast address. A subnet keeps every address except the ones a local convention reserves, so the last address of a block is an ordinary address and may be assigned.
  • One prefix contains the other, so these two blocks cannot both be routed as written.

Conversion Tools

  • Binary (8 × 16 bits)0010000000000001 0000110110111000 0001001000110100 0101011001111000 0000000000000000 0000000000000000 0000000000000000 0000000000000001
  • Reverse DNS (address)1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.7.6.5.4.3.2.1.8.b.d.0.1.0.0.2.ip6.arpa
  • Reverse DNS (prefix zone)8.7.6.5.4.3.2.1.8.b.d.0.1.0.0.2.ip6.arpa
  • Interface identifier from MAC02aa:00ff:feaa:00aa
  • Modified EUI-64 bytes02:aa:00:ff:fe:aa:00:aa
  • The universal/local bit of the first octet is flipped and ff:fe is inserted, per RFC 2464. EUI-64 is optional and not universal: RFC 8981 temporary addresses and many operating systems derive a random interface identifier instead, so do not treat the EUI-64 form as what a host will actually use.
  • Reverse DNS zones are delegated on nibble boundaries, so a prefix that is not a multiple of 4 rounds down to the nearest nibble.
  • Canonical form follows RFC 5952: lowercase, no leading zeros, the longest run of zero groups replaced by "::", and a single zero group written as 0 rather than "::".
  • IPv6 has no broadcast address and no "network address" to reserve, so none of the IPv4 minus-two arithmetic applies here.
  • Subnet rows are described arithmetically from the parent and the page you asked for — a /48 split at /64 never builds 65,536 records.

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.