IPv4 uses 32-bit addresses, while IPv6 expands to 128 bits, creating room for far more devices. Their formats differ too: IPv4 uses dotted decimal, and IPv6 uses colon-separated hexadecimal groups. That larger space also supports hierarchical routing and simpler auto-configuration.

Multiple Choice

How do IPv4 and IPv6 differ?

The main idea is that the difference lies in how long the addresses are and what that enables. IPv4 uses 32-bit addresses, which supports about 4.3 billion unique addresses. IPv6 switches to 128-bit addresses, providing an astronomically larger address space and enabling more scalable routing through hierarchical addressing and easier route aggregation. It also brings features like simpler headers and easier auto-configuration. For reference, IPv4 addresses are written in decimal dotted notation (for example, 192.0.2.1), while IPv6 addresses are written in hexadecimal groups separated by colons. The claim that IPv4 uses 16-bit addresses is incorrect, and the claim that IPv4 addresses are represented in hexadecimal is also incorrect.

Every device on a network needs a way to be found. That’s where an IP address comes in: it gives a device a numerical location so data can travel to and from it. The two main versions, IPv4 and IPv6, do this job in different ways. The biggest difference is simple: IPv4 addresses are 32 bits long, while IPv6 addresses are 128 bits long. That jump in size changes how many addresses are available and supports a more spacious, flexible internet.

A quick look at an IP address

Think of sending a letter through the mail. The address on the envelope helps it reach the right home, even if the sender and recipient are far apart. An IP address plays a similar role for information moving across networks. When you visit a website, for example, your device sends data to an address linked to that site, and the site sends data back.

The internet needs a system for assigning these addresses. IPv4, short for Internet Protocol version 4, served that role for decades and still carries a large share of internet traffic. IPv6, or Internet Protocol version 6, was designed to expand the system as connected devices multiplied.

The change wasn’t just a matter of making the numbers look different. IPv6 created a much larger address space and introduced features that help networks handle traffic and assign addresses. To see why, it helps to look at what those bits mean.

Why 32 bits and 128 bits matter

A bit is a single binary value: either 0 or 1. Each extra bit doubles the number of possible combinations. So a 32-bit address can represent 2³² different values—about 4.3 billion. That sounds like a lot, and it was a remarkable supply when IPv4 was developed. But the internet grew far beyond early expectations. Computers, phones, servers, televisions, cameras, cars, and countless other devices began connecting to networks.

IPv6 uses 128 bits. Its address space contains 2¹²⁸ possible addresses, an immense number—about 340 undecillion. In practical terms, this means there is room for far more devices and networks than IPv4 can directly label. The supply is so large that it’s hard to picture. Imagine giving every grain of sand on Earth its own unique address, then still having room to spare. The comparison isn’t exact, but it hints at the scale.

This difference in length is the central contrast between the two protocols. IPv4 is not a 16-bit system; it uses 32-bit addresses. And while IPv4’s numbers are written as decimal values, IPv6 addresses use hexadecimal notation. The number of bits and the written format are related, but they aren’t the same thing.

Two formats, two different looks

Most people recognize an IPv4 address as four numbers separated by periods, such as 192.0.2.1. Each number is called an octet because it represents eight bits. Four octets add up to 32 bits. Each octet can range from 0 to 255, which is why an IPv4 address has four familiar decimal sections.

IPv6 addresses look different. They’re written as eight groups of hexadecimal characters, with each group separated by a colon. A full address might look like this:

2001:0db8:0000:0000:0000:0000:0000:0001

Hexadecimal uses 16 symbols: the numbers 0 through 9 and the letters A through F. Each hexadecimal character represents four bits, so four characters represent 16 bits. Eight groups of four characters add up to 128 bits.

That full IPv6 form can look like a long string of code, but shortcuts make it easier to read. Leading zeros in a group can be left out, and a run of all-zero groups can be shortened with a double colon. The example above can become 2001:db8::1. The double colon can be used only once in an address, so the omitted groups can be restored without guesswork.

These formats reveal a useful distinction: IPv4 uses decimal notation with dots, while IPv6 uses hexadecimal notation with colons. Neither format changes the underlying purpose. Both identify network locations.

More addresses—and a cleaner network map

IPv6’s vast address supply reduces the pressure to share a single public address among many devices. With IPv4, organizations often use network address translation, or NAT. A home router, for instance, may let several devices share one public IPv4 address while giving each device a private address inside the home network.

NAT has helped IPv4 remain useful despite its limited supply. It’s now a familiar part of home networking, usually working quietly behind the scenes. But it also adds a layer between devices and the wider internet. IPv6 can allow more devices to have globally unique addresses, although network security still depends on firewalls and sensible configuration. A unique address doesn’t mean a device should be left unprotected.

IPv6 also supports hierarchical addressing. In plain language, address blocks can be organized to reflect the structure of networks and service providers. This can make route aggregation easier: related routes can be grouped and advertised together rather than handled as a long list of individual destinations. For internet routers, that’s a bit like sorting mail by region before sending it along. Better grouping can help keep routing information manageable as networks grow.

The result isn’t that every route becomes shorter or every connection instantly faster. Network speed depends on many factors, including hardware, distance, congestion, and service quality. Still, a larger address pool and a more structured addressing system give the internet room to grow.

A simpler header and easier setup

IPv6 was also designed with some changes to how network information is carried. Its main header is simpler than IPv4’s in several ways. Some fields used in IPv4 were removed or handled differently, which can make certain processing tasks more straightforward for network equipment. IPv6 also uses extension headers for optional information, keeping the basic header more consistent.

Another useful feature is automatic address configuration. A device can often build its own IPv6 address using information shared by a local router. This is called stateless address autoconfiguration, or SLAAC. In some networks, DHCPv6—a version of the Dynamic Host Configuration Protocol—helps assign addresses and other settings. The exact setup depends on how the network is managed, but IPv6 gives administrators and devices several ways to handle address assignment.

That convenience matters in settings with many connected devices. A new laptop joining a home network, or a large group of sensors connecting in a building, shouldn’t require someone to type a unique number into every device. Automatic configuration can take care of much of the work.

Why both versions still exist

If IPv6 offers so much more room, why hasn’t IPv4 disappeared? Because the internet is enormous, and its networks don’t all change at once. Routers, software, websites, service providers, and devices need to work together. Many systems still rely on IPv4, while others support IPv6. For years, networks have had to bridge that gap.

A common approach is dual stack: a device or network runs IPv4 and IPv6 side by side. Tunneling and translation methods can also help traffic move between systems that don’t use the same protocol. These tools keep services reachable during the long transition, though they add management work.

So the shift is gradual, not a single switch being flipped. IPv4 remains important, and IPv6 continues to expand. Understanding both helps make sense of what happens behind a web page, a video call, or a smart thermostat sending a small burst of data across the network.

The core idea is easy to keep in mind: IPv4 uses 32-bit addresses, written in decimal groups separated by periods. IPv6 uses 128-bit addresses, written in hexadecimal groups separated by colons. That larger address space supports far more unique locations, while IPv6’s structure and configuration features help networks keep growing. Different formats, same basic job: getting data where it needs to go.