IPv4 Range Calculator

The IPv4 range calculator works in the opposite direction of a subnet calculator: you give it a start and end IP address, and it returns the most efficient set of CIDR blocks that covers the entire range without overlap.

This is useful whenever you have a flat list of addresses (an IP range from a DHCP pool, a block of public IPs from an ISP, or a legacy allocation) and need to express it as clean CIDR notation for routing or documentation. Because CIDR blocks must start on an aligned boundary, a range that is not a power of two is split into the smallest set of blocks that fits.

IPv4 Range Calculator

Find the CIDR notation (or notations) that covers a given IP range.

Enter values above to see results.

Frequently Asked Questions

How do I convert a list of IP addresses into CIDR?
Group the addresses that fall on aligned power-of-two boundaries and express each group as a prefix. The calculator does this for you: enter the first and last address of a range and it returns the smallest set of CIDR blocks that covers every address with no overlap and no wasted space.
What does it mean that an IP range is not CIDR aligned?
A CIDR block always starts on a multiple of its own size, so a range such as 10.0.0.5 to 10.0.0.20 cannot be a single block. The calculator splits it into the fewest aligned blocks that fit, which is why a short range sometimes returns several entries.
Why would I convert an IP range to CIDR?
Routers, firewalls, cloud security groups, and DHCP scopes all expect prefix notation rather than a start and end address. Converting an ISP block or a legacy allocation to CIDR makes it usable in those configurations and keeps your documented plan consistent with the device configuration.

Read More

Guides that go deeper on the same topic.

More Tools

Explore the other tools in the toolkit.

Subnet Calculator
Free subnet calculator: enter an IP address and CIDR prefix to get the network address, broadcast address, subnet mask, usable IP range, and host count instantly.
CIDR Calculator
Free CIDR calculator: convert any prefix length from /0 to /32 into its dotted-decimal subnet mask, binary mask, wildcard mask, and total usable hosts.
VLAN Capacity Calculator
Free VLAN capacity calculator: determine the subnet size you need for your number of VLANs and devices per VLAN, including growth headroom.
Rack Power Calculator
Free rack power calculator: estimate total watts, BTU/hr, amps at 120V and 240V, cooling tons, and watts per feed for the equipment in your racks.
Rack Unit Calculator
Free rack unit calculator: convert rack units (U) to inches and millimetres, check 1U and 42U heights, and see how many devices fit in a rack after reserved space.
UPS Runtime Calculator
Free UPS runtime calculator: estimate how long your UPS battery will run under load based on wattage, battery capacity, voltage, and inverter efficiency.
BTU Calculator
Free BTU calculator: convert electrical watts to BTU/hr and the tons of cooling required for your data center, server room, or network closet.
Subnet Overlap Checker
Free subnet overlap checker: paste a list of CIDR blocks and instantly see every pair that shares addresses, before conflicts cause routing or IP assignment problems.
IPv6 Subnet Calculator
Free IPv6 subnet calculator: enter an IPv6 address and prefix length to get the network address, expanded form, total addresses, and the number of /64 subnets.
Batch CIDR Converter
Free batch CIDR converter: paste a list of subnets as CIDR, IP + mask, or bare IP and convert them all to network address, subnet mask, usable range, and host count in one click.
IP Allocation Planner
Free IP allocation planner: assign CIDR blocks inside a supernet to sites, VLANs, or teams and see used, free, and overlapping address space instantly.

Stop reaching for a spreadsheet

Obelinf keeps every subnet, device, circuit, and rack in one live source of truth, with audit logs and a topology view. Free for personal use.