IPv4 subnet calculatorNetwork, host range, broadcast, mask and wildcard for any IPv4 blockIPv6 subnet calculatorPrefix ranges, /64 counts, splits and a ULA prefix generatorVLSM calculatorSize subnets by host count, with AWS, Azure, GCP and OCI rulesVisual subnet plannerSplit and join blocks, label them, then share or export the planCIDR and IP range calculatorTurn any start and end address into the fewest CIDR blocksSupernet and route summarySummarise networks into one route or merge them exactlyWildcard mask calculatorACL wildcards, matched ranges and ready Cisco linesSubnetting practiceExam-style questions, checked instantly with the working shownSubnet mask cheat sheetEvery prefix from /0 to /32 with mask, wildcard and hostsIPv6 cheat sheetPrefix sizes, address types and the reserved rangesGuidesHow subnetting works, explained with worked examples

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
CIDRFirstLastAddresses

CIDR to IP range

Overlap and contains check

Questions 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.