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: 2026-04-02 IPv6: 2026-04-02 |
β¬οΈ ipv4.tsv 6.517MiB (6.834MB) β 326,428 rows β 251 unique countries Checksums (click to show)MD5: 73c44678bed7e3babf310b3d1b188dbd |
β¬οΈ ipv6.tsv 15.54MiB (16.29MB) β 236,090 rows β 258 unique countries Checksums (click to show)MD5: d06952f8f4462a45594c9ddcc53b14a2 |
| iptoasn.com | π PDDL v1.0 |
Country | Daily IPv4: 2026-04-02 IPv6: 2026-04-02 |
β¬οΈ ipv4.tsv 8.827MiB (9.256MB) β 442,009 rows β 241 unique countries Checksums (click to show)MD5: 8878a321bba337e89ee350d8e4add56a |
β¬οΈ ipv6.tsv 7.703MiB (8.077MB) β 117,168 rows β 223 unique countries Checksums (click to show)MD5: cf8a53ff2c39c2537e4dcbfaa21284f2 |
| IPinfo.io | π
π
―π CC BY-SA 4.0 |
Country | Daily 2026-04-02 |
β¬οΈ ipv4.tsv 12.67MiB (13.29MB) β 634,533 rows β 248 unique countries Checksums (click to show)MD5: d73d085858b162f8ea7ccf57bfb8a637 |
β¬οΈ ipv6.tsv 82.13MiB (86.12MB) β 1,248,045 rows β 248 unique countries Checksums (click to show)MD5: 0c9025012348cdbff8d74d8e3526bbbe |
| DB-IP Lite | π
π
― CC BY 4.0 |
Country | Monthly 2026-04-01 |
β¬οΈ ipv4.tsv 7.025MiB (7.366MB) β 351,952 rows β 245 unique countries Checksums (click to show)MD5: 42fee322e3d50e46ba0b80eea81e4cbf |
β¬οΈ ipv6.tsv 23.64MiB (24.79MB) β 359,308 rows β 250 unique countries Checksums (click to show)MD5: 33ee0b03816b02204291c82b23bb2198 |
| Full Location | Monthly 2026-04-01 |
β¬οΈ ipv4.tsv 210.6MiB (220.8MB) β 3,695,080 rows β 245 unique countries Checksums (click to show)MD5: bdaeedeecb09baae48fc74bf2e9e66ba |
β¬οΈ ipv6.tsv 453.1MiB (475.1MB) β 4,404,475 rows β 250 unique countries Checksums (click to show)MD5: 5521d7ab94f632b0a2c554ad74dbf65c |
||
| IP2Location LITE | π
π
―π CC BY-SA 4.0 |
Country | Bimonthly IPv4: 2026-03-31 IPv6: 2026-03-31 |
β¬οΈ ipv4.tsv 5.462MiB (5.727MB) β 273,350 rows β 242 unique countries Checksums (click to show)MD5: b173b6a7b8672083b10526c4796d4f9b |
β¬οΈ ipv6.tsv 19.55MiB (20.50MB) β 297,090 rows β 248 unique countries Checksums (click to show)MD5: ccd416bd2a6eb3354a2f0bd2c14e2e95 |
| Full Location | Bimonthly IPv4: 2026-03-31 IPv6: 2026-03-31 |
β¬οΈ ipv4.tsv 165.2MiB (173.2MB) β 2,861,537 rows β 242 unique countries Checksums (click to show)MD5: af0030c49cdd21d319a270940b2f23d4 |
β¬οΈ ipv6.tsv 280.0MiB (293.6MB) β 2,713,153 rows β 248 unique countries Checksums (click to show)MD5: 08e913f1ced14f2ca98aee2b12eed0c8 |
||
| GeoLite2 | π
―π GeoLite2 EULA |
Country | Weekly IPv4: 2026-03-31 IPv6: 2026-03-31 |
β¬οΈ ipv4.tsv 11.97MiB (12.56MB) β 599,507 rows β 251 unique countries Checksums (click to show)MD5: 46c638355161128fbb4853f3f807b2ab |
β¬οΈ ipv6.tsv 41.61MiB (43.63MB) β 632,312 rows β 251 unique countries Checksums (click to show)MD5: cb34e850741cd61df3c9a5a19062d004 |
| Full Location | Weekly IPv4: 2026-03-31 IPv6: 2026-03-31 |
β¬οΈ ipv4-de.tsv 188.1MiB (197.3MB) β 3,704,003 rows β 251 unique countries Checksums (click to show)MD5: 96364795d8b54fdc304d12375ec857b2 199.7MiB (209.4MB) β 3,704,003 rows β 251 unique countries Checksums (click to show)MD5: 0f98486f803c02149fe082fa2f1de545 187.4MiB (196.5MB) β 3,704,003 rows β 251 unique countries Checksums (click to show)MD5: 9c54c155e1843a16394fc3f51923e774 190.4MiB (199.6MB) β 3,704,003 rows β 251 unique countries Checksums (click to show)MD5: 6b893587e32154fbb4432b3a2b1e20d4 238.7MiB (250.3MB) β 3,704,003 rows β 251 unique countries Checksums (click to show)MD5: d62396d3f9a766298ef0bb6c6f5b9974 186.9MiB (196.0MB) β 3,704,003 rows β 251 unique countries Checksums (click to show)MD5: 426e7c6f81afef2d6f7f609e3236f910 232.3MiB (243.6MB) β 3,704,003 rows β 251 unique countries Checksums (click to show)MD5: eb2022f5171974c8ebd6509dd6d5a8d0 195.3MiB (204.8MB) β 3,704,003 rows β 251 unique countries Checksums (click to show)MD5: 21995afad1e4d5a0c7d41687e17da44f |
β¬οΈ ipv6-de.tsv 190.5MiB (199.8MB) β 2,009,306 rows β 251 unique countries Checksums (click to show)MD5: 93b5d1bb6c63919477b2f768fbce2598 194.8MiB (204.3MB) β 2,009,306 rows β 251 unique countries Checksums (click to show)MD5: e05b8cd73eeb4c71b273521e31676902 188.2MiB (197.4MB) β 2,009,306 rows β 251 unique countries Checksums (click to show)MD5: 1edf8f35b50a73e7ca0d903785c11a66 189.0MiB (198.2MB) β 2,009,306 rows β 251 unique countries Checksums (click to show)MD5: 8582da40b82a02e0be6b8ad84722c691 209.5MiB (219.6MB) β 2,009,306 rows β 251 unique countries Checksums (click to show)MD5: 4421bef15a22f313e21d2be4bbc55b3f 188.0MiB (197.2MB) β 2,009,306 rows β 251 unique countries Checksums (click to show)MD5: 7dc4d56eddb9979c608d4317e276971d 209.2MiB (219.4MB) β 2,009,306 rows β 251 unique countries Checksums (click to show)MD5: d7104d209233322af4aa806bf86f1230 191.7MiB (201.0MB) β 2,009,306 rows β 251 unique countries Checksums (click to show)MD5: a5b2a3c56afb159c0187a003a0a6d556 |
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 AUmeans that the IP addresses between1.0.0.0and1.0.0.255inclusive are in Australia π¦πΊ (AUcountry code).1000000is the hexadecimal format of the IP address1.0.0.0. The numbers are 32-bit unsigned integers. - IPv6:
20010200000000000000000000000000 20010200FFFFFFFFFFFFFFFFFFFFFFFF JPmeans that the IP addresses between2001:200::and2001:200:ffff:ffff:ffff:ffff:ffff:ffffinclusive are in Japan π―π΅ (JPcountry code).20010200000000000000000000000000is 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.