Database
![]() |
IP-Country DatabaseIP2Location™ IP-Country Database [DB1] provides a solution to determine the country of origin for any IP address in a few simple steps. First, retrieve the IP address from the networking protocol or server-side variable of the Web server. Next, translate the IP address to an IP number in decimal format to speed up the database query. Lastly, reverse lookup the IP number from the IP2Location™ database to pinpoint the exact geographical location. This is a database subscription service. You can download all monthly updates for free if subscription is active. IPv4 and IPv6 supported.
|

Request free sample database and source codes for PHP, ASP.NET, ASP, C#, VB.NET, MSSQL, and MySQL.

Features | Translates IP address (IPv4 or IPv6) to country. |
---|---|
Current Version | April 2018 |
Next Update | May 2018 |
IPv4 Database Size |
BIN: 3.45 MB CSV: 16.36 MB (385,891 Rows) |
IPv6 Database Size |
BIN: 5.58 MB CSV: 28.00 MB (471,629 Rows) |
Database Format | ASCII Text File (Comma Delimited) and BIN (API), BIND (DNS Server ACL Format), CIDR, SQL (MySQL dump). For Microsoft Access (MDB), click here for more information. |

Name | Type | Description |
---|---|---|
ip_from | INT(10)† / Decimal(39,0)†† | First IP address in netblock. |
ip_to | INT(10)† / Decimal(39,0)†† | Last IP address in netblock. |
country_code | CHAR(2) | Two-character country code based on ISO 3166. |
country_name | VARCHAR(64) | Country name based on ISO 3166. |
† IPv4
†† IPv6
†† IPv6

Name | Description | |
---|---|---|
Continent Multilingual | Continent name in multiple languages. | More Info |
Country Multilingual | Country name in multiple languages. | More Info |
Country Flags | Countries flag icon in multiple sizes. | More Info |
World SVG Map | World border shape in SVG format. | More Info |
ISO 3166-2 Subdivision Code | ISO 3166-2 codes for the names of countries and their subdivisions. | More Info |
Country Information | Additional country information, such as capital, total area and so on. | More Info |

License Agreement: General Terms and Conditions for the database licensing.
Server License: The number of license required for server installation.
IP2Location™ is a registered trademark of HEXASOFT. All other trademarks are the property of their respective owners.

Sample Request
Please send me free sample database, binary and source codes of IP2Location products.