IPv6 Calculator

Paste an IPv6 address in any form. You get the short and the full form, what kind of address it is, and, if you add a prefix such as /64, the network it belongs to.

How it works

An IPv6 address is 128 bits, written as eight groups of four hex digits separated by colons. Leading zeros in a group can be dropped, and one run of all-zero groups can be replaced by "::". That gives one address many spellings, which makes comparing them by eye hard.

The calculator reads any of those spellings, then writes the address back two ways: expanded, with all 32 digits, and compressed by the rules of RFC 5952, the standard spelling that every tool is meant to agree on.

Add a prefix length and it works out the network address, the last address, how many addresses the prefix holds and how many /64 networks fit in it. It runs on this page; nothing is sent anywhere.

How to use it

  1. 1 Paste an IPv6 address, such as 2001:db8::1. Brackets and a %zone such as %eth0 are fine.
  2. 2 Read the compressed and expanded forms, the address type and the reverse DNS name.
  3. 3 Add a prefix length, such as /64 or /48, to see the network, its first and last address and its size.
  4. 4 Copy any value with its own Copy button.

Good to know

  • Only one "::" is allowed in an address. With two, nobody could tell how many zero groups each one stands for.
  • RFC 5952 says: lower case, no leading zeros, and "::" for the longest run of zero groups, the first one if two runs tie. A single zero group stays as 0.
  • A /64 is the standard size of one LAN. Home connections are usually given a /56 or a /48, which holds 256 or 65,536 of them.
  • Link-local addresses (fe80::) need a zone such as %eth0 to say which network card they belong to. The zone is shown separately because it is not part of the address.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

Shortening 2001:0db8:0000:0000:0000:ff00:0042:8329, and reading a /64

IPv6 addresses are long enough that nobody writes them out in full, and that is where the trouble starts. The address 2001:0db8:0000:0000:0000:ff00:0042:8329 can legally be written 2001:db8:0:0:0:ff00:42:8329, or 2001:db8::ff00:42:8329, or with capital letters, and all of those are the same 128 bits. A firewall rule written one way and a log line written another do not match as text even though they are the same address.

RFC 5952 fixes one spelling. Work through the example. First, lower-case the hex digits; this one has none in upper case. Second, drop the leading zeros in each group: 0db8 becomes db8, 0000 becomes 0, 0042 becomes 42. That gives 2001:db8:0:0:0:ff00:42:8329. Third, find the longest run of zero groups, here the three in a row after db8, and replace it with "::". The result is 2001:db8::ff00:42:8329. Paste the long form above and that is the compressed form you get.

The rule has two details people get wrong. A lone zero group is never replaced by "::", so 2001:db8:0:1:1:1:1:1 stays as it is. And when two runs of zeros are the same length, only the first is shortened: 2001:db8:0:0:1:0:0:1 becomes 2001:db8::1:0:0:1, not 2001:db8:0:0:1::1. Both are valid addresses; only the first is the standard spelling.

Now add a prefix. 2001:db8:abcd:12::1/64 says the first 64 bits, the first four groups, name the network. Keep those and zero the rest and you have the network, 2001:db8:abcd:12::. Set the rest to all ones and you have the last address, 2001:db8:abcd:12:ffff:ffff:ffff:ffff. The size is 2 to the 64th, which is 18,446,744,073,709,551,616 addresses, all of it one LAN. A /48, a common allocation for a site, holds 2 to the 16th of those /64 networks, which is 65,536.

This is why IPv6 subnetting feels different from IPv4. Nobody counts hosts. A LAN is a /64 almost by rule, because stateless address autoconfiguration needs 64 bits for the device part, and planning is about how many /64s you have. The type line tells you whether the address is global, link-local (fe80::/10), unique local (fc00::/7, the private range), multicast or the documentation range 2001:db8::/32 used in examples like these.

The limits are plain. This page reads one address or prefix at a time and does not split prefixes into lists of subnets. It does not look up who owns an address or whether it answers. The address type comes from the special ranges in the IANA registry and says nothing about whether a particular address is actually in use.

Frequently asked questions

How do I shorten an IPv6 address correctly?

Lower-case the letters, drop leading zeros in every group, then replace the longest run of two or more zero groups with "::". If two runs are the same length, shorten the first. 2001:0db8:0000:0000:0000:ff00:0042:8329 becomes 2001:db8::ff00:42:8329.

How many addresses are in a /64?

2 to the power of 64, which is 18,446,744,073,709,551,616. The calculator shows the exact number for any prefix.

What is the reverse DNS name for?

Reverse DNS looks up the name behind an address. For IPv6 the address is written as 32 hex digits in reverse order, one per label, followed by ip6.arpa. That is the name to put in a PTR record.

Is the address I paste sent anywhere?

No. Every step runs in your browser.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.