Toolvist

CIDR to IPv4 Range Calculator

Expand a CIDR block into its full IPv4 address range, and collapse an IP range back into the minimal CIDR list.

Mode

A bare address without a prefix is treated as /32.

Network

—

First usable

—

Last usable

—

Broadcast

—

Total addresses

—

Usable hosts

—

Subnet mask

—

Wildcard mask

—

Scope

—

Binary representation

CIDR to IPv4 Range Calculator

Expand a CIDR block into the full range of addresses it covers, and work the other way too: give a start and end address and get back the smallest set of CIDR blocks that exactly covers the range.

The Subnet / CIDR Calculator works in the other direction, and IPv4 to IPv6 translates a single address.

How to use the CIDR to Range

  1. 1 Enter a CIDR block such as 10.0.0.0/22 to expand it.
  2. 2 Read the first and last address, the total size and the number of usable hosts.
  3. 3 Switch to range mode and enter a start and end address to collapse it into the smallest set of CIDR blocks.
  4. 4 Copy the resulting block list for a firewall rule or a routing table.

CIDR prefix expansion into start and end IP addresses

The CIDR to IPv4 Range converter expands a Classless Inter-Domain Routing prefix (e.g., 10.0.0.0/22) into its exact starting network IP, concluding broadcast IP, and complete list of usable host IP addresses. It also provides the corresponding dotted-decimal subnet mask and inverse wildcard mask.

Expanding CIDRs into discrete IP boundaries is indispensable when configuring server security groups, enterprise firewall access control lists (ACLs), DHCP address pools, and routing tables. The tool clearly displays total available IPs and network boundaries.

  • Expands CIDR prefix notation into precise starting and ending IP addresses.
  • Calculates total IP count and usable host address capacity for the subnet.
  • Outputs matching dotted decimal subnet mask and firewall wildcard masks.
  • Critical for cloud security group configuration, firewall ACLs, and network audits.

Usable addresses

In the classic subnetting model the first address in a block is the network identifier and the last is the broadcast address, so a /24 has 256 addresses but only 254 that can be assigned to hosts. Point-to-point links with a /31 and loopback /32 blocks are the exceptions, where every address is usable.

Frequently asked questions

What does it mean to collapse an IP range into CIDR blocks?

It expresses a contiguous range as the fewest possible aligned prefix blocks. A range that is not a power-of-two size cannot be one block, so the tool splits it into the minimum set — which is exactly the format firewalls, ACLs and routing tables expect.

Why does 10.0.0.0/22 cover more addresses than I expected?

Because a /22 holds 2^(32−22) = 1024 addresses, not 22. The prefix length is the number of network bits, so a smaller prefix means a bigger block — /24 is 256 addresses and /16 is 65,536.

Why must the network address be aligned?

Because the host bits must all be zero in a valid network address. 10.0.0.0/22 is valid but 10.0.1.0/22 is not — the latter has a host bit set, so tools will normalise it to 10.0.0.0/22, which may cover addresses you did not intend to include.

Related Unit & Data Converters

Browse all Unit & Data Converters →

You might also need

Tools from other categories that people pair with the CIDR to Range:

Browse the full tool directory →