Accurate country-level geolocation and ASN details, free to download and use for any purpose.
Our free databases have the same accurate, up-to-date IP to Country and ASN data that powers our API.
Available in CSV and MMDB formats — works with your stack, from GeoIP readers to custom scripts or log parsers.
Download and use without unfair limitations or restrictions. Everything is open and offline-ready under CC BY-SA 4.0.
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.
Quickly map any IP to its country.
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 |
Understand the network behind an IP address.
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 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, Inc. | facebook.com | |
2001:df4:2880::/48 | 7545 | AU | TPG-INTERNET-AP | TPG Telecom Limited | tpgtelecom.com.au |
Download once or fetch updates on a schedule — no limits, just direct access to the latest versions.
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.
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
// ]
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. We combine trusted public sources with proprietary intelligence gathering and analysis to create clean, reliable, and production-ready IP data.
We combine trusted open data sources — including global registries and geofeeds — and our own global network measurements.
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.
We cross-check our data against millions of known-good data points, ensuring accuracy and reliability at scale.
The entire process runs continuously, processing terabytes of data each day, so we can regenerate and republish accurate databases every day of the year.
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
|
Free GitHub mirror
|
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 |
Need more than country and ASN data? Our full suite of IP intelligence products is available via databases or our 24/7 API.
1,000 requests per day, free forever. Need more? Buy credits or pay for a monthly quota, with flexible billing & no hidden fees.
Self-host the same accurate, daily-updated IP data as our API.
Yes! Both the IP to Country and IP to ASN databases are free to download and use under the CC BY-SA 4.0 license. There are no paywalls, rate limits, or usage restrictions. Just be sure to provide attribution back to IPLocate.io when using the data. For example, <p>IP address data powered by <a href="https://iplocate.io">IPLocate.io</a></p>
Unlike some alternatives, IPLocate’s databases are openly licensed, don’t require an account, and can be used without any signup or API key. We also don't artificially reduce the accuracy of our free databases. You get a few essential attributes from the same high-quality data as in our paid databases and served by our API.
Please note, GeoIP is a registered trademark of MaxMind, Inc., and IPLocate’s databases are not official GeoIP products and are not affiliated with MaxMind, Inc.
Our free databases are updated daily. Our GitHub mirrors may be updated less often, so we recommend downloading the latest version from your account page.
You can download the databases in CSV or MMDB format. CSV format is easy to parse in any programming language. MMDB is a custom data format specifically designed for IP address data, and is compatible with existing libraries and tools. MMDB files can easily be loaded into memory for sub-millisecond lookups.
Our IP to Country database uses the same trusted source data as our production IPLocate API, used in high-traffic environments and trusted by thousands of developers worldwide. It includes both IPv4 and IPv6 coverage. It is constantly updated with the latest data from our proprietary data pipeline.
No. The IP to Country and IP to ASN databases include only the most essential IP geolocation fields. Our API, or our paid databases, include additional fields: city, region, postal/zip code, timezone, hosting/datacenter detection, threat detection (spam/abuse/Tor/VPN/proxies), Whois data, and more.
Yes. There are no usage restrictions as long as you comply with the terms of the CC BY-SA 4.0 license. You’re free to use, modify, and redistribute the data — including in commercial products — as long as attribution is provided and derivatives are shared under the same license.
Yes, both IPv4 and IPv6 address ranges are included in the IP to Country and IP to ASN databases.
The MMDB format is compatible with open-source MaxMind readers. For example:
Yes. That’s one of the key benefits of self-hosting IPLocate databases — you can perform ultra-fast, offline lookups without any external API calls.
Yes — if you prefer real-time lookups without managing data updates, you can use the IPLocate API, which includes additional fields like city, region, hosting detection, threat detection, and more.
File sizes vary depending on the format and version. Visit your account page to download the latest versions.
Visit our corrections page to report a data issue.
Yes! OPNsense’s “GeoIP” feature is not locked to any specific database. In fact, ours are more accurate and updated more frequently than MaxMind’s GeoLite. We’ve written a quick guide on how to use our databases with OPNsense.
“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.