Skip to content
SubnettingCalculator
IPv4 Detecting…
IPv6 Detecting…

IPv6 Calculator – Free IPv6 Subnet & CIDR Calculator

Use this free IPv6 calculator to find the network address, first and last address, compressed and full form, interface ID, address type and number of /64 networks for any IPv6 address and prefix length. Type an address, drag the slider, and the result updates as you go. Everything runs in your browser.

IPv6 Subnet Calculator

Enter an IPv6 address and drag the prefix slider. The details update as you type.

/64

IPv6 Details

What is an IPv6 calculator?

An IPv6 calculator does the hex and binary work of IPv6 subnetting for you. Give it an address and a prefix length, such as /64, and it shows the network the address belongs to: where it starts, where it ends, how many addresses it holds and what kind of address it is.

It also writes the address in both forms, full and compressed, and splits it into the network part and the host part (the interface ID). That saves a lot of time, because IPv6 addresses are long and easy to misread.

How to use this calculator

1Enter the IPv6 address

Type the address in the first box, for example 2001:db8:acad:10:21a:2bff:fe3c:4d5e. Short forms with :: work too. If you paste an address with its prefix, like 2001:db8::/32, the prefix moves to the slider for you. If the address is not valid, the box turns red and tells you what to fix.

2Set the prefix length

Drag the slider anywhere from 0 to 128. The badge next to it shows the prefix, like /64. A bigger number means a smaller network. Most LANs use /64.

3Read the results

The table follows every change. Network Address is the first address of the network, and First Address and Last Address give the whole range. Full IPv6 Address and Compressed Address show your address in both forms. Host Portion (Interface ID) is the part of the address that identifies the device, and Interface ID Type tells you if it looks like it was built from a MAC address.

Total Addresses and Number of /64 Networks show the size of the network. Address Type and Scope say what the address is for, for example global unicast, unique local, link-local or documentation. The last rows give the solicited-node multicast address and the reverse DNS names.

4Copy or download

Copy puts the whole table on your clipboard as plain text. Download saves it as a CSV file that opens in Excel or Google Sheets. Both buttons are greyed out while the address has an error.

How the IPv6 subnet maths works

An IPv6 address is a 128-bit number. The prefix length says how many bits at the start are the network part. The rest are host bits. Every result comes from a few operations on those bits:

Prefix mask = first N bits set to 1, the rest 0 Network address = Address AND prefix mask Last address = Network address OR (NOT prefix mask) Total addresses = 2 ^ (128 - N) Number of /64s = 2 ^ (64 - N) (when N is 64 or less)

Unlike IPv4, there is no broadcast address, so the first and the last address of an IPv6 network can both be used. The first one is also the subnet-router anycast address, which routers answer to.

Worked example: 2001:db8:acad:10:21a:2bff:fe3c:4d5e/64

The prefix is /64, so the first 64 bits, 2001:0db8:acad:0010, are the network and the last 64 bits, 021a:2bff:fe3c:4d5e, are the interface ID. Setting all host bits to 0 gives the network address 2001:db8:acad:10::. Setting them all to 1 gives the last address 2001:db8:acad:10:ffff:ffff:ffff:ffff. The interface ID has ff:fe in the middle, which is the sign of EUI-64, and the MAC address inside it is 00:1A:2B:3C:4D:5E.

IPv6 Details

This table is built by the same code as the calculator above, so the two always match.

Common IPv6 prefix lengths

These are the sizes you will meet most often:

PrefixTotal addressesNumber of /64 networksTypical use

IPv6 address types

BlockTypeMeaning
2000::/3Global unicastPublic addresses, routed on the internet
fc00::/7Unique local (ULA)Private addresses, like 10.0.0.0/8 in IPv4
fe80::/10Link-localWorks only on one link, never routed
ff00::/8MulticastGroup addresses, replace broadcast
::1/128LoopbackThis device
::/128UnspecifiedNo address yet
2001:db8::/32DocumentationUsed in examples and manuals
::ffff:0:0/96IPv4-mappedAn IPv4 address written as IPv6

When it helps

Use it to plan an IPv6 address plan, to check a prefix before you write a firewall rule or a route, to expand or shorten an address, to find the reverse DNS zone for a network, and to check your answers when you study for CCNA or Network+.

To split an IPv6 network into smaller subnets and see them as a map, use the IPv6 Visual Subnet Calculator. For IPv4, use the IPv4 Subnet Calculator.

Frequently asked questions

What is an IPv6 address?

An IPv6 address is a 128-bit number written as eight groups of four hex digits, for example 2001:0db8:85a3:0000:0000:8a2e:0370:7334. It replaces the 32-bit IPv4 address and gives about 3.4×1038 addresses.

How do I shorten (compress) an IPv6 address?

Drop the leading zeros in each group, then replace the longest run of all-zero groups with ::. You can use :: only once. So 2001:0db8:85a3:0000:0000:8a2e:0370:7334 becomes 2001:db8:85a3::8a2e:370:7334. A single zero group is not shortened with ::.

What does /64 mean in IPv6?

The number after the slash is the prefix length: how many bits at the start of the address are the network part. In a /64 the first 64 bits are the network and the last 64 bits are the interface ID, which identifies the device. A /64 is the standard size of one LAN.

Why is every IPv6 subnet a /64?

Automatic addressing (SLAAC) builds the interface ID from 64 bits, so it needs a /64 to work. A /64 also holds 264 addresses, so there is no need to save addresses. Only special cases use other sizes, such as /127 for a link between two routers and /128 for a single host.

Is there a broadcast address in IPv6?

No. IPv6 does not use broadcast. It uses multicast instead, for example ff02::1 reaches all nodes on the link. That is why every address in an IPv6 subnet, including the first and the last, can be used.

How many addresses are in a /48 or a /56?

A /48 holds 280 addresses and 65,536 /64 networks. A /56 holds 272 addresses and 256 /64 networks. The calculator shows these numbers for any prefix length.

What is the interface ID?

It is the host part of the address, the last 64 bits in a normal /64 network. It can come from the device's MAC address (EUI-64), from DHCPv6, from a random privacy address or from a value you set by hand. The calculator tells you if the interface ID looks like EUI-64 and shows the MAC address inside it.

What are the main IPv6 address types?

Global unicast (2000::/3) is the public type. Unique local (fc00::/7) is private. Link-local (fe80::/10) works only on one link. Multicast (ff00::/8) is for groups. ::1 is loopback, and 2001:db8::/32 is for documentation. The Address Type and Scope rows show which one your address is.

Which input formats work?

Compressed addresses (2001:db8::1), full addresses, addresses with an IPv4 tail (::ffff:192.168.1.1) and addresses with a prefix (2001:db8::/32) all work. If you paste an address with a prefix, the prefix moves to the slider. A zone ID such as %eth0 is ignored.

Is anything I enter sent to your server?

No. The calculation runs in your browser, so the addresses you enter stay on your device.