IP Range Calculator

Convert between a CIDR block and its address range. Enter a network to see its first and last addresses, or enter a start and end address to get the exact CIDR blocks that cover it.

Loading the tool…

How it works

  • CIDR to range: the first address is the network address and the last is the broadcast address.
  • Range to CIDR: repeatedly take the largest power-of-two block that is aligned at the current address and fits in what remains.

Assumptions and limits

  • IPv4 only.
  • The CIDR list is exact: it covers precisely the addresses between start and end, no more and no fewer.

Frequently asked questions

Why does one range need several CIDR blocks?

A CIDR block must start on an address that is a multiple of its size, so ranges that do not line up need several blocks.

Related tools

Last reviewed 2026-10-28. More networking & internet tools. See the disclaimer.

Report a problem with this tool