IPv4 range to CIDR
Enter the first and last IPv4 address in the range.
CIDR result
How IP range to CIDR conversion works
An IP range can usually be represented by multiple CIDR blocks. This calculator finds the smallest possible set of blocks that exactly covers the range. This is commonly used when writing firewall rules or access control lists.