Localize Websites and Apps with IP Geolocation

Use IP geolocation to tailor content, language, currency, pricing, maps, promotions, and local-time experiences based on a visitor's geographic location.

Localization
Overview

How Businesses Use Geolocation Data for Localization

IP geolocation helps applications estimate where an Internet-connected visitor is located. That location context can be used to present region-specific content, select an appropriate language and currency, personalize promotions, show local maps, and display time-sensitive information in the visitor's local time.

Common Localization Scenarios

See how product and growth teams use IP location data to create more relevant experiences for global visitors.

Regional Content Personalization

Display country, region, or city-specific content so visitors see information that is relevant to their location.

Language Detection

Use the detected country and language information to suggest an appropriate language for your website or application.

Currency & Pricing

Show local currency codes, symbols, and region-aware pricing to make international shopping experiences easier to understand.

Local Time & Scheduling

Use time-zone information to display local times, schedule notifications, and present time-sensitive content appropriately.

Map & Store Locator

Use latitude and longitude to center maps, suggest nearby locations, and provide a better starting point for local search.

Local Promotions & Offers

Present promotions, campaigns, and product messaging that are appropriate for the visitor's country or local market.

Product Capabilities

How IP2Location.io Supports Localization

country_code & region_name

Regional Targeting

Detect country and region context for localized content and regional experiences.

country.language

Language Information

Use language code and name data as a signal when choosing localized content.

country.currency

Currency Detection

Access currency code, name, and symbol for region-aware pricing displays.

latitude, longitude & time_zone

Map & Time Context

Center map views and provide time-aware experiences using coordinates and time-zone data.

Functional Implementation

IP Data in Localization

Explore how core IP geolocation fields can power localized digital experiences.

Location Targeting

Marketers use IP geolocation data to target users by their geographic location. This “location targeting” method is widely used in digital advertising and service delivery to optimize campaigns for local relevance. This allows businesses to deliver targeted ads, customize content, and enhance user experience based on location. This leads to increased engagement and customer satisfaction.

{
	"ip": "8.8.8.8",
    "country_code": "US",
    "country_name": "United States of America",
    "region_name": "California",
    "district": "Santa Clara County",
    "city_name": "Mountain View",
    "latitude": 37.38605,
    "longitude": -122.08385,
    "zip_code": "94043",
	...
}

Language & Currency Detection

An IP address can be used to detect a user's language and currency preferences. By linking IPs to specific countries and utilizing language databases or APIs, applications can modify content to match the user's language. Similarly, linking identified countries with their respective currency codes allows prices to be displayed in the user's preferred currency. This enhances the user experience and makes transactions smoother for global businesses.

{
	...
	"country":{
		"currency": {
            "code": "USD",
            "name": "United States Dollar",
            "symbol": "$"
        },
        "language": {
            "code": "EN",
            "name": "English"
        },
		...
	}
}

Map View & Time Zone Lookup

Geolocation Data from an IP address can be used to display its geographical location on a map. This is achieved by using the latitude and longitude coordinates associated with the IP address. By determining time zones from IP data, we can show the accurate local time for users in different regions. This feature is beneficial for applications that provide time-sensitive information to users.

{
	...
	"latitude": 37.38605,
    "longitude": -122.08385,
	"time_zone": "-07:00",
	"time_zone_info": {
        "olson": "America/Los_Angeles",
        "current_time": "2026-08-16T21:59:30-07:00",
        "gmt_offset": -25200,
        "is_dst": true,
        "abbreviation": "PST",
        "dst_start_date": "2026-03-08",
        "dst_end_date": "2026-11-01",
        "sunrise": "06:26",
        "sunset": "20:01"
    },
	...
}
Data Taxonomy

What IP Information Is Available?

Use geographic, language, currency, coordinate, and time-zone fields to build localized application rules.

IP Information Localization Use
ipIP address.
country_codeTwo-character country code based on ISO 3166.
country_nameCountry name based on ISO 3166.
region_nameRegion or state name.
districtDistrict or county name.
city_nameCity name.
zip_codeZIP/Postal code.
latitudeCity latitude. Defaults to capital city latitude if city is unknown.
longitudeCity longitude. Defaults to capital city longitude if city is unknown.
country.language.codeLanguage code of the country.
country.language.nameLanguage name of the country.
country.currency.codeCurrency code of the country.
country.currency.nameCurrency name of the country.
country.currency.symbolCurrency symbol of the country.
time_zoneUTC time zone (with DST supported).
time_zone_info.olsonTime zone in Olson format.
time_zone_info.current_timeCurrent time in ISO 8601 format.
time_zone_info.abbreviationThe time zone abbreviation of the Olson time zone, for example EST and EEST.
time_zone_info.dst_start_dateThe date (UTC) of Daylight Saving Time (DST) begins.
time_zone_info.dst_end_dateThe date (UTC) of Daylight Saving Time (DST) ends.
time_zone_info.sunriseTime of sunrise. (hh:mm format in local time, i.e, 07:47)
time_zone_info.sunsetTime of sunset. (hh:mm format in local time, i.e 19:50)

Limitations & Responsible Use of IP Intelligence

IP geolocation is not GPS. It estimates the location associated with an IP network and should not be interpreted as a person's exact physical location. Localization rules should therefore use IP location as contextual guidance and provide users with a way to change language, currency, or location when needed.

Country & Regional Personalization: IP location is well suited to selecting a sensible default experience, while explicit user preferences should take priority when available.
VPN, Mobile & Shared Networks: The detected IP location may represent a VPN endpoint, carrier gateway, or ISP network instead of the user's precise physical position.
Uncropped API Payload

Localization Data Payload

{
    "ip": "8.8.8.8",
    "country_code": "US",
    "country_name": "United States of America",
    "region_name": "California",
    "district": "Santa Clara County",
    "city_name": "Mountain View",
    "latitude": 37.38605,
    "longitude": -122.08385,
    "zip_code": "94043",
    "time_zone": "-07:00",
    "asn": "15169",
    "as": "Google LLC",
    "as_info": {
        "as_number": "15169",
        "as_name": "Google LLC",
        "as_domain": "google.com",
        "as_usage_type": "DCH",
        "as_cidr": "8.8.8.0/24"
    },
    "isp": "Google LLC",
    "domain": "google.com",
    "net_speed": "T1",
    "idd_code": "1",
    "area_code": "650",
    "weather_station_code": "USCA0746",
    "weather_station_name": "Mountain View",
    "mcc": "-",
    "mnc": "-",
    "mobile_brand": "-",
    "elevation": 32,
    "usage_type": "DCH",
    "address_type": "Anycast",
    "ads_category": "622",
    "ads_category_name": "Web Hosting",
    "continent": {
        "name": "North America",
        "code": "NA",
        "hemisphere": [
            "north",
            "west"
        ],
        "translation": {
            "lang": "en",
            "value": "North America"
        }
    },
    "country": {
        "name": "United States of America",
        "alpha3_code": "USA",
        "numeric_code": 840,
        "demonym": "Americans",
        "flag": "https://cdn.ip2location.io/assets/img/flags/us.png",
        "capital": "Washington, D.C.",
        "total_area": 9826675,
        "population": 339665118,
        "currency": {
            "code": "USD",
            "name": "United States Dollar",
            "symbol": "$"
        },
        "language": {
            "code": "EN",
            "name": "English"
        },
        "tld": "us",
        "translation": {
            "lang": "en",
            "value": "United States of America"
        }
    },
    "region": {
        "name": "California",
        "code": "US-CA",
        "translation": {
            "lang": "en",
            "value": "California"
        }
    },
    "city": {
        "name": "Mountain View",
        "translation": {
            "lang": "en",
            "value": "Mountain View"
        }
    },
    "time_zone_info": {
        "olson": "America/Los_Angeles",
        "current_time": "2026-08-16T21:59:30-07:00",
        "gmt_offset": -25200,
        "is_dst": true,
        "abbreviation": "PST",
        "dst_start_date": "2026-03-08",
        "dst_end_date": "2026-11-01",
        "sunrise": "06:26",
        "sunset": "20:01"
    },
    "geotargeting": {
        "metro": "807"
    },
    "is_proxy": false,
    "fraud_score": 0,
    "proxy": {
        "last_seen": 1,
        "proxy_type": "DCH",
        "threat": "-",
        "provider": "-",
        "is_vpn": false,
        "is_tor": false,
        "is_data_center": true,
        "is_public_proxy": false,
        "is_web_proxy": false,
        "is_web_crawler": false,
        "is_ai_crawler": false,
        "is_residential_proxy": false,
        "is_consumer_privacy_network": false,
        "is_enterprise_private_network": false,
        "is_spammer": false,
        "is_scanner": false,
        "is_botnet": false,
        "is_bogon": false
    }
}
Technical Concepts

Localization Intelligence

Dive deeper into location, language, currency, coordinates, and time-zone data used to build localized experiences.

Developer & Learning Resources

Explore IP2Location.io

Frequently Asked Questions About IP-Based Localization

Learn how IP geolocation can support website localization, regional content, language suggestions, currency displays, time zones and other location-aware experiences.

IP-based localization uses geographic information associated with a visitor's IP address to establish location-aware defaults for a website or application. These defaults may include regional content, language suggestions, currency displays, maps, promotions, and local-time information.

A website can look up a visitor's IP address and obtain geographic information such as country, region, city, coordinates, and time zone. Application rules can then use those fields to select the most appropriate initial experience.

Not reliably at an individual level. IP geolocation can determine the country associated with an Internet connection, and IP2Location.io provides country-level language information. Websites should combine this with browser settings and explicit user preferences when choosing a language.

IP geolocation can identify a visitor's country, which can be mapped to country-level currency information. This is useful for selecting a default display currency, but users should still be allowed to choose another supported currency where appropriate.

No. IP geolocation estimates the geographic location associated with an Internet connection rather than providing GPS-level device positioning. VPNs, mobile networks, corporate networks, and shared infrastructure can also influence the detected location.

Depending on the API response and plan, IP2Location.io provides geographic information such as country, region, city, ZIP/postal code, latitude, longitude and time zone, together with country-level currency and language information and additional IP intelligence.

Harness the Power of IP Geolocation for Business Growth

Use location data to create more relevant content, language, currency, maps, and local-time experiences for users around the world.