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 Geo Standard, 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 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):
Standardized country and continent metadata with codes, currency, calling codes, TLDs, and languages.
- File Size: 9.67 KB
- Entries: 254
- Fields: 15
Multilingual place names for cities, districts, states, countries, and continents.
- File Size: 32.36 KB
- Entries: 690
- Fields: 13
IP ranges mapping to country IDs for linking each address block with standardized country details and metadata.
- File Size: 279.42 MB
- Entries: 49.2M
- Fields: 3
Documentation for dataset contents, schema, usage, and support.
- File Size: 8.00 KB
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.
| Field | Type | Description | Can be empty? | Example |
|---|---|---|---|---|
| start_ip | string | The starting IP address of the range in IPv4 or IPv6 format. | No | 192.168.0.1 |
| end_ip | string | The ending IP address of the range in IPv4 or IPv6 format. | No | 192.168.0.255 |
| country_id | number | The unique identifier for the country associated with the IP range. | No | 192 |
I. Example Records
start_ip,end_ip,country_id
174.52.173.188,174.52.173.188,172
79.56.50.110,79.56.50.110,80
113.211.50.16,113.211.50.16,118
218.172.36.190,218.172.36.190,202
175.100.188.38,175.100.188.38,76
76.139.195.112,76.139.195.112,172
212.227.17.96,212.227.17.101,41
2601:249:8a01:83e0:dc7:c6d5:25f6:d8f1,2601:249:8a01:83e0:dc7:c6d5:25f6:d8f1,172
148.227.69.0,148.227.69.0,8
61.155.154.236,61.155.156.255,352. 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.
| Field | Type | Description | Can be empty? | Example |
|---|---|---|---|---|
| id | number | The unique identifier for the place. | No | 5375480 |
| place_english | string | The name of the place in English. | No | Mountain View |
| place_german | string | The name of the place in German. | Yes | Mountain View |
| place_russian | string | The name of the place in Russian. | Yes | Маунтин-Вью |
| place_korean | string | The name of the place in Korean. | Yes | 마운틴 뷰 |
| place_portuguese | string | The name of the place in Portuguese. | Yes | Mountain View |
| place_japanese | string | The name of the place in Japanese. | Yes | マウンテンビュー |
| place_persian | string | The name of the place in Farsi. | Yes | ماونتین ویو |
| place_french | string | The name of the place in French. | Yes | Mountain View |
| place_chinese | string | The name of the place in Chinese. | Yes | 山景城 |
| place_spanish | string | The name of the place in Spanish. | Yes | Mountain View |
| place_czech | string | The name of the place in Czech. | Yes | Mountain View |
| place_italian | string | The name of the place in Italian. | Yes | Mountain View |
I. Example Records
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
4348,Shelby,Shelby,Шелби,,Condado de Shelby,シェルビー,شهرستان شلبی، تنسی,Comté de Shelby,谢尔比,Shelby,Shelby,Shelby
300,Taipei City,Taipeh Stadtzentrum,Тайбэй,,,台北市長,,Ville de Taipei,台北市,Tchaj-pej,Tchaj-pej,Taipei City
5,Asia,Asien,Азия,Ásia,Ásia,アジア, آسیا,Asie,亚洲,Asia,Asie,Asia
6,North America,Nordamerika,Северная Америка,América do Norte,América Do Norte,北アメリカ, امریکای شمالی,Amérique du Nord,北美洲,Norteamérica,Severní Amerika,America del Nord
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
239882,Republic of Argentina,,,,,,,,,,,
3723,New Delhi,Neu-Delhi,Нью-Дели,Nova Deli,,ニューデリー,,New Delhi,新德里,Nueva Delhi,New Delhi,Nuova Delhi
291,Maharashtra,Maharashtra,Махараштра,Maarastra,Maarastra,マハーラーシュトラ州,مهاراشترا,Maharashtra,马哈拉施特拉邦,Maharastra,Maháráštra,Maharashtra
591,Michigan,Michigan,Мичиган,Michigão,Michigão,ミシガン州,میشیگان,Michigan,密歇根州,Michigan,Michigan,Michigan
25587,Villa Carcina,Villa Carcina,Вилла Карчина,,,ヴィラカルチーナ,,Villa Carcina,卡爾西納,Villa Carcina,Villa Carcina,Villa Carcina
402,Illinois,Illinois,Иллинойс,Ilinóis,Ilinóis,イリノイ州,ایلینوی,Illinois,伊利诺伊州,Illinois,Illinois,Illinois
12,China,China,Китай,China,China,中国,چین,Chine,中国,China,Čína,Cina
356,Hesse,Hessen,Гессен,헤센 주,,ヘッセン,,Hesse,黑森,Hessen,Hesensko,Assia
15,India,Indien,Индия,Índia,Índia,インド,هند,Inde,印度,India,Indie,India
275,Beijing,Peking,Пекин,,,北京,,Municipalité de Pékin,北京,Peking,Peking,Pechino
16,Malaysia,Malaysia,Малайзия,Malásia,Malásia,マレーシア,مالزی,Malaisie,马来西亚,Malasia,Malajsie,Malesia
399,Buenos Aires,Buenos Aires,Буэнос-Айрес,,,ブエノスアイレス,,Buenos Aires,布宜诺斯艾利斯,Buenos Aires,Buenos Aires,Buenos Aires
278,Kuala Lumpur,Kuala Lumpur,Куала-Лумпур,Kuala Lumpur,,クアラ・ルンプール,,Kuala Lumpur,吉隆坡国际机场,Kuala Lumpur,Kuala Lumpur,Kuala Lumpur
240018,United States of America,,,,,,,,,,,
240019,"Washington, D.C.",,,,,,,,,,,
399,Buenos Aires,Buenos Aires,Буэнос-Айрес,,,ブエノスアイレス,,Buenos Aires,布宜诺斯艾利斯,Buenos Aires,Buenos Aires,Buenos Aires
240078,Sunbury Township,,,,,,,,,,,
28,United States,USA,США,Estados Unidos,Estados Unidos,アメリカ合衆国,ایالات متحدهٔ امریکا,États-Unis,美国,Estados Unidos,Spojené státy americké,Stati Uniti d'America
239901,People’s Republic of China,,,,,,,,,,,
27,Taiwan,Taiwan,Тайвань,Taiwan,Taiwan,中華民国,تایوان,Taïwan,台湾,Taiwán,Taiwan,Taiwan
33,Germany,Deutschland,Германия,Alemanha,Alemanha,ドイツ連邦共和国,آلمان,Allemagne,德国,Alemania,Německo,Germania
239906,Federal Republic of Germany,,,,,,,,,,,
38885,Shah Alam,Schah Alam,Шах-Алам,샤알람,,シャー・アラム,شاه عالم,Shah Alam,莎阿南,Šáh Alam,Šáh Alam,Scià Alam
35,Italy,Italien,Италия,Itália,Itália,イタリア共和国,ایتالیا,Italie,意大利,Italia,Itálie,Italia
279,Selangor,Selangor,Селангор,슬랑오르 주,,セランゴール州,سلانگور,Selangor,雪蘭莪,Selangor,Selangor,Selangor
240044,Republic of China,,,,,,,,,,,
562,Berlin,Berlin,Берлин,베를린,Berlim,ベルリン,برلین,Berlin,柏林,Berlín,Berlín,Berlino
54,Argentina,Argentinien,Аргентина,Argentina,Argentina,アルゼンチン共和国,آرژانتین,Argentine,阿根廷,Argentina,Argentina,Argentina
240079,Budd,,,,,,,,,,,
239935,Republic of India,,,,,,,,,,,
1122,Taipei,Taipeh,Тайбэй,Taipé,Taipé,台北市,تایپه,Taipei,台北市,Taipéi,Taipei,Taipei
3729,Mumbai,Mumbai,Мумбаи,Mumbai,,ムンバイ,,Bombay,孟买,Bombay,Bombaj,Mumbai
239939,Republic of Italy,,,,,,,,,,,
37711,White City,Weiße Stadt,Уайт-Сити,,,ホワイトシティ,,Ville Blanche,白城,Bílé město,Bílé město,Città Bianca
4539,Macomb County,Macomb,Маком,,Condado de Macomb,マコーム郡,شهرستان مکمب، میشیگان,Comté de Macomb,马科姆县,Маком,Macomb County,Contea di Macomb
8674,Petaling,Petaling,Петалинг,,,プタリン,,Pétales,八打林,Petaling,Petaling,Petalo
586,Utah,Utah,Юта,Utá,Utá,ユタ州,یوتا,Utah,犹他州,Utah,Utahu,Utah
1122,Taipei,Taipeh,Тайбэй,Taipé,Taipé,台北市,تایپه,Taipei,台北市,Taipéi,Taipei,Taipei
277,Jiangsu,Jiangsu,Цзянсу,,,江蘇省,,Province de Jiangsu,江苏省,Jiangsu,Jiangsu,Jiangsu
3720,Mumbai Suburban,Mumbai,Мумбаи,,,ムンバイ郊外,,Mumbai Suburban,孟买郊区,Bombaj,Bombaj,Suburban di Mumbai
57697,Frankfurt,Frankfurt (Oder),Франкфурт-на-Одере,,Frankfurt an der Oder,フランクフルト,,Francfort-sur-l'Oder,法兰克福,Frankfurtu,Frankfurtu,Francoforte
8804,Comuna 1,Comuna 1,Комуна 1,,,コムナ,,Comuna 1,科莫纳一号,Comuna 1,Comuna 1,Comuna 1
4475,Salt Lake County,Salt Lake,Солт-Лейк,,Condado de Salt Lake,ソルトレイク郡,شهرستان سالتلیک، یوتا,Comté de Salt Lake,鹽湖縣,Comté de Salt Lake,Slané jezero,Contea di Salt Lake
3952,Rome,Rom,Рим,,,ローマ,,Rome,罗马,Roma,Řím,Roma
23832,Suzhou,Suzhou,Сучжоу,Suzhou,Suzhou,蘇州市,سوژو,Suzhou,苏州,Suzhou,Su-čou,Suzhou
359,Lombardy,Lombardei,Ломбардия,롬바르디아 주,,ロンバルディア州,,Lombardie,伦巴第大区,Lombardía,Lombardie,Lombardia
4181,Brescia,Brescia,Брешиа,Bréscia,,ブレシア,,Brescia,布雷西亚,Brescia,Brescia,Brescia3. 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.
| Field | Type | Description | Can be empty? | Example |
|---|---|---|---|---|
| id | number | The unique identifier for the country. | No | 192 |
| continent_code | string | The continent code associated with the country. | No | NA |
| continent_name_place_id | number | The unique identifier for the continent place. | No | 6255148 |
| country_code2 | string | The ISO 3166-1 alpha-2 code of the country. | No | US |
| country_code3 | string | The ISO 3166-1 alpha-3 code of the country. | No | USA |
| country_code_ioc | string | The IOC country code. | No | USA |
| country_name_place_id | number | The unique identifier for the country place. | No | 6252001 |
| country_name_official_place_id | number | The unique identifier for the official country place. | No | 6252001 |
| country_capital_place_id | number | The unique identifier for the capital place. | No | 5375480 |
| currency_code | string | The ISO 4217 currency code of the country. | No | USD |
| currency_name | string | The name of the currency used in the country. | No | United States Dollar |
| currency_symbol | string | The symbol of the currency used in the country. | No | $ |
| calling_code | string | The international calling code of the country. | No | +1 |
| tld | string | The top-level domain (TLD) of the country. | No | .us |
| languages | string | The official languages spoken in the country, represented as a comma-separated list of ISO 639-1 codes. | No | en,es |
I. Example Records
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
35,AS,5,CN,CHN,CHN,12,239901,275,CNY,Yuan Renminbi,¥,+86,.cn,"zh-CN,yue,wuu,dta,ug,za"
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"
118,AS,5,MY,MYS,MAS,16,16,278,MYR,Malaysian Ringgit,RM,+60,.my,"ms-MY,en,zh,ta,te,ml,pa,th"
8,SA,8,AR,ARG,ARG,54,239882,399,ARS,Argentine Peso,$,+54,.ar,"es-AR,en,it,de,fr,gn"
172,NA,6,US,USA,USA,28,240018,240019,USD,US Dollar,$,+1,.us,"en-US,es-US,haw,fr"
41,EU,7,DE,DEU,GER,33,239906,562,EUR,Euro,€,+49,.de,de
80,EU,7,IT,ITA,ITA,35,239939,3952,EUR,Euro,€,+39,.it,"it-IT,de-IT,fr-IT,sc,ca,co,sl"
202,AS,5,TW,TWN,TPE,27,240044,1122,TWD,New Taiwan Dollar,NT$,+886,.tw,"zh-TW,zh,nan,hak"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.
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):
Country-level geolocation database with IP ranges, multilingual country names, codes, capital, currency, languages, and related metadata.
- File Size: 21.04 MB
- Entries: 49.2M
Documentation for dataset contents, schema, usage, and support.
- File Size: 8.48 KB
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.
| Field | Type | Description | Example |
|---|---|---|---|
location | object | ||
location.country | object | The name of the country in multiple languages. | |
location.country.continent | object | The name of the continent in multiple languages. | |
location.country.continent.name | object | The name of the continent in multiple languages (english, german, russian, korean, portuguese, japanese, persian, french, chinese, spanish, czech, italian). | North America |
location.country.continent.code | string | The two-letter code representing the continent. | NA |
location.country.name | object | The name of the country in multiple languages (english, german, russian, korean, portuguese, japanese, persian, french, chinese, spanish, czech, italian). | United States |
location.country.name_official | object | The official name of the country in multiple languages (english, german, russian, korean, portuguese, japanese, persian, french, chinese, spanish, czech, italian). | United States of America |
location.country.code2 | string | The two-letter code representing the country. | US |
location.country.code3 | string | The three-letter code representing the country. | USA |
location.country.code_ioc | string | The International Olympic Committee (IOC) code representing the country. | USA |
location.country.capital | object | The capital city of the country in multiple languages (english, german, russian, korean, portuguese, japanese, persian, french, chinese, spanish, czech, italian). | Washington, D.C. |
location.country.currency | object | The currency used in the country. | |
location.country.currency.code | string | The three-letter code representing the currency, following ISO 4217 standards. | USD |
location.country.currency.symbol | string | The symbol representing the currency. | $ |
location.country.currency.name | string | The name of the currency. | United States Dollar |
location.country.metadata | object | Additional metadata about the country. | |
location.country.metadata.calling_code | string | The international calling code for the country. | +1 |
location.country.metadata.tld | string | The top-level domain (TLD) for the country. | .us |
location.country.metadata.languages | string | The languages spoken in the country. | ru,en,es etc |
I. Example Records
{
"location": {
"country": {
"capital": {
"cs": "",
"de": "",
"en": "Washington, D.C.",
"es": "",
"fa": "",
"fr": "",
"it": "",
"ja": "",
"ko": "",
"pt": "",
"ru": "",
"zh": ""
},
"code2": "US",
"code3": "USA",
"code_ioc": "USA",
"continent": {
"code": "NA",
"name": {
"cs": "Severní Amerika",
"de": "Nordamerika",
"en": "North America",
"es": "Norteamérica",
"fa": " امریکای شمالی",
"fr": "Amérique du Nord",
"it": "America del Nord",
"ja": "北アメリカ",
"ko": "América do Norte",
"pt": "América Do Norte",
"ru": "Северная Америка",
"zh": "北美洲"
}
},
"currency": {
"code": "USD",
"name": {
"en": "US Dollar"
},
"symbol": "$"
},
"metadata": {
"calling_code": "+1",
"languages": "en-US,es-US,haw,fr",
"tld": ".us"
},
"name": {
"cs": "Spojené státy americké",
"de": "USA",
"en": "United States",
"es": "Estados Unidos",
"fa": "ایالات متحدهٔ امریکا",
"fr": "États-Unis",
"it": "Stati Uniti d'America",
"ja": "アメリカ合衆国",
"ko": "Estados Unidos",
"pt": "Estados Unidos",
"ru": "США",
"zh": "美国"
},
"name_official": {
"cs": "",
"de": "",
"en": "United States of America",
"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:
- Database file (the downloaded archive)
- Signature file (the matching signature for that archive)
- 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:
- Database Archive URL : downloads the latest release of your subscribed database (CSV, MMDB or requested formats).
- Signature File URL : downloads the matching signature file for the latest release (used for authenticity verification).
- Public Key URL : downloads the public verification key (used with the signature file).
- Status Endpoint URL : returns the database's most recent update timestamp.
Our databases are updated continuously and shipped on a daily or weekly cycle depending on your plan, 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.