CIDR Range Calculator

Turn an IP range into the smallest list of CIDR blocks, merge overlapping blocks into a summary, or check whether an address is inside a block.

Processed on your device. Files are not uploaded

How to work with CIDR ranges

  1. Choose what to do

    Merge blocks, turn ranges into blocks, or test an address.

  2. Paste your addresses

    Paste or type it into the box, or press Try an example. One per line.

  3. Copy or download

    Use the result in a firewall rule or allow list.

Worked example

This is what CIDR Range Calculator gives for its own sample values. Open the tool above and change anything to try your own.

Input, one per line

10.0.0.0/24
10.0.1.0/24
10.0.2.0/23
192.168.0.0/16
What to do
Merge CIDR blocks into the smallest list

Result

10.0.0.0/22
192.168.0.0/16

About CIDR Range Calculator

Merge overlapping and adjacent CIDR blocks into the smallest list, turn an IP range into the fewest blocks that cover it exactly, or check whether an address lies inside a list of blocks.

FAQs

Why is the result more than one block?

A range that does not start and end on a power-of-two boundary needs several blocks.

What does summarising do?

It joins neighbouring blocks, so 10.0.0.0/24 and 10.0.1.0/24 become 10.0.0.0/23.

Can I see hosts in a block?

Use Subnet Calculator.

Related tools