What is CIDR notation?
CIDR (Classless Inter-Domain Routing) notation represents an IP address and its network prefix length. For example, 192.168.1.0/24 means the IP address 192.168.1.0 with a 24-bit network prefix, leaving 8 bits for host addresses — 256 total IPs and 254 usable hosts. CIDR replaced the older Class A/B/C system and allows flexible allocation of IP address blocks. Enter any CIDR block above to instantly see the network address, broadcast address, and full host range. Enter any CIDR block above to instantly see the network address, broadcast address, and full IP range.
How do I convert CIDR to an IP range?
Enter your CIDR block into the calculator above (e.g. 10.0.0.0/24) and the tool instantly shows the full IP range: network address (first IP), broadcast address (last IP), first usable host, last usable host, and total IP count. The network address is the CIDR base IP with the host bits zeroed. The broadcast address has all host bits set to 1.
How are usable hosts calculated from a CIDR block?
Usable hosts = 2^(32 - prefix) - 2. The subtraction of 2 accounts for the network address (first IP, used to identify the subnet) and the broadcast address (last IP, used to address all hosts simultaneously). For a /24: 2^8 - 2 = 254 usable hosts. For /31 and /32, all addresses are usable per RFC 3021. The formula is 2^(32-prefix) minus 2 -- except /31 gives 2 usable hosts and /32 gives exactly 1. The formula is 2^(32-prefix) minus 2 for network and broadcast — except /31 gives 2 usable hosts and /32 gives 1.
What is the difference between network address and broadcast address?
The network address is the first IP in a CIDR block and identifies the subnet itself — it cannot be assigned to a device. The broadcast address is the last IP and is used to send packets to all hosts in the subnet simultaneously — it also cannot be assigned to a device. All assignable host IPs fall between these two addresses.
What is a wildcard mask and how is it different from a subnet mask?
A wildcard mask is the bitwise inverse of the subnet mask. Where a subnet mask uses 1s to identify the network portion, a wildcard mask uses 0s to mean match and 1s to mean ignore. For a /24 (subnet mask 255.255.255.0), the wildcard is 0.0.0.255. Wildcard masks are used in Cisco ACLs, OSPF routing, and firewall rules. For example, a wildcard of 0.0.0.255 matches any host in a /24 block, while 0.0.0.0 matches only the exact IP specified. For example, a wildcard of 0.0.0.255 matches any host in a /24 block, while 0.0.0.0 matches only the exact IP.
What are the private IP address ranges?
RFC 1918 defines three private IPv4 ranges not routable on the public internet: 10.0.0.0/8 (16,777,214 usable hosts), 172.16.0.0/12 (1,048,574 usable hosts), and 192.168.0.0/16 (65,534 usable hosts). These are used inside private networks and translated to public IPs by NAT routers. This calculator automatically identifies private ranges. Private IPs are non-routable on the public internet and are reserved exclusively for internal network use. Private IPs are non-routable on the public internet and are used for internal networks in homes, offices, and data centres.
What does /32 mean in CIDR notation?
A /32 prefix means all 32 bits identify the network, leaving zero bits for hosts — it represents a single specific IP address. /32 is used for loopback addresses, host routes, and specifying individual IPs in firewall rules. The network address, broadcast address, and only usable host are all the same IP. A /32 is commonly used in host routes, loopback entries, and firewall rules targeting a single specific machine. A /32 is commonly used in host routes, loopback entries, and firewall rules targeting a single specific machine.
What is the difference between /24, /25, and /26?
A /24 has 256 IPs (254 usable), a /25 splits a /24 in half giving 128 IPs (126 usable) each, and a /26 splits into quarters giving 64 IPs (62 usable) each. Each reduction of 1 in the prefix halves the number of available IP addresses. Use the subnet reference table in this calculator to compare common prefix sizes. Halving the prefix length (for example /24 to /23) doubles the address space -- each additional bit doubles it again. Halving the prefix length (e.g. /24 to /23) doubles the address space; each additional bit doubles it again.
How do I find the IP range from a CIDR block?
Use the calculator above — enter the CIDR block and the first and last IP of the range are shown immediately. The first IP is always the network address, the last is the broadcast address. The usable host range runs from network+1 to broadcast-1 (except for /31 and /32). Enter the CIDR block above and the full host range is calculated and displayed instantly alongside the subnet mask. Enter the CIDR block in the tool above and the full IP range is displayed instantly alongside the subnet mask and host count.
Is this CIDR calculator free and does it require signup?
Yes — completely free with no signup, no account, and no usage limits. All CIDR calculations happen in your browser using pure JavaScript. Nothing is sent to any server. All subnet calculations use standard binary arithmetic locally -- no account, login, or API key required. All subnet calculations are performed locally using standard binary arithmetic — no account or API key required.