Network

IP Range Calculator

Convert an address range (first and last IP) into minimal CIDR blocks, with private range detection and address count.

How it works

Firewalls and DHCP servers often express their reservations as ranges: it is convenient, but network devices think in CIDR blocks. A range from 192.168.1.10 to 192.168.1.200 breaks down into several prefixes.

This tool performs the reverse of subnet calculation: it splits the range into a minimum number of aligned CIDR blocks that you can paste directly into an ACL, a DHCP pool or a route.

Examples

Classic DHCP range

Broken down into aligned CIDR blocks.

start192.168.1.10
end192.168.1.200
Load this example

Carrier WAN range

Often expressed as several prefixes.

start81.2.69.0
end81.2.69.255
Load this example

Frequently asked questions

Why doesn't a range match a single CIDR block?

A CIDR block must be aligned on a power of 2 and its size. An arbitrary range therefore breaks down into several blocks.

Can this tool replace an addressing plan?

No: it verifies and converts, it does not replace the design of a structured addressing plan (see the VLSM tool).