CIDR / Subnet Calculator
Calculate network address, broadcast, host ranges, masks, and address counts for any CIDR block. Runs entirely in your browser.
Network
IP/prefix (e.g. 10.0.0.5/16) or just an IP (defaults to /32).How it works
- The address is converted to a 32-bit integer; the prefix length selects how many leading bits form the network part.
- Network address zeroes the host bits; broadcast sets them all to 1.
- Usable hosts is total addresses minus network and broadcast (unless the block is
/31or/32, which have no broadcast). - The wildcard mask is the bitwise inverse of the subnet mask.
About CIDR / Subnet Calculator
CIDR (Classless Inter-Domain Routing) describes networks as IP/prefix, where the prefix is the number of leading 1-bits in the subnet mask. /24 means 24 network bits and 8 host bits — 256 addresses. Knowing the network address, broadcast address, and usable host range is the first step in any IP planning task: assigning static addresses, sizing VPC/VNet subnets in AWS, Azure, or GCP, writing firewall rules, or debugging why two services cannot reach each other.
Remember that network and broadcast addresses are reserved in normal subnets, so a /24 has 254 usable hosts, not 256. Point-to-point links often use /31 (2 addresses, no broadcast) or /30 (4 addresses, 2 usable). RFC 1918 private ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) are what most internal networks use — this tool helps you carve them correctly.
Reading CIDR notation
A block such as 192.168.1.0/24 is a network address followed by the number of leading bits that identify the network. The remaining bits are the host portion, so /24 leaves 8 host bits — 254 usable addresses once the network and broadcast addresses are reserved.
The calculator shows the network address, broadcast address, first and last usable host, and the total host count, so you can check a block at a glance instead of counting by hand.
Common mistakes
A host address inside the range is not the same as the network address. Configuring a gateway to 192.168.1.37/24 works at the OS level but the stated network should be the network address; some systems reject the difference.
Overlapping blocks are the usual cause of a routing conflict. Check the broadcast address of each range — two ranges whose broadcast addresses overlap cannot both be valid.
Frequently Asked Questions
How do I calculate CIDR subnets?
Can I supernet or subnet a network?
Is my data sent to a server?
Do I need an account or API key?
Can I use these tools offline?
All processing happens in your browser. No uploads, no tracking, no servers. Your API keys, configs, and private payloads stay private — 100% client-side.