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-02-07 IPv6: 2026-02-07 |
β¬οΈ ipv4.tsv 6.439MiB (6.752MB) β 322,418 rows β 251 unique countries Checksums (click to show)MD5: 1c2cc06bde58b2b1fb3b1b1d6f587d9e |
β¬οΈ ipv6.tsv 15.18MiB (15.92MB) β 230,666 rows β 255 unique countries Checksums (click to show)MD5: 0b1af7c3cb6bd627b3c298c699353333 |
| iptoasn.com | π PDDL v1.0 |
Country | Daily IPv4: 2026-02-07 IPv6: 2026-02-07 |
β¬οΈ ipv4.tsv 8.769MiB (9.195MB) β 439,110 rows β 241 unique countries Checksums (click to show)MD5: da7c614c298ca6006bb17caf182f108d |
β¬οΈ ipv6.tsv 7.588MiB (7.956MB) β 115,423 rows β 223 unique countries Checksums (click to show)MD5: c05db826edb091579da0a182ba962a1e |
| IPinfo.io | π
π
―π CC BY-SA 4.0 |
Country | Daily 2026-02-07 |
β¬οΈ ipv4.tsv 12.16MiB (12.75MB) β 608,791 rows β 248 unique countries Checksums (click to show)MD5: 3f6c2e71f1386efac16eab93cdcc4a5b |
β¬οΈ ipv6.tsv 52.32MiB (54.86MB) β 795,039 rows β 248 unique countries Checksums (click to show)MD5: 41790a9aafcb8c4f47ce6af4051aebe1 |
| DB-IP Lite | π
π
― CC BY 4.0 |
Country | Monthly 2026-02-01 |
β¬οΈ ipv4.tsv 6.768MiB (7.097MB) β 339,077 rows β 244 unique countries Checksums (click to show)MD5: dd0181205d24255559b4c2a13fdb0c95 |
β¬οΈ ipv6.tsv 15.90MiB (16.67MB) β 241,625 rows β 250 unique countries Checksums (click to show)MD5: 24f8f77acea5ee52ad5d81c9f3883d7a |
| Full Location | Monthly 2026-02-01 |
β¬οΈ ipv4.tsv 213.7MiB (224.1MB) β 3,746,829 rows β 244 unique countries Checksums (click to show)MD5: 48770c63478550e9d616b0e8f11eb35f |
β¬οΈ ipv6.tsv 452.5MiB (474.4MB) β 4,397,969 rows β 250 unique countries Checksums (click to show)MD5: 72d15359a3c2245bffe65895c5939244 |
||
| IP2Location LITE | π
π
―π CC BY-SA 4.0 |
Country | Bimonthly IPv4: 2026-01-31 IPv6: 2026-01-31 |
β¬οΈ ipv4.tsv 5.379MiB (5.641MB) β 269,229 rows β 242 unique countries Checksums (click to show)MD5: 8df1f43c6aabf7404b9835918b8fde47 |
β¬οΈ ipv6.tsv 22.19MiB (23.27MB) β 337,206 rows β 248 unique countries Checksums (click to show)MD5: 48696b7a642ffca450b564a365389e84 |
| Full Location | Bimonthly IPv4: 2026-01-31 IPv6: 2026-01-31 |
β¬οΈ ipv4.tsv 171.6MiB (179.9MB) β 2,969,494 rows β 242 unique countries Checksums (click to show)MD5: e5343189d8e7d3b6229056c21a834739 |
β¬οΈ ipv6.tsv 293.6MiB (307.9MB) β 2,846,346 rows β 248 unique countries Checksums (click to show)MD5: c67fa86a08014c894bae1e43237dbf3a |
||
| GeoLite2 | π
―π GeoLite2 EULA |
Country | Weekly IPv4: 2026-02-06 IPv6: 2026-02-06 |
β¬οΈ ipv4.tsv 12.05MiB (12.63MB) β 603,035 rows β 251 unique countries Checksums (click to show)MD5: 83a16f24cd6a5a9b2353e1f3caf76103 |
β¬οΈ ipv6.tsv 42.88MiB (44.96MB) β 651,581 rows β 251 unique countries Checksums (click to show)MD5: 1b0744224acb0c3ece674c2e7bd6759c |
| Full Location | Weekly IPv4: 2026-02-06 IPv6: 2026-02-06 |
β¬οΈ ipv4-de.tsv 177.6MiB (186.2MB) β 3,512,199 rows β 251 unique countries Checksums (click to show)MD5: 17ecf6d68e99b80bac1d4c311a6179ac 188.5MiB (197.6MB) β 3,512,199 rows β 251 unique countries Checksums (click to show)MD5: 21b25166b6dbdd4e3ba465fd4b525e0d 176.6MiB (185.2MB) β 3,512,199 rows β 251 unique countries Checksums (click to show)MD5: b8b6a024e9642f8bcccf963110b6460d 179.5MiB (188.2MB) β 3,512,199 rows β 251 unique countries Checksums (click to show)MD5: 1bcb75bb8d1b2bd0b01211bc4fa411ac 224.3MiB (235.2MB) β 3,512,199 rows β 251 unique countries Checksums (click to show)MD5: c4d514bcbc90261413c2f5ff7ae011e1 176.2MiB (184.8MB) β 3,512,199 rows β 251 unique countries Checksums (click to show)MD5: db941ec3596df1f214d1c0c1bf207b5c 218.2MiB (228.8MB) β 3,512,199 rows β 251 unique countries Checksums (click to show)MD5: 95dc49fd4a1ba4503282f962455706a4 183.5MiB (192.5MB) β 3,512,199 rows β 251 unique countries Checksums (click to show)MD5: 161b01cf81ae03e6910c861f38e6f586 |
β¬οΈ ipv6-de.tsv 185.6MiB (194.6MB) β 1,958,310 rows β 251 unique countries Checksums (click to show)MD5: 0123a67aba2be1c477ee6124149ade91 189.7MiB (198.9MB) β 1,958,310 rows β 251 unique countries Checksums (click to show)MD5: 8ab20b24489b1b424198bbd8a8fa1652 183.4MiB (192.3MB) β 1,958,310 rows β 251 unique countries Checksums (click to show)MD5: 1bbb08bb6982d4bd2bf54613b9f090c8 184.1MiB (193.0MB) β 1,958,310 rows β 251 unique countries Checksums (click to show)MD5: 2b5524d63787b7115f445fe3e4a5591b 203.6MiB (213.5MB) β 1,958,310 rows β 251 unique countries Checksums (click to show)MD5: 18a65dd80f0dc9db919399f5ca8cbac1 183.0MiB (191.9MB) β 1,958,310 rows β 251 unique countries Checksums (click to show)MD5: ad40350a58ca96075282710ba8f55e9a 203.6MiB (213.5MB) β 1,958,310 rows β 251 unique countries Checksums (click to show)MD5: 6b6c7ebf9ca6fd106f31c0d4c3a5fcfb 186.5MiB (195.6MB) β 1,958,310 rows β 251 unique countries Checksums (click to show)MD5: 92cc60737d1a03d71a44b27c8d5d842a |
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.