Free downloads

Free IP to Country and IP to ASN databases

Accurate country-level geolocation and ASN details, free to download and use for any purpose.

Full accuracy, trusted in production

Our free databases have the same accurate, up-to-date IP to Country and ASN data that powers our API.

Drop-in compatible formats

Available in CSV and MMDB formats — works with your stack, from GeoIP readers to custom scripts or log parsers.

Self-hosted, no strings attached

Download and use without unfair limitations or restrictions. Everything is open and offline-ready under CC BY-SA 4.0.

What's included

Essential IP data for your business

Our free downloadable databases give you unlimited access to an essential subset of our full IP intelligence data, covering country-level geolocation and ASN details. Ideal for analytics, content localization, access control, or edge logic — without any API limits or licensing headaches.

Supports IPv4 and IPv6
Updated daily
No usage or request limits

IP to Country

Quickly map any IP to its country.

IP network range (CIDR notation)
Two-letter continent code
Full country name
Two-letter continent code
ip-to-country.csv
network country country_code continent_code
1.178.160.0/20 Australia AU OC
109.174.152.96/28 United Kingdom GB EU
104.10.84.0/22 United States US NA
213.236.224.0/24 Norway NO EU
222.226.108.0/24 Japan JP AS
179.49.193.0/24 Brazil BR SA

IP to ASN

Understand the network behind an IP address.

IP network range (CIDR notation)
ASN number (Autonomous System Number)
ASN name
Organization name
Organization domain
ip-to-asn.csv
network asn country_code name org domain
104.23.0.0/19 132892 US CLOUDFLARE Cloudflare, Inc. cloudflare.com
13.104.0.0/14 8075 US MICROSOFT-CORP-MSN Microsoft Corporation microsoft.com
34.112.0.0/16 15169 US GOOGLE Google LLC google.com
81.3.194.0/23 25255 AT H3G-AUSTRIA-AS Hutchison Drei Austria GmbH drei.com
103.56.31.0/24 134164 AU NGTA-AS-AP NSW Government Telecommunications Authority nsw.gov.au
157.240.0.0/23 32934 US FACEBOOK Facebook, Inc. facebook.com
2001:df4:2880::/48 7545 AU TPG-INTERNET-AP TPG Telecom Limited tpgtelecom.com.au
Get the data

Fast to download, easy to keep up to date

Download once or fetch updates on a schedule — no limits, just direct access to the latest versions.

ip-to-country.csv
Updated 2 days ago
Size 6.61 MB
Entries 1,642,038
ip-to-country.mmdb
Updated: 2 days ago
Size: 14.1 MB
Entries: 1,850,308
ip-to-asn.csv
Updated 2 days ago
Size 11.3 MB
Entries 1,203,038
ip-to-asn.mmdb
Updated: 2 days ago
Size: 13 MB
Entries: 1,063,752
Get started easily

Compatible with your tools and systems

Our databases use standard, open formats — CSV and MaxMind GeoIP-compatible MMDB — so you can plug them into your existing infrastructure without changing your stack. Whether you're enriching logs, integrating with a CDN, or running lookups at the edge, it's ready to go.

Plus, we provide a MaxMind GeoLite-compatible CSV bundle, so you can directly swap out your existing IP to Country database with our higher-accuracy data in products like OPNsense.

get_country_from_ip_address.js
import fs from 'fs';
import * as mmdb from 'mmdb-lib'; // npm install mmdb-lib

const db = fs.readFileSync('/path/to/ip-to-country.mmdb');

const reader = new mmdb.Reader(db);
console.log(reader.get('8.8.8.8'));
// {
//   continent_code: 'NA',
//   country_code: 'US',
//   country_name: 'United States',
//   network: '8.8.0.0/17'
// }

console.log(reader.getWithPrefixLength('8.8.8.8'));
// [
//   {
//     continent_code: 'NA',
//     country_code: 'US',
//     country_name: 'United States',
//     network: '8.8.0.0/17'
//   },
//   17
// ]
Built for accuracy

How we deliver reliable IP data

Our IP to Country and IP to ASN databases are built from the exact same high-quality data that powers the IPLocate API. Unlike other providers, we don't artificially reduce the accuracy of our free databases.

Our process

1

Collect

We combine trusted open data sources — including global registries and geofeeds — and our own global network measurements.

2

Analyze

Our world-class data pipeline interprets billions of raw data points, resolving conflicts and discarding incorrect or outdated records. When something doesn’t add up, we take a closer look.

3

Validate

We cross-check our data against millions of known-good data points, ensuring accuracy and reliability at scale.

4

Update

The entire process runs continuously, processing terabytes of data each day, so we can regenerate and republish accurate databases every day of the year.

Why IPLocate

Better than the competition

We keep things simple — accurate data, in developer-friendly formats, with no usage restrictions.

IPinfo Lite MaxMind GeoLite IP2Location LITE
IPLocate
Download with no sign-up
Sign-up required
Sign-up required
Sign-up required
Same accuracy as paid data
Reduced accuracy
Significantly reduced accuracy
Significantly reduced accuracy
Up to single-IP accuracy
Open license
Restricted license
Restricted license
Updated daily
Twice weekly
Monthly
IPv6 supported
Separate databases
MMDB format available
GeoLite-compatible
Download in a GeoLite-compatible bundle to use directly with products like OPNsense
Download
Download
Get more IP data

Go further with more data from IPLocate

Need more than country and ASN data? Our full suite of IP intelligence products is available via databases or our 24/7 API.

Use our fast, reliable API

1,000 requests per day, free forever. Need more? Buy credits or pay for a monthly quota, with flexible billing & no hidden fees.

Daily data updates
20+ IP data fields
Handles billions of requests each month
Annual & volume discounts

Get premium data for download

Self-host the same accurate, daily-updated IP data as our API.

Full IP Geolocation database
IP to Company database
IP to Hosting/Datacenter database
Threat and Privacy Detection database
Full WHOIS & Abuse Contact database
Reverse DNS (RDNS) database

FAQs

“GeoIP” is a registered trademark of MaxMind, Inc. IPLocate’s GeoIP-compatible and GeoLite-compatible databases are not official GeoIP products and are not affiliated with MaxMind, Inc.