IPv6 Subnet Calculator

Share:
Cybersecurity Tools

IPv6 Subnet Calculator

Expand, compress and subnet any IPv6 address

By Checked against sources by Last reviewed CYBERSECURITY IPV6 NETWORKING SUBNETTING
Your browser is too old for this tool’s interactive features. Please update to Safari 13.1, Chrome or Edge 80, Firefox 74 or newer.

IPv6 Subnet Calculator

Network
—

Sharing puts this address in the link’s URL, encoded but not encrypted.

📅 Research current as of 01 Nov 2026 · Sources: RFC 4291, RFC 5952, RFC 4862, RFC 2464, RFC 7421, RFC 6177, IANA IPv6 address space, RIPE-690, RIPE-738, APNIC-127
Standards, published formulas, and reference data are revised over time — check against a current authoritative source before relying on these figures.
Advertisement
After tool · AD-W1Responsive

How to Use the IPv6 Subnet Calculator

Paste an address

Enter an IPv6 address in hex groups, compressed or full. You can paste it with its prefix, such as 2001:db8::1/64.

Set the prefix

Type the prefix length from 0 to 128, or pick /48, /56, /60 or /64.

Read the block

See how many /64 subnets it holds, the first and last addresses, the exact count and how the block divides.

Copy forms

Use the compressed or expanded form wherever you need it.

Advertisement
After how-to · AD-W2Responsive

Making Sense of 128-Bit Addresses

IPv6 was designed to solve the one problem IPv4 could never escape: running out of addresses. Where IPv4 uses 32 bits and offers roughly four billion addresses, IPv6 uses 128 bits and offers around 3.4 × 10³⁸. The cost of that abundance is readability. A full IPv6 address is eight groups of four hexadecimal digits, and working with them by hand is error-prone. This calculator removes the guesswork: paste an address and a prefix, and it shows you the network, the first and last addresses, the total size of the block, and both the compressed and fully expanded forms side by side.

Two notation rules make IPv6 manageable, and the tool’s output follows both as RFC 5952 fixes them. First, leading zeros within each four-digit group may be dropped, so 0db8 becomes db8 and 0000 becomes 0. Second, the longest run of consecutive all-zero groups is replaced by a double colon, only once per address, because allowing it twice would make the address ambiguous. Together these turn 2001:0db8:0000:0000:0000:0000:0000:0001 into the far friendlier 2001:db8::1. Seeing both forms together is genuinely useful when you are checking a configuration or hunting for a typo in a long address.

The prefix length works just as it does in IPv4 CIDR notation: it states how many leading bits identify the network. A /64 fixes 64 bits and leaves 64 for the interface identifier, which is why even one subnet contains over eighteen quintillion addresses. It is also the only length SLAAC accepts on Ethernet, so a larger block such as a /56 or /48 is divided into /64s, and the tool shows how many you get. Counts appear exactly, with a power of two and a rounded figure beside them for reading. Note too that IPv6 has no broadcast address — that job belongs to multicast — so the calculator reports a first-and-last range and a count rather than the network-and-broadcast pair familiar from IPv4. Everything is computed locally with big-integer arithmetic. The one thing that puts an address in a URL is the Share button.

A single /64 holds exactly as many addresses as the IPv4 space squared: 2^64.

A single /64 holds eighteen quintillion addresses

01

IPv6 uses 128-bit addresses — IPv4 used just 32.

02

That’s about 3.4 × 10³⁸ possible addresses.

03

A single /64 holds 18 quintillion addresses.

04

A /48 holds 65,536 /64 subnets; a /56 holds 256.

05

Leading zeros in each group can be dropped.

06

One run of zero-groups can compress to :: — only once.

07

IPv6 has no broadcast address — it uses multicast.

08

::1 is the IPv6 loopback, like 127.0.0.1.

09

Link-local addresses sit in fe80::/10.

Frequently Asked Questions

  • A /48 holds 65,536 /64 subnets, a /52 holds 4,096, a /56 holds 256 and a /60 holds 16. The rule is 2 to the power of (64 minus the prefix length): a /56 leaves 8 bits above the /64 line, and 2⁸ is 256. Enter your prefix and the tool shows the exact count, with the first and last subnet at each hex-digit boundary.
  • You enter an IPv6 address and a prefix length (the number after the slash, from 0 to 128), or paste them together as 2001:db8::1/64. The tool expands the address to its full 8-group form, produces the canonical compressed form from RFC 5952, then applies the prefix to find the network address, the first and last addresses, where the next block starts, and how many addresses and /64 subnets the block contains.
  • The prefix length states how many of the 128 bits identify the network. The remaining bits form the interface identifier. A /64 fixes the first 64 bits and leaves 64 bits, about 18 quintillion addresses. The larger the prefix number, the smaller the block.
  • The expanded form writes all eight 16-bit groups in full, such as 2001:0db8:0000:0000:0000:0000:0000:0001. The compressed form drops leading zeros in each group and replaces the longest run of all-zero groups with a double colon, giving 2001:db8::1. On a tie the first run goes, and a lone zero group stays as 0. Both refer to exactly the same address.
  • The double colon means “fill with as many zero groups as needed to reach eight groups total.” If it appeared twice, the address would be ambiguous — there would be no way to know how many zero groups belong to each gap. RFC 4291 also says it stands for one or more groups, so a full eight groups with :: added on the end is refused here.
  • On Ethernet, SLAAC works only with a prefix of exactly 64 bits: RFC 4862 ignores any other length, shorter or longer, and RFC 2464 sets the 64. So a /56 is cut into /64s rather than advertised on a link. RFC 7421, an Informational document, says a subnet prefix longer than 64 bits is “outside the current IPv6 specifications, so results may vary”, and names one exception: the 127-bit prefixes RFC 6164 standardises for point-to-point links between routers.
  • No. Unlike IPv4, IPv6 has no broadcast address; the role is handled by multicast and the all-nodes group instead. That is why this calculator reports a first and last address and a total count, rather than a network-and-broadcast pair the way an IPv4 subnet calculator does.
  • No standard sets it. RFC 6177 “does not make a formal recommendation on what the exact assignment size should be”, beyond giving home sites significantly more than a single /64. APNIC and RIPE policy both call the size “a local decision for the LIR or ISP to make”. RIPE-690, an operational guide rather than policy, offers a /48 for each end-user, or a /48 for business and a /56 for residential, and says “Assigning prefixes longer than /56 is strongly discouraged”. Your provider’s own documentation is the answer for your line; enter the prefix it gives you to see how many /64s that is.
  • The power of two and the long number are both exact: a /64 holds 2⁶⁴ addresses, which is 18,446,744,073,709,551,616. The short form beside them, 1.84 × 10¹⁹, is rounded to three figures for reading. The tool uses big-integer arithmetic because a global IPv6 address does not survive JavaScript’s ordinary number type.
  • Hexadecimal groups, compressed or full, with or without a /prefix. A dropped group, a stray colon or a :: that stands for nothing is rejected rather than guessed at. Dotted IPv4 tails such as ::ffff:192.0.2.1 and zone IDs such as fe80::1%eth0 are legal in their own settings but are not read here.
  • Yes, for the arithmetic. It shows where a block ends and the next begins, how it divides at each hex-digit boundary, and the first and last addresses to document. It does not check a plan against your allocation or list every subnet.
  • Not by the calculation: it runs in JavaScript on your device, and typing an address or a prefix sends nothing to our servers. Share is the exception. It writes the address and prefix into the link as a ?s= value, which is encoded, not encrypted. Anyone who opens that link sends the URL to our site, so it can appear in server logs, in browser history and in any analytics or ad request the page makes. Do not share a link for an address you want kept private.
  • Yes. There is no account and no limit.

Method & sources

How it computes

Exact integer arithmetic in the browser (BigInt). The block is the address masked to the prefix; the last address sets every host bit; the count is 2^(128 minus the prefix) and the /64 count 2^(64 minus the prefix). Parsing follows RFC 4291 and output follows RFC 5952. Parsing, network, last address, counts and canonical form are tested against Python's ipaddress module. Typing sends nothing to our servers; Share puts the address in the link.

What this tool implements

  • RFC 4291 IPv6 addressing architecture; RFC 5952 text representation
  • Dotted IPv4 tails and zone IDs are outside this tool's scope and are refused.
  • No document sets an end-site prefix size. RFC 6177 declines to; APNIC and RIPE policy call it a local decision; RIPE-690 is operational guidance, not policy.

Sources

Show 4 more
Advertisement
Pre-footer · AD-W3 728 × 90