IPv4

IPv4 子网计算器

计算子网、CIDR、主机范围等信息

🔒 100% client-side — your data never leaves this page
输入
🔒 100% client-side
输出
Enter an IP address with CIDR notation to calculate subnet details

About this tool

支持通过 CIDR 表示法(如 192.168.1.0/24)或子网掩码格式计算 IPv4 子网信息。可即时查看网络地址、广播地址、首个与最后一个可用主机、总地址数、可用主机数、通配符掩码、IP 类别以及二进制表示。内置常用 CIDR 预设,所有计算均在浏览器本地完成。

Frequently Asked Questions

What is CIDR notation?

CIDR (Classless Inter-Domain Routing) notation represents an IP address followed by a slash and prefix length, such as 192.168.1.0/24. The number indicates how many bits are used for the network portion.

What is the difference between network and broadcast address?

The network address identifies the subnet itself, while the broadcast address is used to send traffic to all hosts within that subnet.

How many usable hosts are in a /24 subnet?

A /24 subnet has 256 total addresses, with 254 usable hosts (excluding the network and broadcast addresses).