IP range ↔ CIDR converter

Turn an IP range into CIDR blocks, shrink a long CIDR list for firewall or security-group rules, and test whether an IP is covered.

Runs in your browser

Range to CIDR

CIDR list

Aggregated (merged) CIDRs

Is this IP in the list?

Why aggregate CIDRs?

Cloud security groups, firewall objects and route tables often have rule limits. Merging adjacent and overlapping blocks (for example 10.1.0.0/24 + 10.1.1.0/24 → 10.1.0.0/23) covers exactly the same addresses with fewer entries.

A range such as 10.0.0.5 – 10.0.1.20 rarely fits a single block, so it becomes the smallest set of aligned CIDR blocks that covers it exactly, with nothing extra.