DevToolsHub Free · Fast · 100% in your browser

Subnet / CIDR Calculator

Calculate IPv4 network address, broadcast, usable host range, subnet mask and wildcard from CIDR notation.

CIDR192.168.1.0/24
Network address192.168.1.0
Broadcast address192.168.1.255
Usable host range192.168.1.1 – 192.168.1.254
Total addresses256
Usable hosts254
Subnet mask255.255.255.0
Wildcard mask0.0.0.255
Binary mask11111111.11111111.11111111.00000000
IP classC
TypePrivate (RFC 1918)

Prefix reference

PrefixMaskAddresses
/32255.255.255.2551
/31255.255.255.2542
/30255.255.255.2524
/29255.255.255.2488
/28255.255.255.24016
/27255.255.255.22432
/26255.255.255.19264
/25255.255.255.128128
/24255.255.255.0256
/23255.255.254.0512
/22255.255.252.01,024
/21255.255.248.02,048
/20255.255.240.04,096
/19255.255.224.08,192
/18255.255.192.016,384
/17255.255.128.032,768
/16255.255.0.065,536
/15255.254.0.0131,072
/14255.252.0.0262,144
/13255.248.0.0524,288
/12255.240.0.01,048,576
/11255.224.0.02,097,152
/10255.192.0.04,194,304
/9255.128.0.08,388,608
/8255.0.0.016,777,216

About this subnet and CIDR calculator

Calculate IPv4 subnet details from CIDR notation: network address, broadcast address, first and last usable host, number of hosts, subnet mask and wildcard mask. Handy for cloud VNets/VPCs, firewall rules and network planning.

How to use the Subnet / CIDR Calculator

  1. Enter an IP address with prefix, e.g. 10.0.0.0/24.
  2. Read the network range, mask and host count.
  3. Copy any value you need.

Example

192.168.1.0/24  →  mask 255.255.255.0, hosts 192.168.1.1 – 192.168.1.254 (254 usable)

Frequently asked questions

How many hosts are in a /24?

A /24 has 256 addresses, of which 254 are usable hosts (network and broadcast are reserved).

Why does Azure or AWS show fewer usable addresses?

Cloud providers reserve extra addresses in each subnet (Azure and AWS reserve 5).

Is my data safe?

Yes. The tool runs entirely in your browser using WebAssembly. Nothing you type or upload is sent to a server, logged or stored.

Is it free?

Yes, completely free with no sign-up, no limits and no watermarks. It also works offline once the page has loaded.

An unhandled error has occurred. Reload ✕
"token": "b6f3e467ae89404282beba5b41ef3630"