Skip to content
toolstome

IP range calculator

Firewalls, cloud security groups and allow-lists usually want CIDR notation, while providers often publish their addresses as plain start–end ranges. Enter a first and last address and the calculator returns the smallest set of CIDR blocks that covers exactly that range, how many addresses it contains and whether a given address falls inside. Switch modes to paste a list of CIDR blocks or ranges, one per line, and see each one’s first address, last address and size. IPv4 and IPv6 both work, using exact big-integer maths.

Free · No sign-upProcessed in your browser

Convert

Addresses
191
CIDR blocks
8
Family
IPv4

How to use the IP Range Calculator

  1. 1

    Choose a mode

    Range → CIDR, or CIDR → range.

  2. 2

    Enter addresses

    A start and end address, or a list of CIDR blocks or ranges.

  3. 3

    Copy the result

    The CIDR list, or the table of ranges.

How ranges become CIDR blocks

From the start address, take the largest block that begins exactly at that address (its low bits are zero) and doesn’t go past the end, then continue after it. This greedy method gives the minimal list.

  • Block size = 2^(32 − prefix) for IPv4, 2^(128 − prefix) for IPv6

When to use it

  • Add a provider’s published range to a firewall.
  • Check whether an address is covered by an allow-list.
  • Expand CIDR blocks from a config into readable ranges.

Limits

  • A very large, unaligned IPv6 range can need many blocks; the list is capped at 1,024.
  • For subnet details (mask, broadcast, usable hosts) use the IP Subnet Calculator.

Privacy

Calculated in your browser; addresses are not sent anywhere.

Frequently asked questions

Why does a range need several CIDR blocks?

A CIDR block always has a power-of-two size and starts on a matching boundary. A range like 10.0.0.1–10.0.0.10 isn’t aligned, so it takes five blocks.

What does /32 mean?

A single IPv4 address. /24 is 256 addresses, /16 is 65,536. For IPv6, /128 is one address and /64 is a typical subnet.

What happens to host bits in CIDR → range?

10.1.2.77/24 is treated as the network 10.1.2.0/24, so the range is 10.1.2.0–10.1.2.255.

Can I mix IPv4 and IPv6?

In the list, yes, one per line. A single range must use the same family at both ends.

Are these usable host counts?

No, they are total addresses. Subtract network and broadcast addresses for usable IPv4 hosts, or use the Subnet Calculator.

People also use

Last updated November 24, 2026 · How we build and test our tools

Categories

Recently used tools

Tools you open will appear here.

More