Ip2country
Plugin converts IP-address to the country.
Consider an alternative
Ip2country shows warning signs in 2026 β compare the alternatives below before installing. It runs on 10+ sites and was last updated 6 years ago, and scores 23/100 on our health check.
- Small user base (10+ active installs)
- Very few reviews so far
- No update in 6 years
- Only tested up to WordPress 5.4 (latest is 7.1)
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release β each site that auto-updates counts as a download.
Rankings
Where Ip2country stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| country | >100 |
| geolocation | >100 |
| ip | >100 |
| ip to country | >100 |
| ip2country | #1 |
Version adoption
Share of active sites per release.
About Ip2country
From the official readme Β· v1.3Description
- WordPress Pro plugins
- Ip2country plugin
-
Code is based on: phpweby.com/software/ip2country
- Ip2country database table is based on: maxmind.com
- Ip2country_info database table is based on: ip2nation.com
- Last IP database update: 15-jan-2012
- Ip2country database is stored on your site.
Get country code or country name:
<?php
$ip2country = ip2country();
echo ' Country code: '.$ip2country->country_code;
echo ' Country name: '.$ip2country->country_name;
// or
$ip2country2 = ip2country('212.113.46.148');
echo ' Country code: '.$ip2country2->country_code;
echo ' Country name: '.$ip2country2->country_name;
?>
Get additional info about the country by country code:
<?php
$ip2country_info = ip2country_info($ip2country->country_code);
echo ' iso_code_2: '.$ip2country_info->iso_code_2;
echo ' iso_code_3: '.$ip2country_info->iso_code_3;
echo ' iso_country: '.$ip2country_info->iso_country;
echo ' country: '.$ip2country_info->country;
echo ' lat: '.$ip2country_info->lat;
echo ' lon: '.$ip2country_info->lon;
// or
$ip2country_info = ip2country_info('us');
echo ' lat: '.$ip2country_info->lat;
echo ' lon: '.$ip2country_info->lon;
?>
Useful:
Installation
- install and activate the plugin on the Plugins page
- insert ip2country dump into your database using phpMyAdmin (if your database prefix is not “wp_”, you should change prefix inside the sql database dump manually)
- you can use plugin functions to convert the IP-address to the country
Changelog
1.3
- minor changes
1.2
- IP database update;
1.1.0
- Added info table from http://www.ip2nation.com/;
1.0.0
- Initial release;
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own β no account needed.
Best Ip2country alternatives
All country plugins βFAQ
Ip2country: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is Ip2country free?
Yes. Ip2country is free to download and use from the official WordPress.org plugin directory.
Is Ip2country safe to use in 2026?
Ip2country shows warning signs in 2026 β compare the alternatives below before installing. It runs on 10+ sites and was last updated 6 years ago, and scores 23/100 on our health check.
How many websites use Ip2country?
Ip2country is active on 10+ WordPress websites and has been downloaded 4,631 times since it launched in July 2011. It was downloaded 45 times in the last 30 days.
Does Ip2country work with WordPress 7.1?
Ip2country is officially tested up to WordPress 5.4.26, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
When was Ip2country last updated?
The latest version, 1.3, was released on August 9, 2020 (6 years ago).
Who makes Ip2country?
Ip2country is developed and maintained by webvitalii.
What are the best alternatives to Ip2country?
The most popular alternatives to Ip2country are Country Based Payments for⦠(3K+ installs), User IP and Location (3K+ installs) and SVG Flags (2K+ installs).
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card


