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.
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.
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.
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:
Before converting it to binary, the compressed zero section must be expanded.
Its first two hextets convert as follows:
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.
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.
Short form: DB8
Similarly:
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.
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:
Grouping into hexadecimal nibbles gives:
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.
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:
Its expanded hexadecimal form is:
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:
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.
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
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.