Use this free CIDR calculator to work out an IPv4 network from its address and prefix. Enter a block such as 192.168.1.10/24, and the tool shows the network and broadcast addresses, the subnet and wildcard masks, the usable host range, and the type of address range it falls in. It can also check whether an address is inside the block and split the block into smaller subnets. Everything runs in your browser.
The tool does the arithmetic. Check the result against your own address plan before you configure a router, firewall, or cloud network.
How CIDR notation works
The number after the slash is the prefix length: how many leading bits identify the network. The remaining bits identify hosts. A /24 has 32 - 24 = 8 host bits, so it holds 256 addresses. Two of them are reserved for the network and broadcast addresses, which leaves 254 usable hosts.
Worked example
For 192.168.1.10/24, the mask is 255.255.255.0 and the wildcard mask is 0.0.0.255. The network is 192.168.1.0, the broadcast is 192.168.1.255, and the usable hosts run from 192.168.1.1 to 192.168.1.254. The range is private under RFC 1918.
Special cases
- /31: a point-to-point link with two usable addresses (RFC 3021), so no broadcast is reserved.
- /32: a single address, used for host routes and loopback addresses.
- Address types: the tool labels the range as private, loopback, link-local, shared (100.64.0.0/10), multicast, or documentation when the whole block falls inside one of those ranges.
Common CIDR mistakes
- Using the wrong network address. A host address such as 192.168.1.10/24 is inside the network 192.168.1.0/24, so route and firewall rules should use the network form.
- Assigning the broadcast or network address to a host. Those two addresses are reserved in most subnets.
- Overlapping blocks. Two networks that share addresses cause routing conflicts. Check a plan before adding a new subnet.
Frequently asked questions
What does /24 mean?
The first 24 bits identify the network, so 256 addresses share it, with 254 usable hosts. The mask is 255.255.255.0.
Why do /31 and /32 show different host counts?
A /31 is a point-to-point link with two usable addresses (RFC 3021). A /32 is a single address.
Does this tool support IPv6?
No. It handles IPv4 only.
Is my network data sent to a server?
No. The calculations run in your browser and nothing is uploaded.