An IPv6 address is 128 bits long

An IPv6 address contains 128 bits of information. That's four times larger than an IPv4 address, which uses only 32 bits. The extra size matters because the internet ran out of IPv4 addresses years ago — there are only about 4.3 billion possible IPv4 addresses, but IPv6 can create roughly 340 undecillion addresses (that's 340 followed by 36 zeros). Your home network devices are slowly moving to IPv6, and understanding its size helps you see why the switch was necessary.

Those 128 bits are divided into eight groups of 16 bits each. When you see an IPv6 address written out, it looks like 2001:0db8:85a3:0000:0000:8a2e:0370:7334 — each group of four hexadecimal characters represents 16 bits. Hexadecimal uses digits 0–9 and letters A–F, so each character holds 4 bits of information (since 2 to the power of 4 equals 16).

Key Takeaways

  • IPv6 addresses are 128 bits, split into eight 16-bit groups written in hexadecimal notation separated by colons.
  • The 128-bit size allows for approximately 340 undecillion unique addresses, solving the shortage that made IPv4 insufficient.
  • Each hexadecimal character in an IPv6 address represents 4 bits, so four characters equal one 16-bit group.
  • Your router and devices may already support IPv6, but your internet service provider determines whether your home network actually uses it.

Why 128 bits instead of a larger or smaller number

The designers of IPv6 chose 128 bits as a balance between address space and practical use. A 64-bit address would have been simpler but would eventually run out again. A 256-bit address would waste resources on devices that don't need that much space. At 128 bits, IPv6 provides enough addresses that every person on Earth could have billions of unique addresses each, with room left over for future growth.

The 128-bit size also divides cleanly into eight 16-bit groups, which makes the address easier to write and remember than a random string of 128 individual bits would be. Network engineers can work with these groups as units, which simplifies routing and configuration on large networks.

How the 128 bits are organized

An IPv6 address splits into two main parts: the first 64 bits identify the network, and the last 64 bits identify the specific device on that network. Within the network portion, the first 48 bits typically identify your internet service provider's network, and the next 16 bits identify your specific subnet (usually your home network). This structure lets routers make decisions about where to send data without examining the entire address.

The device portion — the last 64 bits — often contains information derived from your device's hardware address, though modern systems increasingly use randomly generated values for privacy. This split design means that even though IPv6 addresses are much larger than IPv4 addresses, routers can still process them efficiently because they only need to examine the first half to route most traffic correctly.

Reading IPv6 addresses in hexadecimal

Each group of four hexadecimal characters represents 16 bits. In hexadecimal, the digits go from 0 to F (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F). The letter A represents 10, B represents 11, and so on up to F, which represents 15. Since each hexadecimal digit can represent 16 different values (0 through 15), it takes exactly 4 bits to store one hexadecimal digit.

So when you see a group like 85a3, that's four hexadecimal characters, which means 16 bits. The entire address 2001:0db8:85a3:0000:0000:8a2e:0370:7334 contains 32 hexadecimal characters (8 groups × 4 characters), which equals 128 bits total. Hexadecimal notation makes the address compact enough to write and read, whereas writing out all 128 bits as 1s and 0s would be impractical.

IPv6 shorthand notation

IPv6 addresses can be shortened in two ways to make them easier to write. Leading zeros within a group can be dropped — so 0db8 can be written as db8, and 0000 can be written as 0. More significantly, consecutive groups of all zeros can be replaced with a double colon (::), but only once per address.

Using these rules, the address 2001:0db8:85a3:0000:0000:8a2e:0370:7334 can be shortened to 2001:db8:85a3::8a2e:370:7334. The double colon represents all those zero groups in the middle. This shorthand doesn't change the address itself — it's still 128 bits — it just makes the notation more compact. When your router displays an IPv6 address, it often uses this shortened form.

What this means for your home network

Your home router and most modern devices already understand IPv6 and can work with 128-bit addresses. However, whether your network actually uses IPv6 depends on your internet service provider. Some providers have fully switched to IPv6, others use a mix of IPv4 and IPv6, and a few still rely entirely on IPv4. You can check whether your connection supports IPv6 by visiting a site like test-ipv6.com — if it shows you an IPv6 address, your provider supports it.

Even if your provider doesn't offer IPv6 yet, understanding the 128-bit structure helps you configure your network correctly and troubleshoot connection problems. When you see IPv6 addresses in your router settings or network diagnostics, you'll recognize them by their colon-separated hexadecimal format and know they're the newer, larger address system.

Frequently Asked Questions

Why is IPv6 128 bits when IPv4 is only 32 bits?

IPv4's 32 bits create about 4.3 billion addresses, which the internet exhausted. IPv6's 128 bits create roughly 340 undecillion addresses — enough for every device humanity could ever build to have multiple addresses. The larger size was necessary to prevent running out again.

Do I need to do anything different on my home network because IPv6 is 128 bits?

No. Your router handles the 128-bit addresses automatically. You don't need to configure anything differently. If your internet service provider supports IPv6, your devices will receive IPv6 addresses without any action on your part.

Can I convert an IPv6 address to IPv4?

No. The two systems are incompatible — IPv6's 128 bits cannot fit into IPv4's 32-bit space. Some transition technologies let IPv4 and IPv6 networks communicate, but they don't convert addresses between the two formats.

What does the double colon mean in an IPv6 address?

The double colon (::) is shorthand for consecutive groups of zeros. It represents one or more 16-bit groups that are all zeros, making long addresses shorter and easier to read. You can only use it once per address because using it twice would create ambiguity about how many zero groups each represents.

If IPv6 has so many addresses, why do we still use IPv4?

Switching the entire internet to IPv6 takes time because millions of devices, routers, and servers still use IPv4. Most networks now support both systems simultaneously, with IPv6 gradually taking over as older equipment is replaced. Your home network likely already supports both.