CIDR subnet calculator

CIDR notation writes an IPv4 network as an address and mask, like 192.168.1.0/24. Get the range, broadcast, wildcard mask, host count and subnets. Free.

Network

  • Addresses
  • Usable hosts
  • Network address
  • Broadcast
  • Mask
  • Wildcard mask
  • Host range

Bits

Address
Mask
Network

How to use it in three steps

Step by step, with this page's example.

  1. 01

    Enter an address with a mask, such as 192.168.1.0/24.

  2. 02

    Read the range, broadcast and host count.

  3. 03

    Split the network into smaller subnets if needed.

What you enter

192.168.1.0/24

What you get
Mask 255.255.255.0
Host range 192.168.1.1 - 192.168.1.254 (254)
Broadcast 192.168.1.255

Questions

What is CIDR?
It is a way of writing an IP network as an address plus the number of mask bits, for example 192.168.1.0/24, where /24 means the mask 255.255.255.0. The tool works out the range, broadcast, host count and subnets from it.
How many hosts do a /24, /16 and /8 network have?
A /24 has 254 usable addresses, a /16 has 65,534 and a /8 has 16,777,214. The network address and the broadcast are subtracted from the total. The exceptions are /31 (point-to-point link, 2 addresses) and /32 (a single address).
Why does /24 have 254 hosts, not 256?
The first address is the network address and the last is the broadcast. That leaves 254 for devices.
What is a wildcard mask?
It is the inverted subnet mask, for example 0.0.0.255 for /24. It is used in access lists and routing protocol rules, and the tool shows it for every network.
How does this help with a firewall?
A rule for a whole subnet is one CIDR entry. The tool shows which addresses that entry covers.

Tell us what you want to build.

A free quote comes back within an hour during working hours. You talk to the person who writes the code.