🧮 IPv6 转二进制IPv6 to Binary Converter
把 IPv6 地址转换为 128 位二进制:自动展开 :: 缩写,支持内嵌 IPv4(::ffff:192.0.2.1)和 /前缀长度,可按 16 位分组显示并标出网络位。每行一个地址。Convert IPv6 addresses to 128-bit binary. :: shorthand is expanded, embedded IPv4 (::ffff:192.0.2.1) and /prefix lengths work, and output can be grouped by 16-bit hextet with the network bits marked. One address per line.
使用说明与常见问题How-to & FAQ
「IPv6 转二进制」是什么?What is the IPv6 to Binary Converter tool?
把 IPv6 地址转换为 128 位二进制:自动展开 :: 缩写,支持内嵌 IPv4(::ffff:192.0.2.1)和 /前缀长度,可按 16 位分组显示并标出网络位。每行一个地址。Convert IPv6 addresses to 128-bit binary. :: shorthand is expanded, embedded IPv4 (::ffff:192.0.2.1) and /prefix lengths work, and output can be grouped by 16-bit hextet with the network bits marked. One address per line.
如何使用「IPv6 转二进制」?How do I use the IPv6 to Binary Converter tool?
在「IPv6 转二进制」中,把内容粘贴或输入到上方输入框,结果会实时显示在下方,点击「复制结果」即可复制。In the IPv6 to Binary Converter: Paste or type into the input box; the result appears below instantly — click "Copy result" to copy it.
IPv6 的 :: 是什么意思?What does :: mean in IPv6?
双冒号代表一段或多段连续的 0000,每个地址只能出现一次。例如 2001:db8::1 展开为 2001:0db8:0000:0000:0000:0000:0000:0001。The double colon stands for one or more consecutive groups of 0000 and may appear only once. 2001:db8::1 expands to 2001:0db8:0000:0000:0000:0000:0000:0001.
前缀长度 /64 在二进制里怎么看?How does a /64 prefix look in binary?
前 64 位是网络前缀,后 64 位是接口标识。勾选“标出前缀边界”后,结果中会用 | 把两部分分开,便于手工计算子网。The first 64 bits are the network prefix and the last 64 the interface ID. With 'Mark the prefix boundary' on, a | separates the two parts so you can work out subnets by hand.
支持 IPv4 映射地址和区域 ID 吗?Are IPv4-mapped addresses and zone IDs supported?
支持 ::ffff:192.0.2.1 这类末尾带 IPv4 的写法(转换为最后 32 位);链路本地地址后的 %eth0 区域 ID 会被忽略,因为它不属于 128 位地址本身。Yes. A trailing IPv4 part such as ::ffff:192.0.2.1 becomes the last 32 bits. A zone ID like %eth0 on a link-local address is ignored, because it is not part of the 128-bit address.
输出为什么有两行?| 放在哪里?Why are there two output lines, and where does the | go?
勾选“同时显示展开后的地址”时,每个地址输出两行:第一行是展开后的完整地址(含 /前缀),第二行是二进制;取消勾选就只输出二进制。| 放在第 N 位之后(N 为前缀长度);当边界正好落在两个 16 位分组之间时,| 紧跟在前一组后面,再接分组符号,例如 /32 显示为 …10111000| 0000…。With 'Also show the expanded address' on, each address gives two lines: the expanded address (with its /prefix) and then the binary. Untick it to get only the binary. The | goes right after bit N, where N is the prefix length; when that falls exactly between two 16-bit groups, the | is attached to the end of the earlier group, followed by the separator, so /32 shows as …10111000| 0000….
需要联网吗?Does it need an internet connection?
不需要。「IPv6 转二进制」的解析和计算都在浏览器本地完成,不会向任何服务器发送请求。No. The IPv6 to Binary Converter parses and calculates entirely in your browser and sends no network requests.
「IPv6 转二进制」免费吗?需要注册吗?Is the IPv6 to Binary Converter free? Do I need an account?
「IPv6 转二进制」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The IPv6 to Binary Converter is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.