Subnet Calculator

支持 IPv4 CIDR(如 192.168.1.10/24)或 IP + 子网掩码。将计算网络地址、广播、通配符、可用主机范围及 IP 二进制/十六进制。

掩码位数与点分十进制、二进制、十六进制互转(两个输入留任意一个即可,同时填则按位数优先)。

按需要的主机数推荐最小满足的子网掩码,并给出可用的网络范围。

把网段平均划分为 2 的幂个子网(2/4/8/16…),列出每个子网的网络地址、主机范围与广播地址。

提示:四个功能均为浏览器本地计算,输入不会上传。

What Is a Subnet Calculator?

A subnet calculator is an IPv4 network planning tool with four modules: network calculation, mask conversion, reverse mask lookup and subnet division. All calculations run locally in the browser and your input is never uploaded to a server.

Main Features

  • Network calculator: compute network address, broadcast address, usable host range and binary/hex forms from an IP and CIDR or mask
  • Mask conversion: convert between prefix length, dotted-decimal, binary and hexadecimal
  • Reverse mask lookup: recommend the smallest mask that satisfies the required number of hosts
  • Subnet division: split a network into a power-of-two number of subnets and list each subnet

Use Cases & Notes

Ideal for network planning, router configuration and teaching demos. The number of subnets must be a power of two (2/4/8/16...).

How to Use

  1. Select the corresponding tab
  2. Enter the IP, CIDR or mask as prompted
  3. Click Calculate to view the results and copy them if needed