An IPv6 address is 128 bits long

An IPv6 address contains 128 bits of information. That is four times larger than an IPv4 address, which uses 32 bits. Those 128 bits are divided into eight groups of 16 bits each, and each group is written as a four-digit hexadecimal number separated by colons — which is why IPv6 addresses look like 2001:0db8:85a3:0000:0000:8a2e:0370:7334.

The size difference matters because it changes how many unique addresses can exist. With 32 bits, IPv4 can create about 4.3 billion addresses. With 128 bits, IPv6 can create roughly 340 undecillion addresses — a number so large it is difficult to put into words. That vastness is why IPv6 was created: the internet ran out of IPv4 addresses, and we needed a system that would not run out for centuries.

Key Takeaways

  • IPv6 addresses are 128 bits, written as eight groups of four hexadecimal digits separated by colons.
  • The 128-bit size allows for approximately 340 undecillion unique addresses, compared to IPv4's 4.3 billion.
  • Each of the eight 16-bit groups can be shortened by removing leading zeros, and consecutive groups of zeros can be replaced with a double colon.
  • Your device's IPv6 address is usually generated automatically by your router, so you rarely need to enter one manually.

How the 128 bits are organized

The 128 bits break down into two main sections: the network prefix and the host identifier. The network prefix tells you which network the address belongs to — similar to the area code in a phone number. The host identifier is the part that distinguishes your specific device on that network.

In practice, the network prefix is usually 64 bits, leaving 64 bits for the host identifier. This split is not a hard rule — some networks use different sizes — but 64/64 is the standard. That 64-bit host section still gives you 18 quintillion possible addresses per network, which is why IPv6 networks are so large compared to what most people are used to with IPv4.

Why hexadecimal notation is used

IPv6 addresses are written in hexadecimal (base 16) rather than decimal (base 10) because hexadecimal is more compact. Each hexadecimal digit represents 4 bits, so four hexadecimal digits represent 16 bits. Writing 128 bits in decimal would require about 39 digits; in hexadecimal, you need only 32 digits arranged into eight groups.

Hexadecimal uses the digits 0 through 9 and the letters A through F, where A equals 10, B equals 11, and so on. When you see an IPv6 address like fe80::1, the "fe80" part is hexadecimal notation. You do not need to convert it yourself — your device and router handle the translation automatically.

Shorthand notation makes long addresses readable

Because 128 bits creates very long addresses, IPv6 includes two shorthand rules to make them shorter and easier to read. The first rule lets you drop leading zeros from any group: 0db8 can be written as db8, and 0000 can be written as 0. The second rule lets you replace one sequence of consecutive all-zero groups with a double colon (::).

Using both rules, the address 2001:0db8:85a3:0000:0000:8a2e:0370:7334 can be shortened to 2001:db8:85a3::8a2e:370:7334. The double colon can only be used once per address, because using it twice would make it impossible to know how many zero groups it represents. Your device will expand these shortened forms back to the full 128 bits when it needs to process the address.

How your device gets an IPv6 address

In most home and office networks, your device does not need you to manually enter an IPv6 address. Your router sends out router advertisements that tell devices how to generate their own IPv6 addresses automatically. Your device takes the network prefix from the router's advertisement and combines it with a host identifier based on your device's hardware address, creating a unique address on the network.

This automatic process is called stateless address autoconfiguration, and it is one of the advantages IPv6 has over IPv4. You can also see your device's IPv6 address in your network settings, though the exact location varies by operating system. On Windows, you can find it by opening Command Prompt and typing ipconfig; on Mac or Linux, use ifconfig or ip addr.

IPv6 and IPv4 can coexist on the same device

Your device almost certainly has both an IPv4 address and an IPv6 address right now, even if you have never thought about it. Most networks run both protocols at the same time, a setup called dual-stack. When your device needs to reach another computer, it tries IPv6 first, and if that does not work, it falls back to IPv4.

This dual-stack approach means the internet can transition gradually from IPv4 to IPv6 without requiring everyone to switch on the same day. Some services and websites are reachable only over IPv6, others only over IPv4, and many work over both. Your device handles this switching automatically, so you do not need to choose which one to use.

Why the size matters for network planning

The 128-bit size has practical consequences for how networks are designed and managed. Because the host section is so large (typically 64 bits), network administrators do not need to worry about running out of addresses within a single network the way they did with IPv4. This changes how subnetting works and how networks are organized.

For someone managing a large organization's network, the abundance of addresses means you can assign entire subnets to departments, buildings, or functions without concern for exhaustion. For a home user, it simply means your router can assign addresses to every device you own and many more, without any manual configuration or address reuse.

Frequently Asked Questions

Why is IPv6 128 bits instead of some other size?

128 bits was chosen to be large enough that the internet would never run out of addresses, even accounting for waste and inefficiency in how addresses are allocated. The designers wanted a number so vast that address exhaustion would not be a concern for centuries. 128 bits also divides evenly into eight 16-bit groups, which makes the notation cleaner than other sizes would have been.

Can I manually set an IPv6 address on my device?

Yes, most devices let you configure a static IPv6 address in your network settings, similar to how you can set a static IPv4 address. However, most people do not need to do this because automatic configuration works reliably. If you do set one manually, make sure it does not conflict with addresses your router is assigning to other devices.

What does the double colon (::) mean in an IPv6 address?

The double colon is shorthand for one or more consecutive groups of all zeros. For example, fe80::1 means fe80:0000:0000:0000:0000:0000:0000:0001. You can only use the double colon once per address, because using it twice would create ambiguity about how many zero groups each one represents.

Do I need to understand IPv6 addresses to use the internet?

No. Your device and router handle IPv6 addresses automatically in the background. Understanding how they work is useful if you are configuring a network, troubleshooting connection problems, or managing multiple devices, but for everyday internet use, you do not need to think about them.

Is IPv6 faster than IPv4?

IPv6 is not inherently faster, but it can be faster in practice because it was designed more efficiently. IPv6 removes some features that IPv4 included, which means routers can process IPv6 packets with less overhead. The real speed difference depends on your internet service provider and how well they have implemented IPv6 on their network.