IP Country Database


Overview

Ever wonder what country a specific IP address comes from? Our IP to Country Database which is a part of our standard tier, helps you figure that out for any IPv4 or IPv6 address. We've packed it with all the details you'd want, not just the country name, but ISO codes, the continent, capital, dialing codes, currencies, languages, and TLDs. It even supports multiple languages, so you can get localized results right away, no extra steps needed.

We're pretty committed to having the most up-to-date information, which is why our databases are updated daily so that you're always working with the latest changes. We also make sure that the files are super light and easy to use. You can literally just drop them into your systems without a fuss.

You'll find everything you need to know in our documentation. We walk you through what's in the archives, the file structure, how to verify your downloads before you import them, just to be safe, and we’ve also included a few examples.


Available Database Formats

CSV
CSVCSV
  • File Size: 177.63 MB
  • Entries: 29.8M
  • Fields: 3
  • Last Updated: Today
MMDB
MMDBMMDB
  • File Size: 20.22 MB
  • Entries: 29.8M
  • Fields: 3
  • Last Updated: Today

CSV Database Documentation


1. Overview

The CSV version is delivered as a ZIP archive that includes Gzip-compressed files with IP ranges, location details, and multilingual place names. It’s well-suited for bulk imports and easy integration into relational databases.


2. Archive Content

After downloading and extracting the IP to Country CSV database archive, you'll find the following files (with their types noted):

db-country.csv.gz
db-country.csv.gzdb-country.csv.gz

Standardized country and continent metadata with codes, currency, calling codes, TLDs, and languages.

  • File Size: 9.67 KB
  • Entries: 254
  • Fields: 15
db-place.csv.gz
db-place.csv.gzdb-place.csv.gz

Multilingual place names for cities, districts, states, countries, and continents.

  • File Size: 32.36 KB
  • Entries: 690
  • Fields: 13
db-ip-country.csv.gz
db-ip-country.csv.gzdb-ip-country.csv.gz

IP ranges mapping to country IDs for linking each address block with standardized country details and metadata.

  • File Size: 177.59 MB
  • Entries: 29.8M
  • Fields: 3
README.md
README.mdREADME.md

Documentation for dataset contents, schema, usage, and support.

  • File Size: 8.17 KB
checksum.txt
checksum.txtchecksum.txt

SHA-256 checksums for verifying file integrity.

  • File Size: 329 Bytes

Schema

This section describes the schema of each file included in the IP to Country Database archive. For every file, you'll find its purpose, field definitions, and examples to help with integration.


1. db-ip-country.csv.gz

This file contains standardized country and continent details and metadata. It includes various codes (ISO-2/ISO-3/IOC), place IDs for names and capitals, currency details, international calling codes, top-level domains (TLDs), and language tags.

FieldTypeDescriptionCan be empty?Example
start_ipstringThe starting IP address of the range in IPv4 or IPv6 format.No192.168.0.1
end_ipstringThe ending IP address of the range in IPv4 or IPv6 format.No192.168.0.255
country_idnumberThe unique identifier for the country associated with the IP range.No192

I. Example Records

Example
start_ip,end_ip,country_id
84.100.149.0,84.100.149.255,56
43.249.218.13,43.249.218.13,76
136.49.147.10,136.49.147.10,172
104.166.214.97,104.166.214.97,172
78.185.116.24,78.185.116.24,166
96.248.16.31,96.248.16.31,172
145.239.237.192,145.239.237.255,135
181.131.195.252,181.131.195.252,36
2605:59c0:87c:8908::,2605:59c0:87c:8908::,117
162.84.193.3,162.84.193.3,172

2. db-place.csv.gz

This file contains multilingual names for countries, continents, states, districts, and cities worldwide. It serves as the reference dictionary for the IP Location Database, allowing you to resolve place IDs into multilingual responses across different regions and languages.

FieldTypeDescriptionCan be empty?Example
idnumberThe unique identifier for the place.No5375480
place_englishstringThe name of the place in English.NoMountain View
place_germanstringThe name of the place in German.YesMountain View
place_russianstringThe name of the place in Russian.YesМаунтин-Вью
place_koreanstringThe name of the place in Korean.Yes마운틴 뷰
place_portuguesestringThe name of the place in Portuguese.YesMountain View
place_japanesestringThe name of the place in Japanese.Yesマウンテンビュー
place_persianstringThe name of the place in Farsi.Yesماونتین ویو
place_frenchstringThe name of the place in French.YesMountain View
place_chinesestringThe name of the place in Chinese.Yes山景城
place_spanishstringThe name of the place in Spanish.YesMountain View
place_czechstringThe name of the place in Czech.YesMountain View
place_italianstringThe name of the place in Italian.YesMountain View

I. Example Records

Example
id,place_english,place_german,place_russian,place_korean,place_portuguese,place_japanese,place_persian,place_french,place_chinese,place_spanish,place_czech,place_italian
3630,Paris,Paris,Париж,,,パリだ,,Paris,巴黎,París,Paříž,Parigi
373,Texas,Texas,Техас,텍사스 주,,テキサス州,تگزاس,Texas,德克萨斯州,Texas,Texas,Texas
6,North America,Nordamerika,Северная Америка,América do Norte,América Do Norte,北アメリカ, امریکای شمالی,Amérique du Nord,北美洲,Norteamérica,Severní Amerika,America del Nord
5,Asia,Asien,Азия,Ásia,Ásia,アジア, آسیا,Asie,亚洲,Asia,Asie,Asia
7,Europe,Europa,Европа,Europa,Europa,ヨーロッパ, اروپا,Europe,欧洲,Europa,Evropa,Europa
8,South America,Südamerika,Южная Америка,América do Sul,América Do Sul,南アメリカ,امریکای جنوبی,Amérique du Sud,南美洲,Sudamérica,Jižní Amerika,America del Sud
3723,New Delhi,Neu-Delhi,Нью-Дели,Nova Deli,,ニューデリー,,New Delhi,新德里,Nueva Delhi,New Delhi,Nuova Delhi
143224,Medellín,Medellín,Медельин,Medelim,,メデジン,,Medellín,麦德林,Medellín,Medellín,Medellín
240014,Republic of Turkey,,,,,,,,,,,
15,India,Indien,Индия,Índia,Índia,インド,هند,Inde,印度,India,Indie,India
1297,Antioquia,Antioquia,Антиокия,,,アンティオキア,,Antioquia,安蒂奥基亚,Antioquia,Antioquia,Antioquia
240018,United States of America,,,,,,,,,,,
240019,"Washington, D.C.",,,,,,,,,,,
587,Missouri,Missouri,Миссури,Missúri,Missúri,ミズーリ州,میزوری,Missouri,密苏里州,Missouri,Missouri,Missouri
1469,Karabuk,Karabuk,Карабук,,,カラバック,,Karabuk,卡拉布克,Karabuk,Karabuk,Karabuk
28,United States,USA,США,Estados Unidos,Estados Unidos,アメリカ合衆国,ایالات متحدهٔ امریکا,États-Unis,美国,Estados Unidos,Spojené státy americké,Stati Uniti d'America
239902,Republic of Colombia,,,,,,,,,,,
31,France,Frankreich,Франция,França,França,フランス共和国,فرانسه,France,法国,Francia,Francie,Francia
394,New York,New York,Нью-Йорк,Nova Iorque,Nova Iorque,ニューヨーク州,ایالت نیویورک,New York,纽约州,Nueva York,New York (stát),New York
12807,Nizamabad,Nizamabad,Низамабад,,,ニザマバード,,Nizamabad,尼扎马巴德,Nizamabad,Nizamabad,Nizamabad
24102,Warsaw,Warschau,Варшава,바르샤바,Varsóvia,ワルシャワ,ورشو,Varsovie,华沙,Varšava,Varšava,Varsavia
41,Turkey,Türkei,Турция,Turquia,Turquia,トルコ共和国,ترکیه,Turquie,土耳其,Turquía,Turecko,Turchia
768,Telangana,Telangana,Телангана,텔랑가나 주,,テランガーナ州,تلانگانا,Télangana,特伦甘纳邦,Telangana,Telangana,Telangana
6017,Austin,Austin,Остин,,Condado de Austin,オースティン郡,شهرستان آستین، تگزاس,Comté dAustin,奧斯汀縣,Austin,Austin,Austin
239920,Republic of France,,,,,,,,,,,
3630,Paris,Paris,Париж,,,パリだ,,Paris,巴黎,París,Paříž,Parigi
50,Poland,Polen,Польша,Polônia,Polônia,ポーランド共和国,لهستان,Pologne,波兰,Polonia,Polsko,Polonia
210483,Karabük Merkez,Karabük Merkez,Карабюк Меркез,,,カラビュク・メルケス,,Karabük Merkez,卡拉比克 · 梅尔凯斯,Merkez,Merkez,Karabük Merkez
239935,Republic of India,,,,,,,,,,,
4457,Chester,Chester,Честер,,Condado de Chester,チェスター郡,شهرستان چستر، پنسیلوانیا,Comté de Chester,切斯特縣,Chester,Chester,- Chester
7126,Cole County,Cole,Коул,,Condado de Cole,コール郡,شهرستان کول، میزوری,Comté de Cole,科爾縣,Коул,Cole County (Texas),Contea di Cole
184418,Cuauhtémoc,Cuauhtémoc,Куаутемок,,,クアウテモック,,Cuauhtémoc,库埃特莫克,Cuauhtémoc,Cuauhtémoc,Cuauhtémoc
66,Mexico,Mexiko,Мексика,México,México,メキシコ合衆国,مکزیک,Mexique,墨西哥,México,Mexiko,Messico
28748,Bogota,Bogota,Богота,보고타,Bogotá,ボゴタ,بوگوتا,Bogota,波哥大,Bogotá,Bogotě,Bogotà
603,Mexico City,Mexiko-Stadt,Мехико,,,メキシコシティ,,Ville de Mexico,墨西哥城,Ciudad de México,Mexiko,Città del Messico
24102,Warsaw,Warschau,Варшава,바르샤바,Varsóvia,ワルシャワ,ورشو,Varsovie,华沙,Varšava,Varšava,Varsavia
81,Colombia,Kolumbien,Колумбия,Colômbia,Colômbia,コロンビア共和国,کلمبیا,Colombie,哥伦比亚,Colombia,Kolumbie,Colombia
724,Ankara,Ankara,Анкара,Ancara,Ancara,アンカラ,,Ankara,安卡拉省,Provincia de Ankara,Ankara,Ankara
135056,Île-de-France,Île-de-France,Иль-де-Франс,,,イル = ド = フランス,,Île-de-France,法兰西岛,Isla de Francia,Île-de-France,Île-de-France
603,Mexico City,Mexiko-Stadt,Мехико,,,メキシコシティ,,Ville de Mexico,墨西哥城,Ciudad de México,Mexiko,Città del Messico
390,Virginia,Virginia,Вирджиния,Virgínia,Virgínia,バージニア州,ویرجینیا,Virginie,弗吉尼亚州,Virginie,Virginie,- Virginia
239970,United Mexican States (Mexico),,,,,,,,,,,
32974,Jefferson City,Jefferson City,Джефферсон-Сити,제퍼슨시티,Jefferson City,ジェファーソンシティ,جفرسون‌سیتی,Jefferson City,杰斐逊城,Jefferson City,Jefferson City,Città di Jefferson
17810,Nizamabad District,Amphoe Nizamabad,Низамабадский район,,,ニザマーバード,,District de Nizamabad,尼扎马巴德县, Okres Nizámabad,Okres Nizámabad,Distretto di Nizamabad
221944,Woj. Mazowieckie,Woj. Mazowieckie,Воеводство Мазовецком,,,おお... マゾヴィエツキー,,Waouj. Mazowieckie,沃伊 马佐夫奇,¡Woj! Mazowieckie,Woj. Mazowieckie,Woj. Mazowieckie
239986,Republic of Poland,,,,,,,,,,,
4345,Travis,Travis,Тревис,,Condado de Travis,トラヴィス郡,شهرستان تراویس، تگزاس,Comté de Travis,特拉維斯縣,Travise,Travise,- Travis
4462,Chesterfield,Chesterfield,Честерфилд,,Condado de Chesterfield,チェスターフィールド郡,شهرستان چسترفیلد، ویرجینیا,Comté de Chesterfield,切斯特菲爾德縣,Chesterfield,Chesterfield,Chesterfield

3. db-country.csv.gz

This file contains standardized country metadata for the IP Location Database. It includes continent codes and names, ISO-2/ISO-3/IOC country codes, country and official names (as place IDs), capital (place ID), currency (code, name, symbol), international calling codes, top-level domains (TLDs), and supported language tags.

FieldTypeDescriptionCan be empty?Example
idnumberThe unique identifier for the country.No192
continent_codestringThe continent code associated with the country.NoNA
continent_name_place_idnumberThe unique identifier for the continent place.No6255148
country_code2stringThe ISO 3166-1 alpha-2 code of the country.NoUS
country_code3stringThe ISO 3166-1 alpha-3 code of the country.NoUSA
country_code_iocstringThe IOC country code.NoUSA
country_name_place_idnumberThe unique identifier for the country place.No6252001
country_name_official_place_idnumberThe unique identifier for the official country place.No6252001
country_capital_place_idnumberThe unique identifier for the capital place.No5375480
currency_codestringThe ISO 4217 currency code of the country.NoUSD
currency_namestringThe name of the currency used in the country.NoUnited States Dollar
currency_symbolstringThe symbol of the currency used in the country.No$
calling_codestringThe international calling code of the country.No+1
tldstringThe top-level domain (TLD) of the country.No.us
languagesstringThe official languages spoken in the country, represented as a comma-separated list of ISO 639-1 codes.Noen,es

I. Example Records

Example
id,continent_code,continent_name_place_id,country_code2,country_code3,country_code_ioc,country_name_place_id,country_name_official_place_id,country_capital_place_id,currency_code,currency_name,currency_symbol,calling_code,tld,languages
117,NA,6,MX,MEX,MEX,66,239970,603,MXN,Mexican Peso,Mex$,+52,.mx,es-MX
76,AS,5,IN,IND,IND,15,239935,3723,INR,Indian Rupee,,+91,.in,"en-IN,hi,bn,te,mr,ta,ur,gu,kn,ml,or,pa,as,bh,sat,ks,ne,sd,kok,doi,mni,sit,sa,fr,lus,inc"
56,EU,7,FR,FRA,FRA,31,239920,3630,EUR,Euro,,+33,.fr,"fr-FR,frp,br,co,ca,eu,oc"
36,SA,8,CO,COL,COL,81,239902,28748,COP,Colombian Peso,$,+57,.co,es-CO
135,EU,7,PL,POL,POL,50,239986,24102,PLN,Zloty,,+48,.pl,pl
166,AS,5,TR,TUR,TUR,41,240014,724,TRY,Turkish Lira,,+90,.tr,"tr-TR,ku,diq,az,av"
172,NA,6,US,USA,USA,28,240018,240019,USD,US Dollar,$,+1,.us,"en-US,es-US,haw,fr"

4. File Relationship Diagram

The diagram below illustrates the relationships between the various files included in the CSV database package. It shows how the main CSV file connects to reference tables for countries, states, districts, and cities, ensuring consistent and accurate geolocation data across different regions and languages.

Image

File Format & Encoding

All IP to Country CSV datasets are provided in UTF-8 encoding, comma-separated, and compressed with Gzip (.csv.gz). Each file includes a header row listing the field names for clarity and consistency.

Field values are unquoted by default, with quotes applied only in the following cases:

  • Line breaks within text fields.
  • Commas inside a value (e.g., addresses).
  • Lists of values (e.g., languages).
  • Spaces that may be auto-quoted by export tools.

MMDB Database Documentation


1. Overview

The MMDB version of our IP to Country is delivered as a ZIP archive that includes a single MMDB file with all geolocation data (including multilingual place fields), a README file, and a checksum file. It's optimized for fast lookups in applications and services, making it ideal for real-time queries and direct integration into your systems.


2. Archive Content

After downloading and extracting the IP to Country MMDB database archive, you'll find the following files (with their types noted):

db-ip-country.mmdb
db-ip-country.mmdbdb-ip-country.mmdb

Country-level geolocation database with IP ranges, multilingual country names, codes, capital, currency, languages, and related metadata.

  • File Size: 20.21 MB
  • Entries: 29.8M
README.md
README.mdREADME.md

Documentation for dataset contents, schema, usage, and support.

  • File Size: 8.17 KB
checksum.txt
checksum.txtchecksum.txt

SHA-256 checksums for verifying file integrity.

  • File Size: 161 Bytes

Response Schema

This section describes the structure of the data returned from the IP to Country MMDB file. Each field is detailed with its type, meaning, and example values to help you interpret responses and integrate them into your applications.


1. db-ip-country.mmdb

This file contains standardized country and continent details. It includes multilingual country and capital names, ISO codes (ISO-2/ISO-3/IOC), currency details, international calling codes, top-level domains (TLDs), and language tags.


2. Field Reference

The following reference lists all fields available in the MMDB response. Each entry includes the field path, its description, data type, and example value to help you understand how to parse and integrate the data.

Showing 0 of 18
Select a field to view details

I. Example Records

Example
{
  "location": {
    "country": {
      "capital": {
        "cs": "Paříž",
        "de": "Paris",
        "en": "Paris",
        "es": "París",
        "fa": "",
        "fr": "Paris",
        "it": "Parigi",
        "ja": "パリだ",
        "ko": "",
        "pt": "",
        "ru": "Париж",
        "zh": "巴黎"
      },
      "code2": "FR",
      "code3": "FRA",
      "code_ioc": "FRA",
      "continent": {
        "code": "EU",
        "name": {
          "cs": "Evropa",
          "de": "Europa",
          "en": "Europe",
          "es": "Europa",
          "fa": " اروپا",
          "fr": "Europe",
          "it": "Europa",
          "ja": "ヨーロッパ",
          "ko": "Europa",
          "pt": "Europa",
          "ru": "Европа",
          "zh": "欧洲"
        }
      },
      "currency": {
        "code": "EUR",
        "name": {
          "en": "Euro"
        },
        "symbol": "€"
      },
      "metadata": {
        "calling_code": "+33",
        "languages": "fr-FR,frp,br,co,ca,eu,oc",
        "tld": ".fr"
      },
      "name": {
        "cs": "Francie",
        "de": "Frankreich",
        "en": "France",
        "es": "Francia",
        "fa": "فرانسه",
        "fr": "France",
        "it": "Francia",
        "ja": "フランス共和国",
        "ko": "França",
        "pt": "França",
        "ru": "Франция",
        "zh": "法国"
      },
      "name_official": {
        "cs": "",
        "de": "",
        "en": "Republic of France",
        "es": "",
        "fa": "",
        "fr": "",
        "it": "",
        "ja": "",
        "ko": "",
        "pt": "",
        "ru": "",
        "zh": ""
      }
    }
  }
}

Database Integrity & Authenticity Verification

There are two methods of verifying the integrity and authenticity of our Database:


1. Using the Signature File (Recommended)

IPGeolocation.io signs every database release to ensure its authenticity and integrity. This allows customers to verify that a downloaded IP to Country database file originates directly from IPGeolocation.io and has not been altered, corrupted, or tampered with during transfer or storage.

Each database update includes a corresponding signature file, generated using our private signing key. Customers can validate the database using the provided public verification key. To verify a database file, you need:

  1. Database file (the downloaded archive)
  2. Signature file (the matching signature for that archive)
  3. Public key (public-key.pem)

These files are available via official IPGeolocation.io download endpoints and are also shared in database update notifications.


2. Using the Checksum File (Legacy)

Each database archive includes a checksum.txt file containing the SHA-256 checksums for the files packaged in the archive. You can use this file to validate that the extracted contents are complete and unchanged.


Data Format & Constraints

  • All fields defined in the schema are always present in the IP to Country MMDB response.
  • Fields may contain empty strings (""), but never null, so null checks are not required.
  • Place names such as countries, states, districts, and cities are available in multiple translations.
  • All text values are encoded in UTF-8.
  • Field names and response structure remain stable across updates for backward compatibility.

Database Updates & Delivery

When you subscribe to our IP to Country database, we'll send you static download links. These links never change, so you can use them both for your initial download and for all future updates. You will receive:

  1. Database Archive URL : downloads the latest release of your subscribed database (CSV, MMDB or requested formats).
  2. Signature File URL : downloads the matching signature file for the latest release (used for authenticity verification).
  3. Public Key URL : downloads the public verification key (used with the signature file).
  4. Status Endpoint URL : returns the database's most recent update timestamp.

Our databases are refreshed daily and weekly, ensuring you always have access to the most current data. Each time your subscribed dataset is updated, you'll also receive an email notification so you don't miss a release.

For automated workflows, you can check our status endpoint to see the last update timestamp. When the date changes, simply re-fetch the archive using your static download URL to pull the latest version into your system.

Subscribe to Our Newsletter

Get the latest in geolocation tech, straight to your inbox.