Convert IPv6 to Binary
Convert IPv6 to 128-bit binary with type detection, CIDR support, IPv4-mapped, zone identifiers. Free, offline, client-side.
- Runs in your browser
- Nothing uploaded
- Free, no sign-up
Convert IPv6 addresses to 128-bit binary. Handles compressed (::), full, IPv4-mapped (::ffff:1.2.3.4), and zone-identified (fe80::1%eth0) forms. Supports CIDR (/N) with BigInt host counts. Tags type per RFC 4291: link-local, unique-local, multicast, documentation, Teredo, 6to4, global unicast.
How to Use Convert IPv6 to Binary
- Paste IPv6 addresses - one per line. Any standard form works:
2001:db8::1,fe80::1%eth0,::ffff:192.168.1.1, or full2001:0db8:0000:…:0001. Add a CIDR suffix (/64) for subnet info. - Pick output format - Dotted binary mirrors the 8 × 16-bit hextet structure (default). Continuous gives a single 128-bit string. Compressed canonicalizes per RFC 5952 (round-trip with the original). Full uncompressed hex pads every hextet to 4 digits.
- Hit Convert - or just type; 200 ms debounce. Ctrl+Enter (⌘+Enter on Mac) forces a recompute.
- Read the breakdown - each entry shows: input → output (truncated if very long), type tag (Loopback / Link-local / Multicast / etc.), zone identifier if any, the canonical compressed form, and the full uncompressed hex for sanity-checking.
- For CIDR entries - prefix, network address (compressed), and host count (
2^(128 − prefix), returned as a BigInt-accurate decimal string - common /64 prefix gives18,446,744,073,709,551,616hosts). - Check the stats line - total, valid, errors, CIDR count. Per-line errors don't abort the batch - invalid lines are flagged red, valid lines still convert.
- Copy or download - Copy puts just the binary outputs (one per line) on your clipboard; Download saves
ipv6-to-binary.txt.
Frequently Asked Questions
How does the :: expansion work?
The :: sequence stands for “one or more all-zero hextets, whatever it takes to reach 8 total.” Per RFC 4291, only ONE :: is allowed per address. We split on ::, count hextets on either side (plus any embedded IPv4 as 2 hextets), then fill the gap with zero hextets. 2001:db8::1 → 2001:0db8:0000:0000:0000:0000:0000:0001.
What does the “IPv4-mapped” form look like?
RFC 4291 §2.5.5.2 defines ::ffff:0:0/96 for IPv4 addresses inside IPv6 contexts. Format: ::ffff:192.168.1.1 – 80 zero bits, 16 ones, then the 32-bit IPv4 address. The IPv4 dotted-decimal portion is converted to two hextets (here c0a8 and 0101). Common in dual-stack sockets and packet captures.
What’s a zone identifier?
RFC 6874’s % notation for link-local addresses. Since fe80::/10 isn’t globally unique, you need to specify WHICH network interface – e.g., fe80::1%eth0 means “fe80::1 on the eth0 interface.” We strip the zone identifier before binary conversion (it’s not part of the address bits) but keep it tagged in the breakdown.
How are IPv6 types detected?
We pack the 128-bit address into a BigInt and range-check against the IANA IPv6 Special-Purpose Address Registry: ::/128 unspecified, ::1/128 loopback, ::ffff:0:0/96 IPv4-mapped, fe80::/10 link-local, fc00::/7 unique-local, ff00::/8 multicast, 2001:db8::/32 documentation, 2001::/32 Teredo, 2002::/16 6to4, otherwise 2000::/3 global unicast.
Why BigInt for host counts?
IPv6 prefixes range from /0 to /128. A /64 subnet has 2^64 = 18,446,744,073,709,551,616 hosts – already past JavaScript’s Number.MAX_SAFE_INTEGER (~9 × 10^15). BigInt is the only way to compute and display these counts accurately. We render as a decimal string to avoid the float imprecision regular Number would silently introduce.
Is there a “broadcast” address in IPv6?
No. IPv6 dropped broadcasts entirely (use multicast like ff02::1 for “all nodes on this link” instead). So unlike IPv4 – where host count is 2^(32-prefix) − 2 reserving network and broadcast – IPv6 host count is just 2^(128-prefix). We don’t subtract 2.
What’s the difference between compressed and full hex?
Full hex is the unambiguous 8-group form with every hextet padded to 4 digits: 2001:0db8:0000:0000:0000:0000:0000:0001. Compressed canonical (RFC 5952) strips leading zeros and replaces the longest run of all-zero hextets with ::: 2001:db8::1. Both represent the same address; compressed is what humans use, full hex is unambiguous for parsing.
How long is the binary output?
Exactly 128 bits in continuous mode. In dotted mode it’s 128 bits + 7 separators = 135 characters. Each hextet contributes 16 bits, and there are 8 hextets per IPv6 address.
Is my data uploaded?
No. All parsing, packing, and binary conversion runs in your browser. Open DevTools → Network and watch zero requests fire after the page loads. Safe for internal network audits, security work, or anything that shouldn’t leak.
Does the tool work offline?
Yes. Total bundle is under 22 KB (HTML + CSS + JS, BigInt is native to ES2020). Once the page loads, disconnect and keep converting. Useful for air-gapped diagnostic work.
Related Tools
Binary to IPv6 Converter →
Convert 128-bit binary to IPv6 addresses - RFC 5952 canonical form, special-range detection. Free,…
Calculate Bitwise AND of Binary Values →
Calculate Binary Values Online Free - Fast and accurate binary computations for developers, students,…
Binary to Decimal Converter →
Convert extremely large machine binary strings natively into format decimal bounds infinitely fast offline…
Calculate Binary Addition →
Calculate Binary Addition numbers with carry visualization and multi-format output. Free, offline, client-side, instant…
Binary to Gray Code Converter →
Convert binary to Gray code (BRGC) - XOR algorithm, bit-width preserved, step-by-step display, BigInt.…
Binary to Image Converter →
Render binary as a pixel image - multiple color schemes, pixel scaling, PNG export,…
Binary to IP Converter →
Convert 32-bit binary to IPv4 or 128-bit binary to IPv6 - with classification, canonical…
Binary to Negabinary Converter →
Convert binary to negabinary (base -2) - handles signed input, BigInt precision, no sign…
Convert Binary to Octal →
Convert binary to octal (base 8) - 3-bit grouping, prefix options, BigInt precision, batch…
Binary to String Converter →
Decode binary to text - UTF-8, Latin-1, or 7-bit ASCII, auto-detect format, handle emoji.…
Convert Decimal to Binary →
Convert decimal numbers to binary instantly, one value or a whole list at a…
Convert Gray Code to Binary →
Decode Gray code (reflected binary) to standard binary, decimal, or hex. BigInt-safe, per-line errors,…