IPv6 ↔ Binary Converter

Convert IPv6 addresses to/from binary notation

Quick Convert

Batch Input

Results

Results will appear here

The IPv6 to Binary Converter transforms IPv6 addresses into their full 128-bit binary representation and back. Enter an address like 2001:db8::1 to see every one of the 128 bits laid out, or paste a 128-bit binary string to get the IPv6 address. The tool reveals prefix boundaries, address structure, and the bit-level layout of global unicast, link-local, multicast, and other IPv6 address types.

Understanding IPv6 Binary Representation

IPv6 addresses are 128 bits long -- four times the length of IPv4. Nobody does manual binary math with 128-bit numbers in day-to-day operations, but understanding the binary structure of IPv6 is still important for several practical reasons. The binary view is how you truly understand why address types exist, why certain prefix lengths are standard, and how the address space is organized from the top down. When you look at an IPv6 address in binary, the design decisions behind the protocol become visible in a way that hexadecimal notation alone does not reveal.

The key insight is that IPv6 address types are defined by their high-order bits. A global unicast address starts with binary 001 (the 2000::/3 range). A link-local address starts with 1111111010 (the fe80::/10 range). A multicast address starts with 11111111 (the ff00::/8 range). In hexadecimal, these prefixes are easy to memorize, but the binary view shows you that the designers chose these specific bit patterns to create a clean hierarchy where routers can make forwarding decisions by examining just the first few bits.

This converter is most useful when you are learning IPv6 fundamentals, studying for certification exams like CCNA or CCNP, analyzing address allocation policies, or debugging transition mechanisms such as 6to4 where IPv4 addresses occupy specific bit positions within the IPv6 address. The tool expands any IPv6 address format -- including compressed notation -- to its full 128-bit binary output grouped for readability.

How to Convert an IPv6 Address to Binary

  1. Enter any IPv6 address, including compressed notation (e.g., 2001:db8::1)
  2. The tool expands the address to its full form and converts each hextet to 16 binary digits
  3. View the complete 128-bit binary output grouped by 16-bit sections
  4. To reverse the conversion, enter a 128-bit binary string to get the IPv6 address

IPv6 to Binary Conversion Examples

IPv6 AddressBinary (first 32 bits shown)Full Length
2001:0db8::10010000000000001.0000110110111000...128 bits
fe80::11111111010000000.0000000000000000...128 bits
::10000000000000000.0000000000000000...0001128 bits
ff02::11111111100000010.0000000000000000...128 bits

Single Hextet Conversion Reference

Each hexadecimal digit maps to exactly 4 binary digits:

HexBinaryHexBinary
0000081000
1000191001
20010A1010
30011B1011
40100C1100
50101D1101
60110E1110
70111F1111

For example, the hextet 2001 converts to 0010 0000 0000 0001, and 0db8 converts to 0000 1101 1011 1000.

When to Use the IPv6 Binary Converter

  • Understanding prefix boundaries -- see exactly where a /48 or /64 prefix ends and the host identifier begins
  • Analyzing address types -- verify that link-local addresses start with the fe80 bit pattern (1111111010...)
  • Learning IPv6 architecture -- visualize how the 128 bits divide into global routing prefix, subnet ID, and interface ID
  • Debugging 6to4 and transition mechanisms -- see embedded IPv4 addresses at specific bit positions within IPv6 addresses
  • Certification study -- practice binary conversion for IPv6 exam questions on CCNA, CCNP, or equivalent exams
  • Reverse DNS planning -- understand nibble boundaries that determine how PTR records are delegated in the ip6.arpa zone

How IPv6 Binary Addressing Works

IPv6 addresses are 128 bits long -- four times the size of IPv4. The address space is written in eight groups of four hexadecimal digits (hextets) separated by colons, but the binary view reveals the actual bit-level structure that routers use.

Global Unicast Address Structure

A typical global unicast address in the 2000::/3 range has a well-defined binary structure:

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

|-- 3 bits --|--- 45 bits ---|-- 16 bits --|------- 64 bits -------|
   001          Global          Subnet         Interface
               Routing          ID             Identifier
               Prefix

The first 3 bits (001) identify the address as global unicast. The next 45 bits typically form the global routing prefix assigned by an ISP or RIR. Bits 49-64 provide the subnet ID, and the last 64 bits form the interface identifier.

Recognizing Address Types by Binary Prefix

The high-order bits of an IPv6 address determine its type:

Binary PrefixAddress TypeExample
001Global unicast2001:db8::1
1111111010Link-localfe80::1
11111101Unique local (ULA)fd00::1
11111111Multicastff02::1
00000000...0001Loopback::1

Prefix Length Visualization

IPv6 prefix lengths commonly fall on nibble (4-bit) boundaries. The binary view makes these boundaries visible:

Address: 2001:0db8:abcd:0012:0000:0000:0000:0001
Prefix:  /48

Binary:  00100000 00000001 00001101 10111000 10101011 11001101 | 00000000 00010010 ...
         |-------------- 48-bit prefix ----------------------| |-- subnet + host --|

EUI-64 Interface Identifiers

Many IPv6 implementations generate the lower 64 bits of an address from the interface's MAC address using the Modified EUI-64 format. In binary, you can see how the 48-bit MAC is split at the midpoint, the ff:fe bytes are inserted, and the seventh bit (the universal/local bit) is flipped. This transformation is much easier to follow in binary than in hexadecimal.

Practical Considerations for IPv6 Binary

While nobody performs manual binary arithmetic on 128-bit addresses in production, understanding the binary layout pays dividends when you are designing address plans or troubleshooting. The standard /64 subnet boundary means you always have 64 bits for network identification and 64 bits for host identification. This fixed split simplifies many aspects of IPv6 but also means that subnets smaller than /64 are non-standard and break SLAAC (Stateless Address Autoconfiguration).

When working with address allocations, the binary view clarifies the hierarchy. A typical enterprise might receive a /48 from its ISP, giving it 16 bits of subnet space (bits 49-64) for 65,536 possible subnets. Each of those subnets is a /64. Seeing this in binary makes the allocation arithmetic obvious: 48 bits of global prefix plus 16 bits of subnet ID plus 64 bits of interface ID equals 128 bits total.

For reverse DNS, IPv6 PTR records are delegated on nibble boundaries. A /48 allocation means your reverse zone covers 80 nibbles (the remaining 80 bits expressed as hex digits in reverse). Understanding how prefix lengths align with nibble boundaries -- and seeing it in binary -- helps you set up proper ip6.arpa delegation without mistakes.

Frequently Asked Questions

Why is IPv6 binary conversion useful if no one calculates it manually?

While manual binary math is rare with 128-bit addresses, the binary view is essential for understanding address allocation hierarchies, verifying prefix boundaries, recognizing address types by their high-order bits, and debugging transition mechanisms like 6to4 where IPv4 addresses are embedded at specific bit offsets.

How many bits are in an IPv6 address?

An IPv6 address is exactly 128 bits long, written as eight 16-bit groups (hextets) in hexadecimal notation. This provides approximately 3.4 x 10^38 unique addresses, compared to roughly 4.3 billion for IPv4's 32 bits.

What is a nibble boundary and why does it matter for IPv6?

A nibble is 4 bits, which corresponds to a single hexadecimal digit. IPv6 prefix lengths are typically assigned on nibble boundaries (/4, /8, /12, /16, /32, /48, /64) because the hexadecimal notation aligns cleanly with 4-bit groups. Prefixes on nibble boundaries simplify reverse DNS delegation and address plan documentation.

How does the EUI-64 interface identifier appear in binary?

The Modified EUI-64 process takes a 48-bit MAC address (e.g., 00:1A:2B:3C:4D:5E), splits it into two 24-bit halves, inserts FF:FE in the middle, and flips the seventh bit (universal/local). In binary, this means bit 6 of the first byte changes from 0 to 1 (or vice versa), producing a 64-bit interface identifier. The binary view makes this bit-flip operation visible where hexadecimal obscures it.

Why do most IPv6 subnets use a /64 prefix length?

The /64 boundary is a design decision baked into IPv6. Stateless Address Autoconfiguration (SLAAC), which allows hosts to generate their own addresses without DHCP, requires exactly 64 bits for the interface identifier. Using anything other than /64 for end-user subnets breaks SLAAC and several other IPv6 mechanisms. The binary view clearly shows this clean 64/64 split.

Related Tools

IPparseβ€’Free Network & Subnet Calculator Tools

Β© 2026 IPparse. All tools run locally in your browser.

100% Privacy-First β€’ No Data Collected