CIDR and IP range calculator
Convert any start and end address into the fewest CIDR blocks, find the range of a block, and check whether networks overlap or contain an address.
IP range to CIDR
Blocks
| CIDR | First | Last | Addresses |
|---|
CIDR to IP range
Overlap and contains check
More subnet tools
IPv4 subnet calculator
Network, host range, broadcast, mask and wildcard for any IPv4 block
Open toolIPv6 subnet calculator
Prefix ranges, /64 counts, splits and a ULA prefix generator
Open toolVLSM calculator
Size subnets by host count, with AWS, Azure, GCP and OCI rules
Open toolVisual subnet planner
Split and join blocks, label them, then share or export the plan
Open toolSupernet and route summary
Summarise networks into one route or merge them exactly
Open toolWildcard mask calculator
ACL wildcards, matched ranges and ready Cisco lines
Open toolSubnetting practice
Exam-style questions, checked instantly with the working shown
Open toolSubnet mask cheat sheet
Every prefix from /0 to /32 with mask, wildcard and hosts
Open toolIPv6 cheat sheet
Prefix sizes, address types and the reserved ranges
Open toolQuestions people ask
Why does one range turn into several CIDR blocks?
A CIDR block always holds a power of two addresses and must start on a multiple of its size. A range like 192.168.1.10 to 192.168.1.200 does not line up with one block, so it is covered by the fewest aligned blocks that fit exactly, from small ones at the edges to larger ones in the middle.
How do I find the IP range of a CIDR block?
Mask the address to get the first address, then add 2 to the power of the host bits, minus one, to get the last. For 10.4.0.0/14 that is 10.4.0.0 to 10.7.255.255, which is 262,144 addresses.
How do I check if two subnets overlap?
Two blocks overlap when the start of each is at or before the end of the other. Because CIDR blocks are aligned, overlapping blocks are always nested: one contains the other. The checker on this page tells you which.