IP2Location IP-Country Database

$980 per year

DB1 provides an IP geolocation solution to determine the country of IP address.

Subscription License Type (1 Year)

Server Quantity

Free Sample

View Sample Data

The IP address range covered by this demo is limited to a small range in the commercial database.

Download IPv4 / Download IPv6

Request Free Sample

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

Product Features
Features Translates IP address (IPv4 or IPv6) to country.
Current Version 2024-07-15
Update Frequency Semi-monthly
Database Format Binary (BIN)
ASCII Text File (CSV)
BIND (DNS Server ACL Format)
SQL (MySQL dump)

For Microsoft Access (MDB), click here for more information.
IPv4 Database Size BIN: 5.08 MB
CSV: 29.40 MB (599,841 Rows)
IPv6 Database Size BIN: 12.08 MB
CSV: 68.82 MB (940,628 Rows)
Database Fields
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.
Free Add-Ons
Name Description
Continent Multilingual Continent names in multiple languages.
Country Multilingual Country names in multiple languages.
Country Flags Countries flag icon in multiple sizes.
World SVG Map World border shape in SVG format.
ISO 3166-2 Subdivision Code ISO 3166-2 codes for the names of countries and their subdivisions.
Country Information Additional country information, such as capital, total area and so on.
Started Guide
upload source codes

1. Retrieve

Retrieve the IP address from the networking protocol or server-side variable of web server.

create files

2. Convert

Convert the IP address to an IP number in decimal format to speed up the database query.

submit entry

3. Pinpoint

Reverse lookup the IP number using geolocation database to pinpoint the exact geographical location.


License Agreement: General Terms and Conditions for the database licensing.

Server License: Comparison of Standard License, Site License and Redistribution License.

IP2Location™ and IP2Proxy™ are registered trademarks of HEXASOFT. All other trademarks are the properties of their respective owners.