Skip to content

tdulcet/ip-geolocation-dbs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1,052 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CI pipeline status

IP Geolocation Databases

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.

Database comparison

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
SHA1: c6fbd1ce01b5bdeec38345d22396ea518ebe1096
SHA256: f00e8d312648cc51d29df384dac2d02bb449059fa887723766933eb8c1b5f96d
⬇️ ipv6.tsv
15.54MiB (16.29MB) – 236,090 rows – 258 unique countries
Checksums (click to show)
MD5: d06952f8f4462a45594c9ddcc53b14a2
SHA1: 6c1e29d590f18d77050b83df7c2e907dfa6f1312
SHA256: 1f27e1e80294d2357d18eefaf1fbb485923ff428e9439817432e3f9b80d1d9c3
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
SHA1: 906a7991b11d280d235f3e835b4194196bdccdae
SHA256: 5decae022c20c9ff60e0fca4d6631c295c1075924dfa9902dcf267e543466ef3
⬇️ ipv6.tsv
7.703MiB (8.077MB) – 117,168 rows – 223 unique countries
Checksums (click to show)
MD5: cf8a53ff2c39c2537e4dcbfaa21284f2
SHA1: 016413061e9085ed97923742c7bee276f4e1dcbd
SHA256: a9b4893012d8d96b439f3ff93737ee81b65403d1bf789cb2464c450d2bc67410
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
SHA1: 7e0646d89de0f9536c2342a53822a2a5bd969d95
SHA256: bc92ad8228508fbdb042203e972feafb122c7d8b6b0d250a627c7f5fdd306a00
⬇️ ipv6.tsv
82.13MiB (86.12MB) – 1,248,045 rows – 248 unique countries
Checksums (click to show)
MD5: 0c9025012348cdbff8d74d8e3526bbbe
SHA1: e565ca8b21a20bbd6903c54736814ef48b370c3e
SHA256: a0440b3ebd31f0b2bbd542b4f004cf4202571df394fdcb0c7ce1e2a827290842
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
SHA1: c92420984bf626b44e3e67d758d69445fb143ffb
SHA256: e146504776921dc692c63f60d2370bf79fb07292660469d770fa106e4631207a
⬇️ ipv6.tsv
23.64MiB (24.79MB) – 359,308 rows – 250 unique countries
Checksums (click to show)
MD5: 33ee0b03816b02204291c82b23bb2198
SHA1: 33e35a7659da8340230685dd9ccb2c9c6589fe0d
SHA256: 7b71bc7b8fa243eafaa0756dac58003d65456d19aaf08c1f2f37d5f5b9ee996d
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
SHA1: 3e714e02782357dff78e09d95e5418409fba591e
SHA256: 2ca1d6e1fe3ca8b62e5ac300d3b78e9b466888442d00539706490057a1729934
⬇️ ipv6.tsv
453.1MiB (475.1MB) – 4,404,475 rows – 250 unique countries
Checksums (click to show)
MD5: 5521d7ab94f632b0a2c554ad74dbf65c
SHA1: 74f50e2d2befb3c668a9339dc9038b31c82b54cb
SHA256: 3e49779045e3221a1ebaf9babc696dfdcf541b95d4da27bef8d0a1ef06874c5c
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
SHA1: 0e6f9963d4be9ee56a49e049763bd02f205d3a85
SHA256: ebe5ef8a85349b7035cb097711e046af6cb85da6e55e75db4c86fcde26693184
⬇️ ipv6.tsv
19.55MiB (20.50MB) – 297,090 rows – 248 unique countries
Checksums (click to show)
MD5: ccd416bd2a6eb3354a2f0bd2c14e2e95
SHA1: 999fc6189bdbfd9fabfa26cb33d6459328a9d3df
SHA256: d6bc811052a30726e83d58e2ce20a497d664e995f75c3ac2e67f59d02f53ebe5
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
SHA1: 54cb1ca880bc94036c7b2d5087b3a50232f02bcb
SHA256: 9fca85ebd3cd11fb4f7e2162eabe558238743487e9b6da288ad98cad73b60553
⬇️ ipv6.tsv
280.0MiB (293.6MB) – 2,713,153 rows – 248 unique countries
Checksums (click to show)
MD5: 08e913f1ced14f2ca98aee2b12eed0c8
SHA1: 6a690dd5c18501daf66681173ed29afd4c44c178
SHA256: c2501fe0c75d957b6f27a198c035b841c73c6f52da1352ef12f100da228b6e2d
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
SHA1: 8b518bbd77c9aed1a8abae28eaa127eb3dee2737
SHA256: d66400494325165f301426122205b75dbcf8476f09b3b9f8e83e7c0a078eb97a
⬇️ ipv6.tsv
41.61MiB (43.63MB) – 632,312 rows – 251 unique countries
Checksums (click to show)
MD5: cb34e850741cd61df3c9a5a19062d004
SHA1: 85aee61a94d29fd55e86ea494d6426b26dbcbfd4
SHA256: a56bc2e494bdaec2f17f43c66b38eb3f0ff88b6d63f0716eda333d26ecf2de22
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
SHA1: 9aafe09edb8ecef978aebf6bf025383ea8a00487
SHA256: 230d5bcdbf2146031b29172b1469b348150a0b093caf9f5f9a85414addeec47b
⬇️ ipv4-en.tsv
199.7MiB (209.4MB) – 3,704,003 rows – 251 unique countries
Checksums (click to show)
MD5: 0f98486f803c02149fe082fa2f1de545
SHA1: d7c5325781c624ff7d80a3fc410b2dad3e3bb521
SHA256: c841b5b986deae4a452876184a41b584b1b010a67bfcb2df20ab767e75332de9
⬇️ ipv4-es.tsv
187.4MiB (196.5MB) – 3,704,003 rows – 251 unique countries
Checksums (click to show)
MD5: 9c54c155e1843a16394fc3f51923e774
SHA1: 6cc076b61829ac8ccb3397e941147b2afdb7bac5
SHA256: 624001c27fb36ff8bb64f44cd524bb5512d565869eb69a944302496630a70a9a
⬇️ ipv4-fr.tsv
190.4MiB (199.6MB) – 3,704,003 rows – 251 unique countries
Checksums (click to show)
MD5: 6b893587e32154fbb4432b3a2b1e20d4
SHA1: dad54a5f5205e9eeb2ad8d5247c84602a4f9f224
SHA256: fe9c7c94a487edc8c8e97bd98a880230dd95bdfdb7cdd17755d6d40cf516004a
⬇️ ipv4-ja.tsv
238.7MiB (250.3MB) – 3,704,003 rows – 251 unique countries
Checksums (click to show)
MD5: d62396d3f9a766298ef0bb6c6f5b9974
SHA1: 2fcbf67cd4f73fbeab644ac67d780aff572ce662
SHA256: 47e88832d8abecb827f54b5903e8c66f051cd9e3bd43b8dac465a058ffc9352e
⬇️ ipv4-pt-BR.tsv
186.9MiB (196.0MB) – 3,704,003 rows – 251 unique countries
Checksums (click to show)
MD5: 426e7c6f81afef2d6f7f609e3236f910
SHA1: 5abecddd4c865be51d40b553ae168d8ef02662a2
SHA256: 64047108ff94dba8d0eda9c379279018a06c492e9099d1cf4240eec1b47c1f29
⬇️ ipv4-ru.tsv
232.3MiB (243.6MB) – 3,704,003 rows – 251 unique countries
Checksums (click to show)
MD5: eb2022f5171974c8ebd6509dd6d5a8d0
SHA1: b8eb03d60b7d39af8c951bc91f2de366b75c7ab1
SHA256: 47a46d44c7c11fdfe81f741a6935dae940f4ab0edf0f4d709f00700e55a852b8
⬇️ ipv4-zh-CN.tsv
195.3MiB (204.8MB) – 3,704,003 rows – 251 unique countries
Checksums (click to show)
MD5: 21995afad1e4d5a0c7d41687e17da44f
SHA1: d14d3c9b39ab69fb9f4d9155a3658466f555b1f7
SHA256: 1a70b8dd304c239e3562c2eebca2e614cd3f38929671ab3fef350e08d1a94146
⬇️ ipv6-de.tsv
190.5MiB (199.8MB) – 2,009,306 rows – 251 unique countries
Checksums (click to show)
MD5: 93b5d1bb6c63919477b2f768fbce2598
SHA1: bd56a378c15cc51d2a70354b64dc5e9d8e952c8c
SHA256: 77ae43c446e748ab17dc7b3d3188c6b0a23823be36f11458b55daed5dc180c86
⬇️ ipv6-en.tsv
194.8MiB (204.3MB) – 2,009,306 rows – 251 unique countries
Checksums (click to show)
MD5: e05b8cd73eeb4c71b273521e31676902
SHA1: e3c9ead2d20142340f59d285c1ad11ed606208ee
SHA256: 9172d1a3ff6c3f6278823c055eea0aca3e23d6a8804b4944a6be8c99c4fc8774
⬇️ ipv6-es.tsv
188.2MiB (197.4MB) – 2,009,306 rows – 251 unique countries
Checksums (click to show)
MD5: 1edf8f35b50a73e7ca0d903785c11a66
SHA1: f4b820c5162ffefd2eb922fe1415c361b32e2c51
SHA256: 6959c20f250e6e5a098aaf3f5c451d2fade6abae4f4d8acb4094d7f2a387cba5
⬇️ ipv6-fr.tsv
189.0MiB (198.2MB) – 2,009,306 rows – 251 unique countries
Checksums (click to show)
MD5: 8582da40b82a02e0be6b8ad84722c691
SHA1: 9466732051d38ef90022a4b568537ff083ccd0a1
SHA256: 0ccfe903b40c26103b9960b24e0c89d3d30b25e068e3d55e3492d8dfd467735d
⬇️ ipv6-ja.tsv
209.5MiB (219.6MB) – 2,009,306 rows – 251 unique countries
Checksums (click to show)
MD5: 4421bef15a22f313e21d2be4bbc55b3f
SHA1: 2b5879806ef8accd1d8eead9472ab8c504f756c0
SHA256: 3a381cc586af4966ba2ff42cf0bb23fd12ad7004fcb140d5ba934ac863053df5
⬇️ ipv6-pt-BR.tsv
188.0MiB (197.2MB) – 2,009,306 rows – 251 unique countries
Checksums (click to show)
MD5: 7dc4d56eddb9979c608d4317e276971d
SHA1: c3efd1ff92338a8e646f033b074bb4c14fda555b
SHA256: 5c1291995234bb23ecdc2c6eb8faf74f32d45696ead4aa2603f7453b6a3f7b1b
⬇️ ipv6-ru.tsv
209.2MiB (219.4MB) – 2,009,306 rows – 251 unique countries
Checksums (click to show)
MD5: d7104d209233322af4aa806bf86f1230
SHA1: 615933059eaec68a5cade86ab6d889ed73558959
SHA256: 2f4f5c6671b8704610eb06c0a46a66ffb968e1261f0cddf547cb0bb7d27102da
⬇️ ipv6-zh-CN.tsv
191.7MiB (201.0MB) – 2,009,306 rows – 251 unique countries
Checksums (click to show)
MD5: a5b2a3c56afb159c0187a003a0a6d556
SHA1: c94921c80e3d25e17c9e6cbdd3620c380387cd27
SHA256: f1e5c86cdc7453b1eacef1750f6ddb017f37c9a0bc003a1a2da66b154422ab10

Databases

GeoFeed + WHOIS + ASN database

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).

TSV format

ip_range_start ip_range_end country_code

iptoasn.com database

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.

TSV format

ip_range_start ip_range_end country_code

IPinfo.io database

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>
TSV format

ip_range_start ip_range_end country_code

DB-IP Lite databases

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>
Country TSV format

ip_range_start ip_range_end country_code

Full location TSV format

ip_range_start ip_range_end country_code state/providence city latitude longitude

Note that state/providence and city are blank for some rows.

GeoLite2 databases

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.

Country TSV format

ip_range_start ip_range_end country_code

Full location TSV format

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.

IP2Location LITE databases

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>.
Country TSV format

ip_range_start ip_range_end country_code

Full location TSV format

ip_range_start ip_range_end country_code state/providence city latitude longitude

Note that state/providence and city are blank for some rows.

TSV format

See above for the specific format of each database.

IP address ranges

ip_range_start and ip_range_end is an IP address range.

  • IPv4: 1000000 10000FF AU means that the IP addresses between 1.0.0.0 and 1.0.0.255 inclusive are in Australia πŸ‡¦πŸ‡Ί (AU country code). 1000000 is the hexadecimal format of the IP address 1.0.0.0. The numbers are 32-bit unsigned integers.
  • IPv6: 20010200000000000000000000000000 20010200FFFFFFFFFFFFFFFFFFFFFFFF JP means that the IP addresses between 2001:200:: and 2001:200:ffff:ffff:ffff:ffff:ffff:ffff inclusive are in Japan πŸ‡―πŸ‡΅ (JP country code). 20010200000000000000000000000000 is the hexadecimal format of the IP address 2001:200::. The numbers are 128-bit unsigned integers.

Country code

country_code is the two-letter code defined in ISO 3166-1 alpha-2.

Contributing

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.

About

πŸ“ IPv4 and IPv6 Geolocation databases that automatically update daily

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors