Network & IP tools

Subnet / CIDR Calculator

Calculate the network, broadcast, mask, wildcard and usable host range for any IPv4 CIDR — instantly in your browser. Free.

Subnet / CIDR calculator

Enter an IPv4 address with a prefix (10.0.0.5/24), an IP and mask, or a bare IP.

254
Usable hosts
256
Total addresses
/24
Prefix
C · Private (RFC 1918)
Class / type
Network address192.168.1.0
Broadcast address192.168.1.255
Subnet mask255.255.255.0
Wildcard mask0.0.0.255
First usable host192.168.1.1
Last usable host192.168.1.254
CIDR notation192.168.1.0/24

What this subnet calculator does

Computes network and broadcast addresses
Shows subnet and wildcard masks
Gives the usable host range and count
Accepts CIDR, IP + mask, or bare IP
Detects class and private/public type
Runs entirely in your browser

Common use cases

  1. 1Planning an IP address scheme
  2. 2Splitting a network into subnets
  3. 3Configuring a router or firewall
  4. 4Checking which subnet an IP is in
  5. 5Sizing a subnet for N hosts
  6. 6Learning CIDR and subnetting

Related tools

About subnetting and CIDR

CIDR notation writes a network as an address plus a prefix length, like 10.0.0.0/24 — the prefix says how many leading bits are the network portion. The remaining host bits determine how many addresses the subnet holds.

This calculator derives the network and broadcast addresses, the subnet and wildcard masks, and the usable host range using exact 32-bit math in your browser. The usable count excludes the network and broadcast addresses (except for /31 and /32, which follow their own conventions).

More Free Tools Where This Came From

This utility is one of dozens of free, no-login tools for DNS, email, SEO and developers — all instant and private.

HostCloud.in  ·  Pune, India  ·  Serving 34,987+ Websites Since 2020

FREQUENTLY ASKED QUESTIONS

Got Questions? We Have Answers.

What input does it accept?

CIDR notation like 10.0.0.5/24, an IP with a subnet mask, or a bare IP address (treated as /32).

What does it calculate?

The network and broadcast addresses, subnet and wildcard masks, first and last usable host, total and usable host counts, and the address class and type.

Why is the usable count two less than the total?

The network and broadcast addresses can't be assigned to hosts, so a /24 has 256 total but 254 usable. /31 and /32 are special cases and are handled correctly.

Does it run in my browser?

Yes. All the math is done locally with exact 32-bit operations — nothing is sent anywhere.