IP Location Database (Standard)
Overview
Our Geo Standard IP to Geolocation Database provides you with accurate city-level geolocation data for both IPv4 and IPv6 addresses. It includes standard geolocation data such as country, state, district, city, ZIP code, geographic coordinates, time zone, GeoNames ID, and connection type. If your use case is more critical and you need more granular details on location, please check out our advanced ip to location database.
Every IP range is linked to countries, states, districts, and cities, with multilingual place names resolved through reference tables for consistency. This structure makes it easy to join datasets and work with standardized metadata across different regions and languages.
Behind the scenes, our crawlers and pipelines run 24/7, and database updates ship on daily and weekly cycles depending on your subscription plan. The dataset is available in CSV and MMDB, with JSON, Parquet, or any custom format on request at no extra cost, all backed by stable schemas and changelogs. Below, you'll find full documentation of the archive contents, schema definitions, file specifications, and integration notes to help you get up and running quickly.
Available Database Formats
CSV Database Documentation
1. Overview
The CSV version of our Standard IP to Location Database 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 Standard IP to Location 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: 12.84 MB
- Entries: 317.4K
- Fields: 13
IP ranges mapped to locations with place IDs (for multilingual responses), ZIP codes, coordinates, time zone, and connection type.
- File Size: 396.68 MB
- Entries: 47.5M
- Fields: 12
Documentation for dataset contents, schema, usage, and support.
- File Size: 9.11 KB
SHA-256 checksums for verifying file integrity.
- File Size: 330 Bytes
Schema
This section describes the schema of each file included in the Standard IP to Location Database archive. For every file, you'll find its purpose, field definitions, and examples to help with integration.
1. db-ip-location.csv.gz
This file provides geolocation data for IPv4 and IPv6 ranges, mapped down to the city level. Each record links an IP block to country, state, district, and city (through place IDs for multilingual response), geographic coordinates, time zone, GeoNames ID, and connection type.
| 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 |
| state_place_id | number | The unique identifier for the state or province associated with the IP range. | Yes | 5332921 |
| state_code | string | The two-letter code representing the state or province with country-code, following ISO 3166-2 standards. | Yes | CA |
| district_place_id | number | The unique identifier for the district associated with the IP range. | Yes | 5332923 |
| city_place_id | number | The unique identifier for the city associated with the IP range. | Yes | 5375480 |
| zip_code | string | The postal code for the location associated with the IP range. | Yes | 94043 |
| latitude | number | The latitude coordinate of the location associated with the IP range. | No | 37.3861 |
| longitude | number | The longitude coordinate of the location associated with the IP range. | No | -122.0838 |
| geo_name_id | number | The GeoNames ID for the location associated with the IP range. | Yes | 5375480 |
| time_zone_name | string | The time zone name for the location associated with the IP range. | No | America/Los_Angeles |
I. Example Records
start_ip,end_ip,country_id,state_place_id,state_code,district_place_id,city_place_id,zip_code,latitude,longitude,geo_name_id,time_zone_name
180.168.175.200,180.168.175.211,35,274,CN-SH,240077,274,200040,31.2288,121.4444,9952641,Asia/Shanghai
23.240.191.23,23.240.191.23,172,362,US-CA,33848,31842,92008,33.14121,-117.32051,5322610,America/Los_Angeles
172.119.65.98,172.119.65.98,172,362,US-CA,4426,4415,92405,34.1402,-117.297,5365514,America/Los_Angeles
79.55.102.26,79.55.102.26,80,492,IT-45,4285,4285,40121,44.49489,11.34262,11839768,Europe/Rome
223.148.85.0,223.148.85.255,35,1276,CN-HN,52494,52494,413000,28.5743,112.3727,1927489,Asia/Shanghai
81.95.9.18,81.95.9.19,41,562,DE-BE,562,562,10117,52.51604,13.37691,6472362,Europe/Berlin
106.111.151.0,106.111.151.255,35,277,CN-JS,240078,52362,223000,33.5995,119.0078,6567639,Asia/Shanghai
98.198.225.159,98.198.225.159,172,373,US-TX,5669,33129,77584,29.541097,-95.320908,7209068,America/Chicago
120.19.47.69,120.19.47.69,10,306,AU-NSW,3740,240079,2000,-33.86225,151.20768,8645108,Australia/Sydney
122.52.122.148,122.52.122.148,133,224258,PH-11,181630,104990,8002,6.73877,125.3549,1714956,Asia/Manila2. 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
4,Oceania,Ozeanien,Океания,Oceania,Oceania,オセアニア,اقیانوسیه,Océanie,大洋洲,Oceanía,Oceánie,Oceania
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
11,Australia,Australien,Австралия,Austrália,Austrália,オーストラリア,استرالیا,Australie,澳大利亚,Australia,Austrálie,Australia
12,China,China,Китай,China,China,中国,چین,Chine,中国,China,Čína,Cina
181630,Province of Davao del Sur,Provinz Davao del Sur,Провинция Давао-дель-Сур,,,南ダバオ州,,Province de Davao del Sur,南达沃省,Davao del Sur,Davao del Sur,Provincia di Davao del Sur
239884,Commonwealth of Australia,,,,,,,,,,,
31842,Carlsbad,Carlsbad,Карлсбад,칼즈배드,,カールスバッド,کارلسبد، کالیفرنیا,Carlsbad,卡尔斯巴德,Carlsbad,Carlsbad,Carlsbad
240018,United States of America,,,,,,,,,,,
306,New South Wales,New South Wales,Нью Южный Уэльс,Nova Gales do Sul,Nova Gales do Sul,ニューサウスウェールズ州,,Nouvelle-Galles du Sud,新南威爾斯,Nový Jižní Wales,Nový Jižní Wales,Nuovo Galles del Sud
240019,"Washington, D.C.",,,,,,,,,,,
275,Beijing,Peking,Пекин,,,北京,,Municipalité de Pékin,北京,Peking,Peking,Pechino
1276,Hunan,Hunan,Хунань,,,湖南省,,Province de Hunan,湖南,Hunan,Hunan,Hunan
28,United States,USA,США,Estados Unidos,Estados Unidos,アメリカ合衆国,ایالات متحدهٔ امریکا,États-Unis,美国,Estados Unidos,Spojené státy americké,Stati Uniti d'America
33129,Pearland,Pearland,Пэрленд,,,ピアランド,پیر لند، تگزاس,Pearland,皮兰,Pearland,Pearland,Pearland
239901,People’s Republic of China,,,,,,,,,,,
29,Philippines,Philippinen,Филиппины,Filipinas,Filipinas,フィリピン共和国,فیلیپین,Philippines,菲律宾,Filipinas,Filipíny,Filippine
3740,Sydney,Sydney,Сидней,,Cidade de Sydney,シドニー,,Sydney,悉尼,- Sydney,- Sydney,Sydney
33,Germany,Deutschland,Германия,Alemanha,Alemanha,ドイツ連邦共和国,آلمان,Allemagne,德国,Alemania,Německo,Germania
35,Italy,Italien,Италия,Itália,Itália,イタリア共和国,ایتالیا,Italie,意大利,Italia,Itálie,Italia
239906,Federal Republic of Germany,,,,,,,,,,,
4285,Bologna,Bologna,Болонья,Bolonha,Bolonha,ボローニャ,بولونیا,Bologne,博洛尼亚,Bolonia,Bologna,Bologna
52362,Huai'an,Huai'an,Хуайань,,,淮安,,Huai'an,淮安,Huai'an,Huai'an,Huai' an
274,Shanghai,Schanghai,Шанхай,Xangai,Xangai,上海だ,,Municipalité de Shanghai,上海,Šanghaj,Šanghaj,Shanghai
562,Berlin,Berlin,Берлин,베를린,Berlim,ベルリン,برلین,Berlin,柏林,Berlín,Berlín,Berlino
224258,Davao Region,Region Davao,Регион Давао,,,ダバオ州,,Région de Davao,达沃州,Región de Davao,Davao,Regione di Davao
23868,Canberra,Canberra,Канберра,Camberra,Camberra,キャンベラ,کانبرا,Canberra,堪培拉,Canberra,Canberra,Canberra
239939,Republic of Italy,,,,,,,,,,,
4426,San Bernardino County,San Bernardino,Сан-Бернардино,샌버너디노 군,Condado de San Bernardino,サンバーナーディーノ郡,شهرستان سن برناردینو، کالیفرنیا,Comté de San Bernardino,聖貝納迪諾縣,Сан-Бернардино,San Bernardino County,Contea di San Bernardino
4415,San Bernardino,San Bernardino,Сан-Бернардино,샌버너디노 군,Condado de San Bernardino,サンバーナーディーノ_,شهرستان سن برناردینو، کالیفرنیا,San Bernardino,聖貝納迪諾縣,San Bernardino,San Bernardino,San Bernardino
104990,Digos,Digos City,Дигос,,,ディゴス,,Digos,迪戈斯,Digos,Digos,Digos
362,California,Kalifornien,Калифорния,Califórnia,Califórnia,カリフォルニアだ,کالیفرنیا,Californie,加州,California,Kalifornie,California
52494,Yiyang,Yiyang,Иян,,,宜陽,,Yiyang,赫山,Yiyang,Yiyang,Yiyang
33848,San Diego County,San Diego,Сан-Диего,샌디에이고 군,Condado de San Diego,サンディエゴ郡,شهرستان سن دیگو، کالیفرنیا,Comté de San Diego,圣迭戈县,Сан-Диего,San Diego County,Contea di San Diego
240077,Shanghai Shi,,,,,,,,,,,
492,Emilia-Romagna,Emilia-Romagna,Эмилия-Романья,에밀리아로마냐 주,,エミリアロマーニャ州,,Émilie-Romagne,艾米利亚-罗马涅大区,Emilia-Romaña,Emilia Romagna,Emilia-Romagna
240079,Sydney Central Business District,,,,,,,,,,,
3054,Manila,Manila,Манила,,,マニラ,,Manille,马尼拉,Manila,Manila,Manila
277,Jiangsu,Jiangsu,Цзянсу,,,江蘇省,,Province de Jiangsu,江苏省,Jiangsu,Jiangsu,Jiangsu
240078,Huaiyin,,,,,,,,,,,
3952,Rome,Rom,Рим,,,ローマ,,Rome,罗马,Roma,Řím,Roma
239984,Republic of the Philippines,,,,,,,,,,,
5669,Brazoria County,Brazoria,Бразория,,Condado de Brazoria,ブラゾリア郡,شهرستان برازوریا، تگزاس,Comté de Brazoria,布拉佐里亞縣,Бразория,Brazoria,Contea di Brazoria
562,Berlin,Berlin,Берлин,베를린,Berlim,ベルリン,برلین,Berlin,柏林,Berlín,Berlín,Berlino
373,Texas,Texas,Техас,텍사스 주,,テキサス州,تگزاس,Texas,德克萨斯州,Texas,Texas,Texas3. 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
172,NA,6,US,USA,USA,28,240018,240019,USD,US Dollar,$,+1,.us,"en-US,es-US,haw,fr"
80,EU,7,IT,ITA,ITA,35,239939,3952,EUR,Euro,€,+39,.it,"it-IT,de-IT,fr-IT,sc,ca,co,sl"
35,AS,5,CN,CHN,CHN,12,239901,275,CNY,Yuan Renminbi,¥,+86,.cn,"zh-CN,yue,wuu,dta,ug,za"
133,AS,5,PH,PHL,PHI,29,239984,3054,PHP,Philippine Piso,₱,+63,.ph,"tl,en-PH,fil"
10,OC,4,AU,AUS,AUS,11,239884,23868,AUD,Australian Dollar,A$,+61,.au,en-AU
41,EU,7,DE,DEU,GER,33,239906,562,EUR,Euro,€,+49,.de,de4. File Relationship Diagram
File Format & Encoding
All Standard IP to Location 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 Standard IP to Location 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 Standard IP to Location MMDB database archive, you'll find the following files (with their types noted):
- File Size: 2.23 GB
- Entries: 47.5M
Documentation for dataset contents, schema, usage, and support.
- File Size: 12.11 KB
SHA-256 checksums for verifying file integrity.
- File Size: 162 Bytes
Response Schema
This section describes the structure of the data returned from the Standard IP to Location 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-geolocation.mmdb
This file provides city-level geolocation data for IPv4 and IPv6 ranges. Each response includes multilingual details for country, state, district, and city, along with geographic coordinates, time zone, GeoNames ID, connection type, and supporting metadata such as codes, currency, 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.
2. Example Records
{
"location": {
"city": {
"name": {
"cs": "Šanghaj",
"de": "Schanghai",
"en": "Shanghai",
"es": "Šanghaj",
"fa": "",
"fr": "Municipalité de Shanghai",
"it": "Shanghai",
"ja": "上海だ",
"ko": "Xangai",
"pt": "Xangai",
"ru": "Шанхай",
"zh": "上海"
}
},
"coordinates": {
"latitude": "31.2288",
"longitude": "121.4444"
},
"country": {
"capital": {
"cs": "Peking",
"de": "Peking",
"en": "Beijing",
"es": "Peking",
"fa": "",
"fr": "Municipalité de Pékin",
"it": "Pechino",
"ja": "北京",
"ko": "",
"pt": "",
"ru": "Пекин",
"zh": "北京"
},
"code2": "CN",
"code3": "CHN",
"code_ioc": "CHN",
"continent": {
"code": "AS",
"name": {
"cs": "Asie",
"de": "Asien",
"en": "Asia",
"es": "Asia",
"fa": " آسیا",
"fr": "Asie",
"it": "Asia",
"ja": "アジア",
"ko": "Ásia",
"pt": "Ásia",
"ru": "Азия",
"zh": "亚洲"
}
},
"currency": {
"code": "CNY",
"name": {
"en": "Yuan Renminbi"
},
"symbol": "¥"
},
"metadata": {
"calling_code": "+86",
"languages": "zh-CN,yue,wuu,dta,ug,za",
"tld": ".cn"
},
"name": {
"cs": "Čína",
"de": "China",
"en": "China",
"es": "China",
"fa": "چین",
"fr": "Chine",
"it": "Cina",
"ja": "中国",
"ko": "China",
"pt": "China",
"ru": "Китай",
"zh": "中国"
},
"name_official": {
"cs": "",
"de": "",
"en": "People’s Republic of China",
"es": "",
"fa": "",
"fr": "",
"it": "",
"ja": "",
"ko": "",
"pt": "",
"ru": "",
"zh": ""
}
},
"district": {
"name": {
"cs": "",
"de": "",
"en": "Shanghai Shi",
"es": "",
"fa": "",
"fr": "",
"it": "",
"ja": "",
"ko": "",
"pt": "",
"ru": "",
"zh": ""
}
},
"geoname_id": "9952641",
"state": {
"code": "CN-SH",
"name": {
"cs": "Šanghaj",
"de": "Schanghai",
"en": "Shanghai",
"es": "Šanghaj",
"fa": "",
"fr": "Municipalité de Shanghai",
"it": "Shanghai",
"ja": "上海だ",
"ko": "Xangai",
"pt": "Xangai",
"ru": "Шанхай",
"zh": "上海"
}
},
"zipcode": "200040"
},
"time_zone": "Asia/Shanghai"
}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 Standard IP to Location 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 Standard IP to Location 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 Standard IP to Location 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.