开发者可以使用
IPv4 子网计算器
Calculate an IPv4 subnet's network, broadcast, mask, host range, usable host count, and binary representation locally in your browser.
交互式工具区
无需注册账号IPv4 subnet calculator
Core processing uses browser APIs and locally loaded libraries, not an upload endpoint. Optional analytics and device or clipboard access are separate privacy considerations. Use synthetic data; browser processing is not a guarantee of confidentiality.
Calculations run in this browser. IPv4 CIDR uses a prefix length from /0 to /32. A /31 has two usable addresses for point-to-point links; a /32 identifies one host route.
IPv4 CIDR reference table
| CIDR | Subnet mask | Wildcard mask | Total IPs | Usable hosts | Typical use |
|---|---|---|---|---|---|
| /0 | 0.0.0.0 | 255.255.255.255 | 4,294,967,296 | 4,294,967,294 | General subnetting |
| /1 | 128.0.0.0 | 127.255.255.255 | 2,147,483,648 | 2,147,483,646 | General subnetting |
| /2 | 192.0.0.0 | 63.255.255.255 | 1,073,741,824 | 1,073,741,822 | General subnetting |
| /3 | 224.0.0.0 | 31.255.255.255 | 536,870,912 | 536,870,910 | General subnetting |
| /4 | 240.0.0.0 | 15.255.255.255 | 268,435,456 | 268,435,454 | General subnetting |
| /5 | 248.0.0.0 | 7.255.255.255 | 134,217,728 | 134,217,726 | General subnetting |
| /6 | 252.0.0.0 | 3.255.255.255 | 67,108,864 | 67,108,862 | General subnetting |
| /7 | 254.0.0.0 | 1.255.255.255 | 33,554,432 | 33,554,430 | General subnetting |
| /8 | 255.0.0.0 | 0.255.255.255 | 16,777,216 | 16,777,214 | Private network (RFC 1918) |
| /9 | 255.128.0.0 | 0.127.255.255 | 8,388,608 | 8,388,606 | General subnetting |
| /10 | 255.192.0.0 | 0.63.255.255 | 4,194,304 | 4,194,302 | General subnetting |
| /11 | 255.224.0.0 | 0.31.255.255 | 2,097,152 | 2,097,150 | General subnetting |
| /12 | 255.240.0.0 | 0.15.255.255 | 1,048,576 | 1,048,574 | Private network (RFC 1918) |
| /13 | 255.248.0.0 | 0.7.255.255 | 524,288 | 524,286 | General subnetting |
| /14 | 255.252.0.0 | 0.3.255.255 | 262,144 | 262,142 | General subnetting |
| /15 | 255.254.0.0 | 0.1.255.255 | 131,072 | 131,070 | General subnetting |
| /16 | 255.255.0.0 | 0.0.255.255 | 65,536 | 65,534 | Private network / large LAN |
| /17 | 255.255.128.0 | 0.0.127.255 | 32,768 | 32,766 | General subnetting |
| /18 | 255.255.192.0 | 0.0.63.255 | 16,384 | 16,382 | General subnetting |
| /19 | 255.255.224.0 | 0.0.31.255 | 8,192 | 8,190 | General subnetting |
| /20 | 255.255.240.0 | 0.0.15.255 | 4,096 | 4,094 | General subnetting |
| /21 | 255.255.248.0 | 0.0.7.255 | 2,048 | 2,046 | General subnetting |
| /22 | 255.255.252.0 | 0.0.3.255 | 1,024 | 1,022 | General subnetting |
| /23 | 255.255.254.0 | 0.0.1.255 | 512 | 510 | General subnetting |
| /24 | 255.255.255.0 | 0.0.0.255 | 256 | 254 | Small LAN |
| /25 | 255.255.255.128 | 0.0.0.127 | 128 | 126 | General subnetting |
| /26 | 255.255.255.192 | 0.0.0.63 | 64 | 62 | General subnetting |
| /27 | 255.255.255.224 | 0.0.0.31 | 32 | 30 | General subnetting |
| /28 | 255.255.255.240 | 0.0.0.15 | 16 | 14 | AWS subnet minimum (IPv4) |
| /29 | 255.255.255.248 | 0.0.0.7 | 8 | 6 | General subnetting |
| /30 | 255.255.255.252 | 0.0.0.3 | 4 | 2 | Legacy point-to-point |
| /31 | 255.255.255.254 | 0.0.0.1 | 2 | 2 | RFC 3021 point-to-point |
| /32 | 255.255.255.255 | 0.0.0.0 | 1 | 1 | Single host route |
RFC 1918 private IPv4 ranges
| Range | Address span | Typical use |
|---|---|---|
| 10.0.0.0/8 | 10.0.0.0–10.255.255.255 | Large private networks |
| 172.16.0.0/12 | 172.16.0.0–172.31.255.255 | Private networks |
| 192.168.0.0/16 | 192.168.0.0–192.168.255.255 | Home and small-office LANs |
Private ranges are not publicly routable. This tool calculates address ranges; it does not check whether a subnet is available on your network.
相关工具
查询我的 IP 地址
查看你的网络连接在互联网上使用的公网 IP 地址及部分浏览器信息。位置仅为大致区域,并非精确地址。
网络连接状态检测
在一个页面查看公网 IP、网络延迟和连接速度,直接通过浏览器快速诊断网络状况。
DNS 记录查询
查询域名的 A、AAAA、MX、CNAME、TXT、NS、SOA 和 CAA 记录。在浏览器中检查网站和电子邮件的 DNS 配置。
文件哈希校验器
使用浏览器 API 和本地 MD5 实现计算本地文件的 MD5、SHA-1、SHA-256 和 SHA-512 摘要。文件不会上传。
WebSocket 测试器
连接到您选择的 WebSocket 端点,发送消息,并在浏览器日志中查看实时事件。消息仅发送到该端点。