Free tool · IPv4 & IPv6
IP range to CIDR converter
Firewalls, cloud security groups and allowlists expect CIDR notation. Convert any start–end range into CIDR blocks, or see which addresses a block covers.
IP range → CIDR
CIDR → IP range
Building this into an app? Use the IP lookup API and its API quickstart.
Frequently asked questions
How do I convert an IP range to CIDR?
Enter the first and last address. The converter splits the range into the smallest set of CIDR blocks that covers exactly these addresses, e.g. 10.0.0.5–10.0.0.20 becomes five blocks.
Why does a range need several CIDR blocks?
A CIDR block always starts at a multiple of its size. Ranges that do not start and end on such boundaries need several blocks.
IP geolocation API
Get this data in your app
ipbase returns location, ISP, ASN and time zone for any IPv4 or IPv6 address, up to 1,000 addresses per POST request. Security flags (VPN, proxy, Tor, data center) are on the Small plan and above.
Read the documentation150 free requests every month. No credit card required.
GET https://api.ipbase.com/v2/info?ip=1.1.1.1
{
"data": {
"ip": "1.1.1.1",
"type": "v4",
"connection": {
"asn": 13335,
"organization": "APNIC and Cloudflare DNS Resolver project",
"isp": "Cloudflare, Inc",
"range": "1.1.1.0/24"
},
"location": {
"country": { "alpha2": "AU", "name": "Australia" },
"zip": "4000"
},
"security": { "is_vpn": null, "is_tor": null, "threat_score": null }
}
}Free IP tools
ASN lookup
Owner and prefixes of any AS number.
Bulk IP lookup
Up to 100 IPs at once, CSV export.
IP address converter
Decimal, hex, binary, IPv4↔IPv6.
IP address lookup
Location and owner of any IP.
Reverse IP lookup
Domains hosted on any IPv4 address.
Subnet calculator
CIDR, netmask and host range.
VPN and proxy checker
VPN, proxy and Tor flags of any IP.
What is my IP address?
Your public IP, location and provider.
What is my ISP?
Which internet provider you use.
Cloud & bot IP rangesOfficial lists of AWS, Googlebot, GPTBot and more.
Example lookups: 8.8.8.8 · 8.8.8.0/24 · AS15169 · example.com · all IPv4 ranges