IP addressing
CIDR to IP Range Converter
Paste one network per line, in prefix or mask form. You get the first address, the last address and the size of each.
Prefix form, or an address and subnet mask. Other text on a line is kept as a label.
3 networks
Host bits were set on 1 line (line 3). The network address is used.
| Network | First address | Last address | Addresses | Label |
|---|---|---|---|---|
| 10.20.0.0/14 | 10.20.0.0 | 10.23.255.255 | 262,144 | Campus |
| 172.16.8.0/21 | 172.16.8.0 | 172.16.15.255 | 2,048 | Data center |
| 192.168.1.64/26 | 192.168.1.64 | 192.168.1.127 | 64 |
How it works
A CIDR block is a starting address and a size that is a power of two. The first address has every host bit cleared and the last has every host bit set. A /20 has 12 host bits, so it spans 4,096 addresses.
Anything else on a line is kept as a label, so rows copied from a spreadsheet or lines from a configuration can be pasted as they are. If host bits are set in what you paste, the network is used and the line is flagged.
Related tools
IPv4 Subnet CalculatorNetwork, mask, wildcard, usable range and broadcast, with the config lines that use them.IPv6 Subnet CalculatorPrefix, range, canonical and expanded forms, subnet counts and the reverse DNS name.Wildcard Mask CalculatorConvert between prefix, subnet mask and wildcard, and see what any wildcard matches.VLSM Subnet PlannerCarve one block into subnets sized for each segment, with the free space left over.IP Range to CIDRThe fewest prefixes that cover a start-end range exactly.Subnet Overlap CheckerPaste one list or two and find every duplicate, nested and overlapping network.