Free Online Utility • Binary Studio • Base-2 Engine

Convert IPv6 Address to Binary

Expand compressed IPv6 addresses (including :: and IPv4-mapped notation) into exact 128-bit binary strings.

Formula & Quick Reference Base-2 Engine
IPv6 = 8 x 16-bit hextets = 128 exact bits
::1 -> 7 zero hextets + 0000000000000001
::1Loopback (127 zeros + 1)
fe80::/10Link-Local (1111111010...)
2001:db8::Documentation Prefix
IPV6 TO 128-BIT BINARY
128-Bit Binary IPv6 Output

        
100% client-side exact Binary Engine Instant

Session Calculation Log

No entries recorded in this session yet.

How Convert IPv6 Address to Binary Works

Convert IPv6 Address to Binary expands shortened :: notation and IPv4-mapped suffixes into all 8 full 16-bit hextets and outputs the complete 128-bit binary representation.

Binary arithmetic and base-2 encoding form the physical foundation of digital microprocessors, network packets, memory buffers, and cryptographic primitives. Every calculation in this utility runs directly inside your browser using exact JavaScript BigInt and typed-array pipelines, so arbitrary-length bitstreams, 128-bit addresses, and raw byte buffers never suffer from 53-bit IEEE floating-point truncation or server latency.

RFC 4291 / RFC 5952 IPv6 Expansion

Expand "::" to (8 - left - right) zero hextets
For each 16-bit hextet h_i: bin16(parseInt(h_i, 16))

Each IPv6 address occupies 128 bits (4 times wider than IPv4). Viewing all 8 hextets in binary exposes the global routing prefix (/48), subnet ID (/64), and 64-bit interface identifier.

Worked Reference Examples

InputOutputStep / Bit Note
::10000000000000000:...:0000000000000001128-bit IPv6 loopback
fe80::11111111010000000:...:0000000000000001Link-local unicast
2001:4860:4860::88880010000000000001:...1000100010001000Global unicast (2000::/3)

Practical Engineering Applications

IPv6 Subnetting & Prefix Allocation

Inspect exact /48, /56, and /64 prefix boundaries across all 128 bits.

Dual-Stack Transition Debugging

Verify IPv4-mapped IPv6 addresses such as ::ffff:192.0.2.128 in raw binary.

Precision, Edge Cases & Best Practices

Supports optional CIDR suffixes (e.g. /64) and zone indices (e.g. %eth0) by cleanly isolating the 128-bit address portion.

All input parsing strips harmless formatting whitespace, underscores, or common prefixes such as 0b where applicable, while preserving exact bit order and padding width so outputs drop straight into C/C++, Rust, Verilog, VHDL, Python, and embedded firmware test harnesses.

Frequently Asked Questions

How many bits are in an IPv6 address?
Every IPv6 address is exactly 128 bits long, written as eight 16-bit hexadecimal groups separated by colons.
Does this handle :: zero compression and IPv4-mapped addresses?
Yes — both double-colon shorthand (like fe80::1) and hybrid IPv4-mapped notation (::ffff:192.0.2.128) expand accurately.
Can I copy the raw 128-bit binary string without colons?
Yes — select 128-bit Continuous in the Binary Grouping dropdown.