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: 2024-08-07 IPv6: 2024-08-07 |
β¬οΈ ipv4.tsv 4.761MiB (4.993MB) β 238,359 rows β 247 unique countries Checksums (click to show)MD5: dd8d8961327b721b5e2ff99047a70626 |
β¬οΈ ipv6.tsv 5.771MiB (6.051MB) β 87,698 rows β 250 unique countries Checksums (click to show)MD5: 0d093fe04fd838bf64cf3bbc898ecbe0 |
iptoasn.com | π PDDL v1.0 |
Country | Daily IPv4: 2024-08-07 IPv6: 2024-08-07 |
β¬οΈ ipv4.tsv 8.123MiB (8.518MB) β 406,803 rows β 240 unique countries Checksums (click to show)MD5: d4b0c45e01b6f57bc7beb11563c20bf2 |
β¬οΈ ipv6.tsv 6.591MiB (6.911MB) β 100,271 rows β 224 unique countries Checksums (click to show)MD5: ad4ce5aac2666dfe2d7fef229788a207 |
IPinfo.io | π
π
―π CC BY-SA 4.0 |
Country | Daily 2024-08-07 |
β¬οΈ ipv4.tsv 17.01MiB (17.84MB) β 851,121 rows β 246 unique countries Checksums (click to show)MD5: 68f3b609ffe7dbedf6cea570c0c5cc62 |
β¬οΈ ipv6.tsv 85.68MiB (89.85MB) β 1,302,104 rows β 246 unique countries Checksums (click to show)MD5: d9fb33e1871d9863c9645dc7417f3cb5 |
DB-IP Lite | π
π
― CC BY 4.0 |
Country | Monthly 2024-08-01 |
β¬οΈ ipv4.tsv 6.930MiB (7.266MB) β 348,283 rows β 242 unique countries Checksums (click to show)MD5: d0fbc41bc5bb2b90a8e0d5e5ce544a9e |
β¬οΈ ipv6.tsv 17.13MiB (17.96MB) β 260,326 rows β 250 unique countries Checksums (click to show)MD5: 7d830eaf780889ad98001bab48d5aa45 |
Full Location | Monthly 2024-08-01 |
β¬οΈ ipv4.tsv 186.4MiB (195.5MB) β 3,254,855 rows β 242 unique countries Checksums (click to show)MD5: 0a701f04a73cc8f80f1d62d7d31565c1 |
β¬οΈ ipv6.tsv 351.7MiB (368.8MB) β 3,417,387 rows β 250 unique countries Checksums (click to show)MD5: f8e978ebf3bde1f974ba0a4b6532bcd5 |
||
IP2Location LITE | π
π
―π CC BY-SA 4.0 |
Country | Bimonthly IPv4: 2024-08-07 IPv6: 2024-08-07 |
β¬οΈ ipv4.tsv 4.752MiB (4.983MB) β 237,847 rows β 243 unique countries Checksums (click to show)MD5: 41a19f3b324b30f1b8e58614ced6c3eb |
β¬οΈ ipv6.tsv 18.46MiB (19.36MB) β 280,554 rows β 249 unique countries Checksums (click to show)MD5: 48429e636d89243b95e58e224ddcab83 |
Full Location | Bimonthly IPv4: 2024-08-07 IPv6: 2024-08-07 |
β¬οΈ ipv4.tsv 172.1MiB (180.4MB) β 2,980,631 rows β 243 unique countries Checksums (click to show)MD5: 1b3e4b34496e91b79950bfd2ba90c64e |
β¬οΈ ipv6.tsv 205.2MiB (215.2MB) β 1,986,964 rows β 249 unique countries Checksums (click to show)MD5: cbf91d149bffc17e272f874de287e1a0 |
||
GeoLite2 | π
―π GeoLite2 EULA |
Country | Weekly IPv4: 2024-08-06 IPv6: 2024-08-06 |
β¬οΈ ipv4.tsv 9.880MiB (10.36MB) β 494,929 rows β 251 unique countries Checksums (click to show)MD5: 49b558d77c72732d8d17e54b993c0cfe |
β¬οΈ ipv6.tsv 25.63MiB (26.87MB) β 389,492 rows β 251 unique countries Checksums (click to show)MD5: e676fc0a2c3747b15b12f8ace0d2c6b6 |
Full Location | Weekly IPv4: 2024-08-06 IPv6: 2024-08-06 |
β¬οΈ ipv4-de.tsv 120.7MiB (126.6MB) β 2,417,808 rows β 251 unique countries Checksums (click to show)MD5: 0633a3e6f27da7d9e68584818b533c7a 129.7MiB (136.0MB) β 2,417,808 rows β 251 unique countries Checksums (click to show)MD5: 99a7ed42445a3cda611783669e19eb69 120.5MiB (126.3MB) β 2,417,808 rows β 251 unique countries Checksums (click to show)MD5: 6b821cd5c8a1e41768ab66bcd7aad7e9 122.9MiB (128.9MB) β 2,417,808 rows β 251 unique countries Checksums (click to show)MD5: b068076f93e19061af747c9728eac034 150.5MiB (157.8MB) β 2,417,808 rows β 251 unique countries Checksums (click to show)MD5: 1d0a9d91547b0f4c0fb5eb81cf9ac280 119.7MiB (125.5MB) β 2,417,808 rows β 251 unique countries Checksums (click to show)MD5: 5bd3d4ead6c215898e99ec1622ccfa1b 146.8MiB (153.9MB) β 2,417,808 rows β 251 unique countries Checksums (click to show)MD5: 95c6ae3200b093f4eb1736e901fe1707 123.2MiB (129.1MB) β 2,417,808 rows β 251 unique countries Checksums (click to show)MD5: 34d7dfc35ef1198ccba46d0f7d26f789 |
β¬οΈ ipv6-de.tsv 125.9MiB (132.1MB) β 1,363,938 rows β 251 unique countries Checksums (click to show)MD5: 25d94c9cc672ed408b295e9dd04ee1ba 130.1MiB (136.5MB) β 1,363,938 rows β 251 unique countries Checksums (click to show)MD5: 2f53cb8ae8316c11705d4a05bf5396f1 126.3MiB (132.4MB) β 1,363,938 rows β 251 unique countries Checksums (click to show)MD5: 36354110107685a140fd3d66dab1522c 126.8MiB (132.9MB) β 1,363,938 rows β 251 unique countries Checksums (click to show)MD5: 79cfdc2ca00dffbd675c834a7abf925b 138.4MiB (145.1MB) β 1,363,938 rows β 251 unique countries Checksums (click to show)MD5: 45296888220f1e6e07f6f75eabbe71fa 125.9MiB (132.0MB) β 1,363,938 rows β 251 unique countries Checksums (click to show)MD5: 02863d22fa221dbfd6f29d119b7de35f 137.4MiB (144.1MB) β 1,363,938 rows β 251 unique countries Checksums (click to show)MD5: 908b29647cb27b150c0a0b0ac96b6d7a 127.9MiB (134.1MB) β 1,363,938 rows β 251 unique countries Checksums (click to show)MD5: cacddc1361833b4475d557617b376511 |
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.