IP Utility

CIDR Calculator

Expand a CIDR block into its full address range, or aggregate a start-to-end IP range into the smallest set of CIDR blocks.

CIDR to IP range

Network
10.20.0.0/22
Netmask
255.255.252.0
Wildcard
0.0.3.255
First host
10.20.0.1
Last host
10.20.3.254
Broadcast
10.20.3.255
Total addresses
1,024
Usable hosts
1,022

IP range to CIDR

192.168.1.10/31
192.168.1.12/30
192.168.1.16/28
192.168.1.32/27
192.168.1.64/26
192.168.1.128/25
192.168.2.0/23
192.168.4.0/28
192.168.4.16/30
192.168.4.20/32

10 blocks cover this range.

ISPbox Platform

Manage your address space without spreadsheets.

ISPbox includes dual-stack IPAM: IPv4 and IPv6 pools, utilization, reservations and next-free suggestions. Free to start.

Create free account

CIDR notation, briefly

CIDR (Classless Inter-Domain Routing) writes a network as an address plus a prefix length, like 10.20.0.0/22. The prefix says how many leading bits are the network portion; the rest address hosts. A /24 holds 256 addresses (254 usable), a /22 holds 1024, and each step down doubles the size.

Aggregating a range into CIDR blocks

An arbitrary start-to-end range rarely lines up with a single power-of-two block, so it is expressed as the smallest set of aligned CIDR blocks that exactly covers it. This is what routers and firewalls do internally, and it is handy when a provider hands you a range rather than a clean subnet.