IPv4 and IPv6 Geolocation databases that automatically update daily.
Copyright Β© 2021 Teal Dulcet
Preprocessed free IPv4 and IPv6 Geolocation databases in TSV format that are automatically updated daily. Includes both country only and full location (state/providence/region and city) databases. Based on the ip-location-db repository, whose update scripts were not open source. The scripts used by this repository are 100% open source.
All databases are provided uncompressed and in a consistent TSV format with no quoting. Localized versions are available. The databases are designed so that applications can directly download them, without developers needing to release an entire software update. This allows users to enjoy much more frequent updates and thus more accurate geolocation information.
Note
On January 1, 2024, the databases changed from CSV to TSV format and the IP addresses from decimal to hexadecimal format to reduce their size.
β€οΈ Please visit tealdulcet.com to support this project and my other software development.
The databases are hosted on GitLab because while it now has a 100 MiB file size limit for regular files, it has no maximum file size for Git Large File Storage (LFS) files, just a 10 GiB repository size limit. In contrast, GitHub has a 100 MiB file size limit and strict bandwidth limits on Git LFS files. Commits older than one day (previously one month) are automatically squashed to keep the repository size under that limit. Please see the CHANGELOG for the full history. The databases are now updated on GitHub as it has no limit for CI minutes for public repositories. In contrast, GitLab has a 400 CI minutes/month limit.
Click link to view the full table with all the files or scroll right Β»
Database | License | Type | Updated | Download IPv4 | Download IPv6 |
---|---|---|---|---|---|
GeoFeed + Whois + ASN | π
π CC0 1.0 |
Country | Daily IPv4: 2025-03-11 IPv6: 2025-03-11 |
β¬οΈ ipv4.tsv 6.058MiB (6.352MB) β 303,309 rows β 252 unique countries Checksums (click to show)MD5: 0827ba3ad57611056351bad0e831fa0b |
β¬οΈ ipv6.tsv 11.82MiB (12.39MB) β 179,591 rows β 253 unique countries Checksums (click to show)MD5: 76a51399561c8a08af87eabf3436f6ec |
iptoasn.com | π PDDL v1.0 |
Country | Daily IPv4: 2025-03-11 IPv6: 2025-03-11 |
β¬οΈ ipv4.tsv 8.363MiB (8.769MB) β 418,767 rows β 240 unique countries Checksums (click to show)MD5: 96cc554d5dc9cef08da4ad570053f304 |
β¬οΈ ipv6.tsv 6.982MiB (7.322MB) β 106,224 rows β 224 unique countries Checksums (click to show)MD5: b36946888b035d130e552b7c34dfbcc4 |
IPinfo.io | π
π
―π CC BY-SA 4.0 |
Country | Daily 2025-03-11 |
β¬οΈ ipv4.tsv 12.74MiB (13.36MB) β 637,912 rows β 247 unique countries Checksums (click to show)MD5: f346e945272d4e0ea4bd010762d94676 |
β¬οΈ ipv6.tsv 72.31MiB (75.82MB) β 1,098,869 rows β 247 unique countries Checksums (click to show)MD5: 5bfe42cfb01686285428943949a387d4 |
DB-IP Lite | π
π
― CC BY 4.0 |
Country | Monthly 2025-03-01 |
β¬οΈ ipv4.tsv 7.404MiB (7.764MB) β 372,055 rows β 243 unique countries Checksums (click to show)MD5: f8e5911df23fa4121906510a5a567b13 |
β¬οΈ ipv6.tsv 16.53MiB (17.34MB) β 251,265 rows β 250 unique countries Checksums (click to show)MD5: 609d7024eb89dc7bd684d0207b3733b9 |
Full Location | Monthly 2025-03-01 |
β¬οΈ ipv4.tsv 191.0MiB (200.3MB) β 3,335,187 rows β 243 unique countries Checksums (click to show)MD5: 533d87186c64f981273c433100841370 |
β¬οΈ ipv6.tsv 388.5MiB (407.4MB) β 3,770,967 rows β 250 unique countries Checksums (click to show)MD5: 99a5296fc623ecf8f0caa811c6b1aa61 |
||
IP2Location LITE | π
π
―π CC BY-SA 4.0 |
Country | Bimonthly IPv4: 2025-03-11 IPv6: 2025-03-11 |
β¬οΈ ipv4.tsv 5.118MiB (5.367MB) β 256,155 rows β 242 unique countries Checksums (click to show)MD5: ced96baa8d12dd7a7473b62ca04f3ec1 |
β¬οΈ ipv6.tsv 18.38MiB (19.27MB) β 279,344 rows β 248 unique countries Checksums (click to show)MD5: 18cef1451430608ae8ad70e0f4963dff |
Full Location | Bimonthly IPv4: 2025-03-11 IPv6: 2025-03-11 |
β¬οΈ ipv4.tsv 176.8MiB (185.4MB) β 3,062,954 rows β 242 unique countries Checksums (click to show)MD5: e1de2b09cb2477a5e3a644739a02d816 |
β¬οΈ ipv6.tsv 233.4MiB (244.7MB) β 2,257,726 rows β 248 unique countries Checksums (click to show)MD5: 16d52faeae6d9b914518dee2695e772b |
||
GeoLite2 | π
―π GeoLite2 EULA |
Country | Weekly IPv4: 2025-03-07 IPv6: 2025-03-07 |
β¬οΈ ipv4.tsv 11.23MiB (11.78MB) β 562,318 rows β 251 unique countries Checksums (click to show)MD5: d7694f2ae9a237482d798328b08ddb03 |
β¬οΈ ipv6.tsv 38.48MiB (40.35MB) β 584,739 rows β 251 unique countries Checksums (click to show)MD5: dad81d490ecae7c3664fb0ccf153c9a3 |
Full Location | Weekly IPv4: 2025-03-07 IPv6: 2025-03-07 |
β¬οΈ ipv4-de.tsv 166.6MiB (174.7MB) β 3,296,677 rows β 251 unique countries Checksums (click to show)MD5: 2fe01fd69dc3db718e35759105a2e379 177.4MiB (186.1MB) β 3,296,677 rows β 251 unique countries Checksums (click to show)MD5: 073ae5d41fb277a3a337f3284146ece0 165.6MiB (173.7MB) β 3,296,677 rows β 251 unique countries Checksums (click to show)MD5: 618118b485151b1dff4dcbcc0451a9a1 168.0MiB (176.1MB) β 3,296,677 rows β 251 unique countries Checksums (click to show)MD5: 9f553fa0ccd83a5e2fa665da87d06353 211.4MiB (221.7MB) β 3,296,677 rows β 251 unique countries Checksums (click to show)MD5: 1723a4c42b26140fcd82c0becc1c7e3b 165.7MiB (173.7MB) β 3,296,677 rows β 251 unique countries Checksums (click to show)MD5: 17c0e37d185dc1f83bd0e2b162ec5e91 205.2MiB (215.2MB) β 3,296,677 rows β 251 unique countries Checksums (click to show)MD5: fe9191ca1eb3349caba037d01f724631 172.8MiB (181.2MB) β 3,296,677 rows β 251 unique countries Checksums (click to show)MD5: e6919048219c3e6e095e48e9d9e48fd1 |
β¬οΈ ipv6-de.tsv 164.4MiB (172.4MB) β 1,753,288 rows β 251 unique countries Checksums (click to show)MD5: 15987dd720fe7f28f3e410a8431561f4 168.1MiB (176.3MB) β 1,753,288 rows β 251 unique countries Checksums (click to show)MD5: bca8bdc4c704b595895e3370e0add05a 162.5MiB (170.4MB) β 1,753,288 rows β 251 unique countries Checksums (click to show)MD5: 6656893abc518115a45ff732e28e2224 162.8MiB (170.7MB) β 1,753,288 rows β 251 unique countries Checksums (click to show)MD5: a9f4e65c5ffb2d8ceb672a9cf7639ae4 179.5MiB (188.2MB) β 1,753,288 rows β 251 unique countries Checksums (click to show)MD5: 50f93ccb8cafebc61c82354580a0f5dc 162.5MiB (170.3MB) β 1,753,288 rows β 251 unique countries Checksums (click to show)MD5: 439ff322cea8e05b2947b9d9a3c61774 180.6MiB (189.4MB) β 1,753,288 rows β 251 unique countries Checksums (click to show)MD5: 4514afafd2b0efae6622ac0c8b516bc4 166.2MiB (174.3MB) β 1,753,288 rows β 251 unique countries Checksums (click to show)MD5: 03d6f2b1e86bf67911329c38fbcb91a0 |
Uses the ip-location-db GeoFeed + Whois + ASN database. It is created by merging the five Regional Internet Registries (RIRs) (AFRINIC, APNIC, ARIN, LACNIC, RIPE NCC) IP-ASN, WHOIS and OpenGeoFeed databases. Licensed Public Domain (CC0 1.0).
ip_range_start ip_range_end country_code
Uses the iptoasn.com database. Licensed Public Domain Dedication (PDDL v1.0). If you need hourly updates, you can use the source databases which are in TSV format with gzip compression.
ip_range_start ip_range_end country_code
Uses the IPinfo.io database. Licensed Creative Commons Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0), so users must attribute it to IPinfo:
<p>IP address data powered by <a href="https://ipinfo.io">IPinfo</a></p>
ip_range_start ip_range_end country_code
Uses the DB-IP Lite databases. Licensed Creative Commons Attribution 4.0 International License (CC BY 4.0), so users must attribute it to DB-IP:
<a href='https://db-ip.com/'>IP Geolocation by DB-IP</a>
ip_range_start ip_range_end country_code
ip_range_start ip_range_end country_code state/providence city latitude longitude
Note that state/providence
and city
are blank for some rows.
Uses the MaxMind GeoLite2 databases. Licensed under the GeoLite2 end-user license agreement (EULA), similar to the Creative Commons Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0), so users must attribute it to MaxMind:
This product includes GeoLite2 data created by MaxMind, available from
<a href="https://www.maxmind.com">https://www.maxmind.com</a>.
Localized versions of the Full location databases are available. See the filenames in the table above for the supported locales.
ip_range_start ip_range_end country_code
ip_range_start ip_range_end country_code state/providence_2 state/providence_1 city latitude longitude
Note that country_code
, state/providence_2
, state/providence_1
and city
are blank for some rows.
Uses the IP2Location LITE databases. Licensed Creative Commons Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0), so users must attribute it to IP2Location:
This site or product includes IP2Location LITE data available from <a href="https://lite.ip2location.com">https://lite.ip2location.com</a>.
ip_range_start ip_range_end country_code
ip_range_start ip_range_end country_code state/providence city latitude longitude
Note that state/providence
and city
are blank for some rows.
See above for the specific format of each database.
ip_range_start
and ip_range_end
is an IP address range.
- IPv4:
1000000 10000FF AU
means that the IP addresses between1.0.0.0
and1.0.0.255
inclusive are in Australia π¦πΊ (AU
country code).1000000
is the hexadecimal format of the IP address1.0.0.0
. The numbers are 32-bit unsigned integers. - IPv6:
20010200000000000000000000000000 20010200FFFFFFFFFFFFFFFFFFFFFFFF JP
means that the IP addresses between2001:200::
and2001:200:ffff:ffff:ffff:ffff:ffff:ffff
inclusive are in Japan π―π΅ (JP
country code).20010200000000000000000000000000
is the hexadecimal format of the IP address2001:200::
. The numbers are 128-bit unsigned integers.
country_code
is the two-letter code defined in ISO 3166-1 alpha-2.
Merge requests welcome! Ideas for contributions:
- Improve the performance of the update scripts.
- Reduce the size of the databases.
- Provide localized versions of the IP2Location databases using their separate Region Multilingual and City Multilingual Databases.
- Add more databases.