IPv6 128-Bit Address

IPv6 Binary Converter

Convert IPv6 addresses to complete 128-bit binary and convert binary IPv6 values back to hexadecimal notation. Expand compressed IPv6 addresses and inspect all eight 16-bit address groups.

IPv6 to Binary Binary to IPv6 128 Bits 8 Hextets IPv6 Expansion
IPv6 Binary Conversion 8 × 16-Bit Hextets
Choose the conversion direction.
Enter a full or compressed IPv6 address such as 2001:db8::1.
An IPv6 address contains exactly 128 bits divided into eight 16-bit hexadecimal groups called hextets. The double-colon (::) notation can compress one consecutive sequence of zero hextets.
IPv6 Binary Result
Total Bits 128
Hextets 8
Bits per Hextet 16
Total Bytes 16
Expanded IPv6 Address
Normalized IPv6 Address
128-Bit Binary IPv6 Address

What Is an IPv6 Binary Address?

IPv6 uses 128-bit addresses, providing a much larger address space than the 32-bit format used by IPv4. IPv6 addresses are normally written as eight groups of hexadecimal digits separated by colons.

Each hexadecimal group represents 16 binary bits, so eight groups together contain exactly 128 bits.

8 hextets × 16 bits = 128 bits

How to Convert IPv6 to Binary

Each hexadecimal digit represents exactly four binary bits. Because a full IPv6 hextet contains four hexadecimal digits, every hextet corresponds to sixteen binary bits.

IPv6 hextet: 2001

Binary: 0010000000000001

The same conversion is performed for all eight hextets to produce the complete 128-bit IPv6 binary address.

IPv6 Binary Conversion Example

Consider this IPv6 address:

2001:db8::1

Before converting it to binary, the compressed zero section must be expanded.

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

Its first two hextets convert as follows:

2001 = 0010000000000001

0DB8 = 0000110110111000

Each zero hextet becomes sixteen zero bits, while the final hextet 0001 becomes fifteen zeros followed by one.

IPv6 Hextets

The eight sections of a conventional IPv6 hexadecimal address are often called hextets because each group contains up to four hexadecimal digits.

Component Size Range
One IPv6 Hextet 16 bits 0000–FFFF
Two Hextets 32 bits 8 hex digits
Eight Hextets 128 bits Complete IPv6 address

What Does :: Mean in IPv6?

IPv6 permits one consecutive sequence of zero-valued hextets to be replaced with a double colon. This makes long addresses containing many zeros easier to read.

Compressed: 2001:db8::1

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

A valid IPv6 address can use the double-colon compression notation only once because otherwise the number of omitted zero groups would become ambiguous.

IPv6 Leading-Zero Compression

Leading zeros inside an individual hextet may also be omitted when displaying an IPv6 address.

Full hextet: 0DB8

Short form: DB8

Similarly:

0001 → 1
0010 → 10
00AB → AB

Removing leading zeros changes only the textual representation. The underlying sixteen-bit hextet value remains identical.

Binary to IPv6 Conversion

To convert a 128-bit binary address back into IPv6 hexadecimal notation, divide the binary value into eight groups containing sixteen bits each.

0010000000000001
0000110110111000
0000000000000000

Each group is converted independently to a four-digit hexadecimal hextet and the eight results are joined using colons.

IPv6 Binary Group Example

Consider the 16-bit binary value:

1111111111111111

Grouping into hexadecimal nibbles gives:

1111 1111 1111 1111

F F F F

Hex: FFFF

Therefore one IPv6 hextet ranges from binary 0000000000000000 through 1111111111111111.

IPv6 Address Size

IPv6 addresses are four times wider than IPv4 addresses when measured in bits.

Protocol Address Width Primary Written Form
IPv4 32 bits Dotted decimal
IPv6 128 bits Colon-separated hexadecimal

BinaryCon therefore keeps IPv4 and IPv6 binary conversion as separate tools rather than combining them into one generic IP converter.

IPv4 vs IPv6 Binary Representation

An IPv4 address is normally divided into four 8-bit octets, while an IPv6 address is divided into eight 16-bit hexadecimal hextets.

IPv4: 4 × 8 bits = 32 bits

IPv6: 8 × 16 bits = 128 bits

The larger IPv6 width is one reason hexadecimal notation is used rather than writing IPv6 addresses directly in decimal.

Loopback IPv6 Address in Binary

The IPv6 loopback address is commonly written as:

::1

Its expanded hexadecimal form is:

0000:0000:0000:0000:0000:0000:0000:0001

Its 128-bit binary form contains 127 zero bits followed by one final 1 bit.

Unspecified IPv6 Address

The unspecified IPv6 address is written in compressed form as:

::

Its expanded representation is:

0000:0000:0000:0000:0000:0000:0000:0000

Its binary form therefore contains 128 zero bits.

Why Convert IPv6 to Binary?

Binary IPv6 conversion is useful when studying network addressing, examining packet headers, working with routing prefixes, debugging software, developing network tools, or learning how IPv6 hexadecimal notation maps to the actual address bits.

It can also make bit-level comparisons easier because every IPv6 hextet is shown as an exact sixteen-bit pattern rather than abbreviated hexadecimal text.

IPv6 Binary vs IPv6 Prefix Calculation

This page converts the address representation only. Although IPv6 networks commonly use prefixes such as /64, calculating a prefix range is a different operation.

This tool: IPv6 hexadecimal ↔ 128-bit binary

Not this tool: Network prefix range Host range Subnet size Routing range

Keeping those calculations separate avoids turning the converter into a broad IPv6 subnet calculator.

Important IPv6 Binary Notes

Important: this calculator converts IPv6 address representation only.

Every IPv6 address contains 128 bits.

A complete hexadecimal IPv6 address contains eight 16-bit hextets.

Each hextet ranges from 0000 through FFFF.

Leading zeros within hextets may be omitted in normal IPv6 notation.

The double-colon syntax may represent one consecutive sequence of omitted zero hextets.

This calculator accepts conventional hexadecimal IPv6 notation and complete 128-bit binary input.

Binary input may contain spaces or colons between 16-bit groups.

This page does not calculate IPv6 subnet prefixes, address ranges, EUI-64 identifiers, IPv4-mapped addresses or network capacity.

IPv6 Binary Converter FAQs

What does the IPv6 Binary Converter do?
It converts hexadecimal IPv6 addresses into complete 128-bit binary form and converts 128-bit binary addresses back into IPv6 hexadecimal notation.
How many bits are in an IPv6 address?
An IPv6 address contains exactly 128 bits.
How many hexadecimal groups are in IPv6?
A fully expanded IPv6 address contains eight hexadecimal groups, commonly called hextets.
How many bits are in one IPv6 hextet?
Each IPv6 hextet represents sixteen binary bits.
What does :: mean in an IPv6 address?
A double colon replaces one consecutive sequence of zero hextets and is used to shorten IPv6 addresses containing zeros.
Can this converter expand 2001:db8::1?
Yes. It expands the address to 2001:0db8:0000:0000:0000:0000:0000:0001 before generating the full binary representation.
What is ::1 in IPv6?
::1 is the IPv6 loopback address. Its complete form contains seven zero hextets followed by 0001.
Can I convert binary back to IPv6?
Yes. Enter exactly 128 binary bits. The calculator separates them into eight 16-bit groups and converts each group to hexadecimal.
Does this calculator calculate IPv6 subnets?
No. It converts the IPv6 address itself between hexadecimal and binary representations.
Is IPv6 128 bits or 64 bits?
The complete IPv6 address is 128 bits. A /64 prefix is common in IPv6 networking, but that does not make the address itself 64 bits.
Scroll to Top