IP Ranges Per Country

We publish the official IPv4 allocation blocks for every ISO 3166-1 territory — 244 countries and regions — as plain-text CIDR lists. Pull /Ranges/US.txt for the United States, /Ranges/NL.txt for the Netherlands, /Ranges/JP.txt for Japan, and so on. The full mapping uses the standard two-letter codes.

What this data is

Each file contains every IPv4 block that the regional internet registries (ARIN, RIPE NCC, APNIC, LACNIC, AFRINIC) have allocated to networks geolocated in that country. Format is one CIDR per line:

86.48.240.0/20
91.222.132.0/22
103.71.56.0/24
103.101.215.0/24
103.104.244.0/22

Source data is reconciled with MaxMind GeoLite2 and refreshed periodically. The lists are conservative: only ranges that all three sources agree on for a given country are included.

What you can do with it

Country pages

We maintain dedicated landing pages for the most-requested countries with direct downloads, proxy use cases, and cross-links:

United States United Kingdom Germany France Netherlands Russia China Japan South Korea India Brazil Canada Australia Italy Spain Turkey Mexico Indonesia Poland Argentina South Africa Singapore Hong Kong Switzerland Belgium Sweden Austria Ireland Finland Norway

Other territories

Every ISO code from AD (Andorra) through ZW (Zimbabwe) has a file. Pattern is /Ranges/CC.txt. If you need a comma-separated combined file or a JSON dump, the maintainer can prepare one.

Pairing ranges with proxies

The classic workflow: grep -F -f Ranges/DE.txt http.txt won't quite work because CIDR isn't a string match, but a quick Python or netaddr-style script intersects the two in under a second. See the protocol comparison for which list to start from.