IP Range to CIDR Converter
Convert an IP range from start to end into the fewest CIDR blocks, handy for writing firewall rules.
Loading tool...
Runs in your browser. Nothing is sent anywhere.
When to use it
Use this when an ISP or partner gives you an IP range as a start and end address, but your firewall, Nginx or cloud security group only accepts CIDR, for example when allowing a payment gateway's range.
A range that does not line up with block boundaries produces several lines; that is the smallest possible set of blocks, covering exactly the range with nothing extra. Only IPv4 is supported.
How to use
- Enter the first and last IP.
- The CIDR list appears right away.
- Click Copy or Download file.
Frequently asked questions
Is the data I paste sent to a server?
No. The tool runs in JavaScript right in your browser, and Takikit has no server that receives data. You can turn off your internet after opening the page and the tool will still work.
Related tools
More Developer tools
IPv6 CalculatorCompress and expand IPv6 addresses, calculate the network range from a prefix and see the address type.IP Address ConverterConvert an IPv4 address to and from decimal, hex, binary, octal, IPv6-mapped form and reverse DNS name.Chmod CalculatorClick read, write and execute permissions to get chmod numbers like 755 and 644 and the rwxr-xr-x form, converting both ways.Sample SQL Data GeneratorGenerate INSERT statements with fake data to fill a test database.HTTP Status CodesLook up the meaning of codes such as 200, 301, 404 and 500, searching by number or by meaning, explained in Vietnamese.Sample CSV GeneratorGenerate a CSV file of fake data with Vietnamese text to test file import, reports and spreadsheets.
See all developer tools