What it does
A CIDR calculator turns a prefix such as 192.0.2.0/24 into its network address, mask, broadcast and usable host range — or the equivalent for an IPv6 block. CIDR notation combines an address with a prefix length, defining the network, usable hosts and broadcast address.
How it works
The prefix length says how many leading bits identify the network. The remaining bits are host bits. The network address has all host bits set to zero; the broadcast address has them set to one.
For IPv4, /31 and /32 are special: there is no separate network and broadcast address, so the calculator reports the full count as usable. For IPv6, every address in the block is a valid interface address, including the subnet-router anycast address.
All arithmetic runs locally with integer and BigInt math. Nothing is sent to a server.
The tool converts the prefix to a mask, computes network and broadcast addresses and reports the host range and count.
When to use it
- Plan a VPC, VLAN or office subnet without an IP calculator spreadsheet.
- Check whether two addresses are in the same subnet before debugging routing.
- Convert a range of hosts into the smallest set of CIDR blocks for a firewall rule.
Glossary
- CIDR
- Classless Inter-Domain Routing: an address plus a prefix length, such as /24.
- Netmask
- The 32-bit IPv4 mask with network bits set to one and host bits set to zero.
- Broadcast
- The address with all host bits set, used to reach every host in an IPv4 subnet.
- Usable hosts
- Addresses left for interfaces after removing the network and broadcast addresses.
Frequently asked questions
Why does 192.0.2.0/31 show two usable hosts?+
Point-to-point links use /31 (RFC 3021), where both addresses are usable and there is no broadcast address. The calculator follows that rule.
Does it support IPv6?+
Yes. IPv6 blocks are calculated with 128-bit BigInt math, including the first, last and total address count.
Is the input sent anywhere?+
No. The calculation is entirely local JavaScript.
How many hosts in a /24?+
254 usable in classic IPv4, because the network and broadcast addresses are reserved.
What about /31 and /32?+
A /31 is used for point-to-point links with two addresses; a /32 represents a single host.
Can subnets overlap?+
Yes, and overlapping ranges cause routing ambiguity. Check the range before allocating.
API & MCP
No API endpoint
This tool runs entirely in your browser. It is not available over the REST API or MCP.
Shareable result
https://100www.dev/tools/cidr-calculator?cidr=192.0.2.0%2F24

100www engineering
EditorialReviewed by Steve · · Report an error
Tested from the 100www probe network; results vary by location and network.


