Skip to content

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

License

Notifications You must be signed in to change notification settings

tdulcet/ip-geolocation-dbs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

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: 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
SHA1: f325ea030c1366363b9d9fcb94aa9aa3a718622c
SHA256: 182199d7e91a0c4ce15a10a11856c559848f64b34fb0db07f434057be08a7027
⬇️ ipv6.tsv
11.82MiB (12.39MB) – 179,591 rows – 253 unique countries
Checksums (click to show)
MD5: 76a51399561c8a08af87eabf3436f6ec
SHA1: bc50c97ac7c2c19df8645613e6e342427fc51c38
SHA256: 1dfb0ce8bcfa5803befdb675c70b1a2edbb297799e0fa72488c83509d22511f7
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
SHA1: cd7fe5232f84b4e8c880a2abf108ccbc38f55814
SHA256: dce30cad1f8236a85c7af1b5fc03e962f321e1456c971a7d10634fb2c206ec2c
⬇️ ipv6.tsv
6.982MiB (7.322MB) – 106,224 rows – 224 unique countries
Checksums (click to show)
MD5: b36946888b035d130e552b7c34dfbcc4
SHA1: dd5b3f061be6d9e8e5e0d01d8dac62ce7ef66c07
SHA256: 7e0c361e0669a4260ebd1f8d62a625240b7e2163c6f106b75e9b8bac7e3182c9
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
SHA1: 81811e3fe43fcc7f8b94c67b775efc2214182d6f
SHA256: d6730b11ec732b438f8e6d40c98a64cf07a4056d3bcb22ef1fb3ba739d7085cc
⬇️ ipv6.tsv
72.31MiB (75.82MB) – 1,098,869 rows – 247 unique countries
Checksums (click to show)
MD5: 5bfe42cfb01686285428943949a387d4
SHA1: ece428f127fcb79b85f028899dcbabdae7dee8e4
SHA256: 51eb2604c6bdcbb2e4a5a0a73083a1c53299ad427e4da6ab7118c091e7ded1a7
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
SHA1: 9325bb0b20fe7cf38b086bd997249c0ea0460073
SHA256: 388e526b141f72da365e6c1487008eaf5440f4e2a173bfada2766c55cb3eb316
⬇️ ipv6.tsv
16.53MiB (17.34MB) – 251,265 rows – 250 unique countries
Checksums (click to show)
MD5: 609d7024eb89dc7bd684d0207b3733b9
SHA1: 956350aa870d6a38630af3f3a3b53278471d39bd
SHA256: 95146645c0293ed5818f1df79ae51e4c9c07a1f6c91ea0f9331b8da35b754bbe
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
SHA1: 62922290000ef7c4549382119783c2045e4d1e6a
SHA256: 51718b9bcaef22b3bcf85a754a3a5fdd48d4a0efd9af8a4e3532e918a7368b41
⬇️ ipv6.tsv
388.5MiB (407.4MB) – 3,770,967 rows – 250 unique countries
Checksums (click to show)
MD5: 99a5296fc623ecf8f0caa811c6b1aa61
SHA1: a31112844edcf6b611b51dd56508b700f7dfd9d1
SHA256: 4018f4afbdecaeedf11e8e21fc7f50e5719bc241f3a50121788f441946a9b58f
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
SHA1: f15aed8ee671e3e27c23c736e23edc25368ae1b8
SHA256: c034868fc655de42297d14220caccea0ab330ee13028773c38db7c6de47b21b0
⬇️ ipv6.tsv
18.38MiB (19.27MB) – 279,344 rows – 248 unique countries
Checksums (click to show)
MD5: 18cef1451430608ae8ad70e0f4963dff
SHA1: 43bd5d1e9844ece7eae20604c4d83f7960da31a0
SHA256: fed2a958c9ff8365cbd35a38e1b062b5237d9c3576831c5f27705c77a13bbff3
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
SHA1: 2ab572bf0cc2040a312448643055f2f718ca5ac5
SHA256: 1d66b45f20fdcc805cf1b87b04dc600ee7e3bcce4b90b5400d770f1ca47a3254
⬇️ ipv6.tsv
233.4MiB (244.7MB) – 2,257,726 rows – 248 unique countries
Checksums (click to show)
MD5: 16d52faeae6d9b914518dee2695e772b
SHA1: ba805ee8a2f7aede9c579332c56ae8ddfc7f7251
SHA256: 87cd4c71031299fc55a0c464dac619478c748c283c398787e9e7547a3ae9b9e1
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
SHA1: 73ab46760b9ee626b88aad60fc3ce12004689aa1
SHA256: 5f1684bc428321a6f46f741c88b820c50f9e5e96c771abe0e5af9f60bfef8ceb
⬇️ ipv6.tsv
38.48MiB (40.35MB) – 584,739 rows – 251 unique countries
Checksums (click to show)
MD5: dad81d490ecae7c3664fb0ccf153c9a3
SHA1: b1dbfad6d709d5ae632011b49bf41b214e68393e
SHA256: e666ffc62c18332657bc260ac032885c3c61d2876d646c3af30c9a41c9bb7a61
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
SHA1: d76e35fd175cd115c5bb8d9afde793e99ff9c8cc
SHA256: 426199151bbabaaa9514ef69e39774badad08a7b243dab5d0b3a24abf0b0a5a4
⬇️ ipv4-en.tsv
177.4MiB (186.1MB) – 3,296,677 rows – 251 unique countries
Checksums (click to show)
MD5: 073ae5d41fb277a3a337f3284146ece0
SHA1: bfc85e657c8083ca5310fe96bfd29b3417751c94
SHA256: aff79e71d59f13eae8d583d81989bd820c6624780d66a8b14d93f650f4738fc3
⬇️ ipv4-es.tsv
165.6MiB (173.7MB) – 3,296,677 rows – 251 unique countries
Checksums (click to show)
MD5: 618118b485151b1dff4dcbcc0451a9a1
SHA1: 59db5dbf146210ee876adbf48f8ba8600f8ee0ab
SHA256: cda2291241edc64c6160d1dbcda449d598170e83843112b76ecc0dedadf6e30a
⬇️ ipv4-fr.tsv
168.0MiB (176.1MB) – 3,296,677 rows – 251 unique countries
Checksums (click to show)
MD5: 9f553fa0ccd83a5e2fa665da87d06353
SHA1: 88a8182402de356671acc0f8f5a7d9a699cf88ff
SHA256: 98316e22e801bc248ec2566cfde25844b5aa5dfaf6cd189a73f834cffb0626de
⬇️ ipv4-ja.tsv
211.4MiB (221.7MB) – 3,296,677 rows – 251 unique countries
Checksums (click to show)
MD5: 1723a4c42b26140fcd82c0becc1c7e3b
SHA1: d86aa40922ac13e9172bb47540d05b26cf10e3b9
SHA256: 67cda3819b722d904a516d8b8087d73343cc40316d0f0c27c42526a25ad602b1
⬇️ ipv4-pt-BR.tsv
165.7MiB (173.7MB) – 3,296,677 rows – 251 unique countries
Checksums (click to show)
MD5: 17c0e37d185dc1f83bd0e2b162ec5e91
SHA1: 0bc242bad81de117e4ce87023fdd21c646e453c1
SHA256: 9c10724114c4fcde0cbc3dd84aa4cb8387e8be2b1f90688075474aebf90eb474
⬇️ ipv4-ru.tsv
205.2MiB (215.2MB) – 3,296,677 rows – 251 unique countries
Checksums (click to show)
MD5: fe9191ca1eb3349caba037d01f724631
SHA1: 676578a68086e865015fa4b58cbf3c96aba8d9de
SHA256: 62a8375e077d70af6c602a6b72fc560d406502784f9b742930f4aeb80cee67ac
⬇️ ipv4-zh-CN.tsv
172.8MiB (181.2MB) – 3,296,677 rows – 251 unique countries
Checksums (click to show)
MD5: e6919048219c3e6e095e48e9d9e48fd1
SHA1: ecf2cdfdd3ba867e885c6fbf776fcc8567c9a8aa
SHA256: ba0b643660452d1942ed1474346bb204ceeeea9dc8e765968fc56a3a6c577df5
⬇️ ipv6-de.tsv
164.4MiB (172.4MB) – 1,753,288 rows – 251 unique countries
Checksums (click to show)
MD5: 15987dd720fe7f28f3e410a8431561f4
SHA1: 162c4bd590e4e6ab730f9dc2b39fa99b46002b8b
SHA256: f21552253c21194d8a3b5742763ade78ed9b33e8d4278ad85acc6c9d0dcbc829
⬇️ ipv6-en.tsv
168.1MiB (176.3MB) – 1,753,288 rows – 251 unique countries
Checksums (click to show)
MD5: bca8bdc4c704b595895e3370e0add05a
SHA1: 9fe43c5ae803e6a6cde00740c142e332da582a74
SHA256: 705edc0d107c73b800d8a516c4cffab2100be8dfad2df62923f36375f9d8e721
⬇️ ipv6-es.tsv
162.5MiB (170.4MB) – 1,753,288 rows – 251 unique countries
Checksums (click to show)
MD5: 6656893abc518115a45ff732e28e2224
SHA1: 6b14cf24ea3fd7f6f226806aa42fceb52fb41ccc
SHA256: 2c238664be7161b1fa2c167d3760d3308b500a2ec2c0e9062ab223c9409dd3c5
⬇️ ipv6-fr.tsv
162.8MiB (170.7MB) – 1,753,288 rows – 251 unique countries
Checksums (click to show)
MD5: a9f4e65c5ffb2d8ceb672a9cf7639ae4
SHA1: 8b76d1c990a1fcea0a6b9779d65be40eea873fe7
SHA256: da23a91f90b0a256553c5e36ce643ebcb8ca110ea6b8d33cd44a840d8bb7e6d0
⬇️ ipv6-ja.tsv
179.5MiB (188.2MB) – 1,753,288 rows – 251 unique countries
Checksums (click to show)
MD5: 50f93ccb8cafebc61c82354580a0f5dc
SHA1: acb7e3763b5f62529cce20902cd9ba5984c1e447
SHA256: 7fee9a1db1950fed5f79b7ef76cb7d9cfa6f0251c43148802029ae66b702c3eb
⬇️ ipv6-pt-BR.tsv
162.5MiB (170.3MB) – 1,753,288 rows – 251 unique countries
Checksums (click to show)
MD5: 439ff322cea8e05b2947b9d9a3c61774
SHA1: c628b5458ae63abf434e5f064483b42797c112df
SHA256: 7be110837309b991694e2b763373f1497ff0d8528cdaebd2d27b3c777da7ce5c
⬇️ ipv6-ru.tsv
180.6MiB (189.4MB) – 1,753,288 rows – 251 unique countries
Checksums (click to show)
MD5: 4514afafd2b0efae6622ac0c8b516bc4
SHA1: c89745a4d34d994443428b5de814d128ebf65b4b
SHA256: 78e1bd2ad4ad61ed40a9d32c8c44932f03c5b53f31b72cd7ddfc6525f02d0e6b
⬇️ ipv6-zh-CN.tsv
166.2MiB (174.3MB) – 1,753,288 rows – 251 unique countries
Checksums (click to show)
MD5: 03d6f2b1e86bf67911329c38fbcb91a0
SHA1: bf8814c3305317e15750b86c8d9e6c472e517df2
SHA256: c1efd4192f42ad189fc1f6f1103727de36d677afac32afffa963eede85d1bbd8

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

No packages published