免费 · 网络与 IT 基础设施
IP 地址转换器.
在点分十进制、整数、十六进制、二进制、IPv4 映射 IPv6 和反向 DNS 形式之间转换 IP 地址,并压缩或展开 IPv6。
- Dotted decimal
- 192.168.1.10
- Decimal integer
- 3232235786
- Hexadecimal
- 0xC0A8010A
- Dotted hexadecimal
- C0.A8.01.0A
- Dotted binary
- 11000000.10101000.00000001.00001010
- Octal (dotted)
- 0300.0250.01.012
- IPv4-mapped IPv6
- ::ffff:192.168.1.10 · ::ffff:c0a8:10a
- 6to4 prefix
- 2002:c0a8:10a::/48
- NAT64 (64:ff9b::/96)
- 64:ff9b::c0a8:10a
- Reverse DNS name
- 10.1.168.192.in-addr.arpa
- Address type
- Private (RFC 1918)
- Historic class
- C
- Octal is shown for reference: some tools read leading zeros as octal, so 010.0.0.1 can mean 8.0.0.1. This converter rejects leading zeros in dotted input.
如何转换 IP 地址
- 将地址粘贴到“IP address in any format”中:点分十进制如
192.168.1.10、整数如3232235786、十六进制如0xC0A8010A,或 IPv6 地址。 - “Read integers and hex as”保持 Auto;如果较小的数字表示 IPv6 地址,可强制选择 IPv4 或 IPv6。
- 从结果中复制所需的表示形式。
示例:192.168.1.10 的十进制为 3232235786,十六进制为 0xC0A8010A,二进制为 11000000.10101000.00000001.00001010。其反向 DNS 名称为 10.1.168.192.in-addr.arpa,IPv4 映射的 IPv6 形式为 ::ffff:192.168.1.10。
限制与支持格式
输入内容在您的设备上处理。
英语技术说明
Dotted IPv4 with leading zeros is rejected because some systems read it as octal. Everything is calculated in your browser; nothing is sent or probed on the network.
The input is parsed into one integer (32 or 128 bits) and printed in every notation. IPv6 compression follows RFC 5952; embedded IPv4 addresses are detected in IPv4-mapped, 6to4 and NAT64 forms.
192.168.1.10 = 3232235786 = 0xC0A8010A = ::ffff:192.168.1.10; 2001:0DB8:0000:0000:0000:ff00:0042:8329 compresses to 2001:db8::ff00:42:8329.
常见问题
如何把 IP 地址转换成数字?
每个八位组是一个 256 进制的数位:192 × 256³ + 168 × 256² + 1 × 256 + 10 = 3232235786。转换器会自动计算,并同时给出十六进制和二进制。
能把十进制数字转换回 IP 地址吗?
可以。粘贴整数即可;在 Auto 模式下,不超过 4,294,967,295 的数字按 IPv4 解读,更大的按 IPv6 解读。
我的地址会被发送到服务器吗?
不会。转换在您的浏览器中完成,不进行任何查询或 ping。