IP Range / CIDR
Convert address ranges to CIDR blocks and back, and test membership.
Range → CIDR
CIDR → Range
Is an address inside a prefix?
Why one range becomes several prefixes
An arbitrary start-to-end range rarely lines up with a single CIDR block, because every prefix has to begin on a boundary that is a multiple of its own size. A range such as 192.168.1.10 - 192.168.3.200 therefore has to be expressed as several blocks of different sizes that together cover it exactly.
This matters when you are translating a firewall object or a DHCP pool into prefixes: the generated list covers the range precisely, with no extra addresses included. Rounding it up to one convenient prefix would silently widen whatever rule you apply it to.