ProMapRanker
Free tools · More SEO Tools

IPv6 Calculator

Free IPv6 Calculator - instant, no signup.

What is an IPv6 Calculator?

An IPv6 calculator is a tool that takes a 128-bit address and a prefix length and works out everything you need to know about it: the full expanded form, the shortest compressed form, the network prefix, the type of address, and the total number of hosts available in that block. Instead of expanding hex groups, applying subnet masks, and counting bits by hand, you type the value in once and get an accurate, instant answer. This particular IPv6 calculator runs entirely in your browser, so nothing you enter is ever sent to a server or logged anywhere.

Anyone who works with modern networks eventually needs one: network engineers designing routing tables, sysadmins configuring firewalls and DNS records, developers deploying dual-stack infrastructure on cloud platforms, and students learning how this addressing scheme actually works. Because the notation is long and usually written in a compressed form with a double colon standing in for runs of zeros, it is easy to misread a boundary or miscount a group by hand. A dependable IPv6 subnet calculator removes that guesswork and gives a reliable, repeatable result every time, whether you are checking a single value or auditing dozens of them.

How to use the IPv6 Calculator

  1. Enter an address in the input field. You can use either the full expanded form, with all eight groups of hex digits, or the shorter compressed form with a double colon.
  2. Enter the prefix length, from /0 to /128. The field defaults to /64, since that is the standard size for a single LAN segment.
  3. Click "Calculate" to run the tool against your input.
  4. Review the expanded form, compressed form, address type, network ID, and total host count in the results panel below the form.
  5. Click "Copy" to copy a plain-text summary of every result to your clipboard, ready to paste into a ticket, runbook, or configuration note.
  6. Adjust the values and recalculate as many times as you need. There is no limit, no sign-up, and nothing is stored or transmitted.

Why understanding your IPv6 subnet matters

Adoption keeps climbing as ISPs, mobile carriers, and cloud providers run out of reasons to stay on IPv4-only infrastructure. Google's own traffic measurements show a large and growing share of global requests now arrive over this newer protocol, and most major cloud platforms assign a block to new virtual networks by default. If you manage servers, containers, or office networks, you will run into this addressing scheme sooner or later, whether you planned for it or not. Knowing how to read an unfamiliar value correctly, rather than guessing, is what separates a clean rollout from a support ticket.

Misreading a boundary has real consequences. A firewall rule scoped to the wrong /64 can silently block legitimate traffic or, worse, leave a much larger range open than intended. A static route built against the wrong network ID can send packets nowhere, or send them somewhere they should never go. Because the notation is long and relies on compression rules, small transcription errors are easy to make and hard to spot with the naked eye. Running a value through an IPv6 calculator before committing a config change catches those errors before they reach production, which matters most during a migration when both protocols are running side by side.

The sheer size of the available space also changes how subnetting gets planned compared with the older 32-bit scheme. Where administrators are used to squeezing every usable host out of a /24 or /27, IPv6 subnetting works from a position of abundance: a single /64 contains more addresses than the entire IPv4 internet, many times over. That changes the mental model. Instead of asking how many hosts will fit, planning is usually about how many /64 blocks to hand out and how to keep the scheme organized and documented, since there is no practical shortage of individual values to worry about.

Mobile carriers and IoT deployments add another reason to get comfortable with this addressing scheme early. A single mobile network operator can hand out a unique IPv6 address to every connected device on its network without resorting to carrier-grade NAT, and a smart-home platform provisioning thousands of sensors benefits the same way. Each of those deployments still needs someone to work out the correct IPv6 prefix for its site, decide how many /64 blocks to delegate downstream, and confirm that firewall policy is scoped to the right subnet rather than an entire /48. None of that requires deep networking expertise if the arithmetic is handled by a dependable calculator instead of by hand.

Understanding IPv6 address notation

Expanded vs compressed notation

Every address in this scheme is 128 bits, written as eight groups of four hexadecimal digits separated by colons, for example 2001:0db8:0000:0000:0000:0000:0000:0001. That is the expanded form, and it is the form every subnet calculator uses internally for the underlying math. Because long runs of zero groups are common, the notation also allows a compressed form: leading zeros within a group can be dropped, and one single unbroken run of consecutive all-zero groups can be replaced with a double colon, "::". Applying both rules to the example above gives 2001:db8::1, which is what you will see in most real-world configuration files and documentation. The double colon can only be used once in a valid value, because if it appeared twice there would be no way to tell how many zero groups each instance was standing in for.

Prefix length and subnet ID

The IPv6 prefix works the same way CIDR notation does for the older protocol: a slash followed by a number states how many of the leading bits identify the network, with the remaining bits identifying hosts within it. A prefix of /64 means the first 64 bits are the network portion and the last 64 bits are available for host addressing, which is the standard split for a LAN segment under current design guidance. Given a starting value and a prefix, the network prefix or subnet ID is calculated by zeroing out every bit that comes after the boundary, so 2001:db8:abcd:1234::5678/64 has a subnet ID of 2001:db8:abcd:1234::. That subnet ID is what belongs in a routing table entry or in a firewall rule scoped to the whole segment rather than to one specific host.

Address types (global unicast, link-local, unique local, multicast)

Not every value in this space behaves the same way, and the leading bits tell you which category it falls into. Global unicast addresses, the ones routable across the public internet, fall in the 2000::/3 range and make up the bulk of what is assigned to ISPs, cloud providers, and end sites. Link-local addresses, in the fe80::/10 range, are automatically assigned to every enabled interface and only work on the local network segment; they are never routed anywhere else. Unique local addresses, in the fc00::/7 range, are the rough equivalent of RFC 1918 private space in IPv4, intended for internal use within an organization without being globally routable. Multicast entries, in the ff00::/8 range, deliver a single packet to a group of interested interfaces at once, replacing the broadcast mechanism the older protocol relied on. Two special single values round out the list: ::1 is the loopback address, and :: is the unspecified address used before an interface has been assigned a real one.

How many addresses are in a subnet

Because the host portion is simply the bits left over after the prefix, the number of addresses in a subnet is always 2 raised to the power of the remaining host bits, or 2^(128 minus the prefix length). A /64 subnet, the most common LAN size, contains 2^64 addresses, a number so large that even a busy datacenter will never come close to exhausting it. A /48, commonly delegated to an entire site or customer, contains 2^80 addresses, effectively 65,536 separate /64 blocks to allocate as needed. These figures are far too large to reason about as ordinary integers, which is exactly why a reliable subnet tool uses 128-bit arithmetic internally rather than the 32-bit math that works fine for the older protocol. Some interfaces even show the count in scientific notation, such as 1.84 x 10^19 for a /64, purely because the plain decimal figure is 20 digits long and awkward to read at a glance.

IPv6 calculator: expanded address hextets with network prefix and host boundary 2001:0db8:0000:0000:0000:0000:0000:0001 /64 2001 0db8 0000 0000 0000 0000 0000 0001 Network prefix (first 64 bits) Host portion (last 64 bits) /64 boundary Expanded: 2001:0db8:0000:0000:0000:0000:0000:0001 Compressed: 2001:db8::1 Subnet ID for /64: 2001:db8:: and total addresses: 2^64

Best practices and common mistakes

  • Do not confuse a link-local value with a global one. Anything in the fe80::/10 range only works on the local link and will never reach the internet or another subnet, no matter how the routing is configured.
  • Remember that the double colon can only appear once in a well-formed value. If you see it twice in something you are troubleshooting, the string is not valid and needs to be fixed before you use it anywhere.
  • Do not assume IPv6 subnetting works exactly like the IPv4 version. Host bits are not a scarce resource to be rationed, and most designs allocate whole /64 blocks rather than carving out smaller ranges the way an IPv4 administrator would with a /30 or /29.
  • Plan around the standard /64 for LAN segments. Many stateless address autoconfiguration (SLAAC) mechanisms assume a /64, and using a longer prefix on a segment can silently break autoconfiguration for connected devices.
  • Always double-check the expanded form before writing a firewall rule or ACL. A single mistyped hex digit in a compressed value is easy to miss and can scope a rule to the wrong range entirely.
  • Document your delegation plan. With space this large, the real risk in this kind of subnetting is not running out of values, it is losing track of which /64 or /48 was handed out to which site or service.
  • Verify the address type before trusting a "reachability" test. A ping that succeeds against a link-local address only proves the local link works, not that the same device is reachable from anywhere else on the network.

Common use cases

Dual-stack server setup is one of the most frequent reasons people reach for an IPv6 calculator. When a server needs both an older and a newer address assigned to the same interface, confirming the expanded form, the network prefix, and the address type before applying it avoids misconfigured routes that only show up once traffic starts failing. Getting this step right also matters for load balancers and reverse proxies, which often need an explicit listener bound to each protocol rather than one that silently falls back to whichever address happens to resolve first.

Cloud VPC planning is another common case. AWS, Google Cloud, and Azure all assign blocks, typically a /56 or /64, to virtual networks, and working out how to split that block into per-subnet /64s for different tiers of an application is a task an IPv6 subnet calculator handles in seconds instead of manual bit counting. Teams building infrastructure-as-code templates also use it to double-check that the CIDR ranges hardcoded into Terraform or CloudFormation actually match the subnet boundaries they intended before anything gets deployed.

Home router delegation shows up for anyone troubleshooting their own connection. ISPs typically delegate a /56 or /60 prefix to a home router using DHCPv6-PD, and understanding what that prefix actually covers helps explain why some devices on the network get a working global address and others do not. Splitting a delegated /56 into individual /64 subnets for a guest network, a smart-home VLAN, and the main LAN is a routine task once the underlying prefix math is no longer a mystery.

Troubleshooting connectivity issues rounds out the list. When a device cannot reach a service over the newer protocol, checking whether the value in question is global unicast, link-local, or unique local is often the fastest way to spot the problem, since a link-local address mistakenly used as a destination will never route anywhere. It also helps when comparing two addresses reported in different formats, one expanded and one compressed, to confirm they are in fact the same host before spending more time on the wrong lead.

Frequently asked questions

What does an IPv6 calculator actually calculate?

It takes a 128-bit value and a prefix length and returns the expanded and compressed forms, the network prefix or subnet ID, the address type such as global unicast or link-local, and the total number of addresses contained in that subnet.

Why does the same address look different every time it is displayed?

The same value can be written in expanded form or compressed form, and different tools and operating systems choose different styles by default. Both represent the exact same 128-bit number; a reliable converter switches between the two automatically without you doing the math by hand.

What prefix length should I use for a home or office LAN?

Use /64 unless you have a specific reason not to. It is the standard size that autoconfiguration and most consumer and enterprise networking equipment expect for a single LAN segment.

Is a /64 subnet really necessary for just a few devices?

Yes. IPv6 subnetting is not designed around counting available hosts the way the older protocol is. A /64 is the standard unit of allocation regardless of how many devices actually connect, and using a smaller block can break SLAAC for some clients.

How is the total address count in a subnet calculated?

It is 2 raised to the power of the remaining host bits, or 2^(128 minus the prefix). A /64 subnet, for example, contains 2^64 addresses, a figure this IPv6 calculator displays in both exact and scientific notation because of how large it is.

Does this tool send my data anywhere?

No. All calculations run locally in your browser using JavaScript. Nothing you type into the address or prefix fields is transmitted to a server, logged, or stored anywhere.

What is the difference between an IPv6 calculator and an IPv6 subnet calculator?

In practice the terms are used interchangeably. Both describe a tool that expands, compresses, and analyzes an address; "subnet calculator" simply emphasizes the prefix and network-boundary math that most people are actually looking for.

Working out subnets and address types correctly is a small but important part of keeping local infrastructure and online listings accurate and reachable. If your team also manages local search visibility across dozens or hundreds of locations, ProMapRanker helps track Google Business Profile rankings with the same kind of precision this calculator applies to network addressing, and you can start free with 150 credits.

Related tools

  • IP Address Calculator: work out IPv4 subnet masks, network ranges, and host counts alongside your planning for the newer protocol.
  • Robots.txt Generator: build a valid robots.txt file for a site once its network and hosting setup is confirmed.
  • Hreflang Generator: generate correct hreflang tags for multi-region sites running on dual-stack infrastructure.
  • Nginx Redirect Generator: create nginx redirect rules for servers configured with both IPv4 and IPv6 listeners.

Related tools

Track your real Google Maps rankings

These free tools get you set up - ProMapRanker shows where you actually rank across your whole service area on a geo-grid.

Start free - 150 credits