IP to Country Database (IPV4 and IPV6)

March 28, 2021


FAQ, Archive and Donations
Country IP listing

AD Andorra AE United Arab Emi.. AF Afghanistan AG Antigua and Bar.. AI Anguilla AL Albania AM Armenia AN Netherlands Ant.. AO Angola AP Non-spec Asia P.. AQ Antarctica AR Argentina AS American Samoa AT Austria AU Australia AW Aruba AX Aland Islands AZ Azerbaijan BA Bosnia and Herz.. BB Barbados BD Bangladesh BE Belgium BF Burkina Faso BG Bulgaria BH Bahrain BI Burundi BJ Benin BM Bermuda BN Brunei Darussal.. BO Bolivia BQ Bonaire; Sint E.. BR Brazil BS Bahamas BT Bhutan BV Bouvet Island BW Botswana BY Belarus BZ Belize CA Canada CC Cocos (KEELING).. CD Congo The Democ.. CF Central African.. CG Congo CH Switzerland CI Cote D’ivoire CK Cook Islands CL Chile CM Cameroon CN China CO Colombia CR Costa Rica CS Serbia and Mont.. CU Cuba CV Cape Verde CW Curacao CX Christmas Islan.. CY Cyprus CZ Czech Republic DE Germany DJ Djibouti DK Denmark DM Dominica DO Dominican Repub.. DZ Algeria EC Ecuador EE Estonia EG Egypt EH Western Sahara ER Eritrea ES Spain ET Ethiopia EU European Union FI Finland FJ Fiji FK Falkland Island.. FM Micronesia Fede.. FO Faroe Islands FR France FX France Metro GA Gabon GB United Kingdom GD Grenada GE Georgia GF French Guiana GG Guernsey GH Ghana GI Gibraltar GL Greenland GM Gambia GN Guinea GP Guadeloupe GQ Equatorial Guin.. GR Greece GS South Georgia a.. GT Guatemala GU Guam GW Guinea-bissau GY Guyana HK Hong Kong HM Heard and Mc Do.. HN Honduras HR Croatia (LOCAL .. HT Haiti HU Hungary ID Indonesia IE Ireland IL Israel IM Isle of Man IN India IO British Indian .. IQ Iraq IR Iran (ISLAMIC R.. IS Iceland IT Italy JE Jersey JM Jamaica JO Jordan JP Japan KE Kenya KG Kyrgyzstan KH Cambodia KI Kiribati KM Comoros KN Saint Kitts and.. KP Korea Democrati.. KR Korea Republic .. KW Kuwait KY Cayman Islands KZ Kazakhstan LA Lao People’s De.. LB Lebanon LC Saint Lucia LI Liechtenstein LK Sri Lanka LR Liberia LS Lesotho LT Lithuania LU Luxembourg LV Latvia LY Libyan Arab Jam.. MA Morocco MC Monaco MD Moldova Republi.. ME Montenegro MF Saint Martin MG Madagascar MH Marshall Island.. MK Macedonia ML Mali MM Myanmar MN Mongolia MO Macau MP Northern Marian.. MQ Martinique MR Mauritania MS Montserrat MT Malta MU Mauritius MV Maldives MW Malawi MX Mexico MY Malaysia MZ Mozambique NA Namibia NC New Caledonia NE Niger NF Norfolk Island NG Nigeria NI Nicaragua NL Netherlands NO Norway NP Nepal NR Nauru NU Niue NZ New Zealand OM Oman PA Panama PE Peru PF French Polynesi.. PG Papua New Guine.. PH Philippines PK Pakistan PL Poland PM St. Pierre and .. PN Pitcairn PR Puerto Rico PS Palestinian Ter.. PT Portugal PW Palau PY Paraguay QA Qatar RE Reunion RO Romania RS Serbia RU Russian Federat.. RW Rwanda SA Saudi Arabia SB Solomon Islands SC Seychelles SD Sudan SE Sweden SG Singapore SH Saint Helena SI Slovenia SJ Svalbard and Ja.. SK Slovakia (SLOVA.. SL Sierra Leone SM San Marino SN Senegal SO Somalia SR Suriname SS South Sudan ST Sao Tome and Pr.. SV El Salvador SX Sint Maarten SY Syrian Arab Rep.. SZ Swaziland TC Turks and Caico.. TD Chad TF French Southern.. TG Togo TH Thailand TJ Tajikistan TK Tokelau TL Timor-leste TM Turkmenistan TN Tunisia TO Tonga TR Turkey TT Trinidad and To.. TV Tuvalu TW Taiwan; Republi.. TZ Tanzania United.. UA Ukraine UG Uganda UK United Kingdom UM United States M.. US United States UY Uruguay UZ Uzbekistan VA Holy See (VATIC.. VC Saint Vincent a.. VE Venezuela VG Virgin Islands .. VI Virgin Islands .. VN Viet Nam VU Vanuatu WF Wallis and Futu.. WS Samoa YE Yemen YT Mayotte YU Serbia and Mont.. ZA South Africa ZM Zambia ZW Zimbabwe ZZ Reserved

CIDR format x.x.x.x-y.y.y.y format

About Webnet77 Packages

– 99.99% uptime / 6+ years!
Unmetered bandwidth
– RAID 10

– Over 10 years in business
– Affordable
– No overselling
– Linux based
Genuinely! Experienced Linux team!

Reseller Hosting
More Info
Shared Hosting
More Info


Please see the FAQ Archive IPV4 and IPV6 IP to Country Database: to search online as well as download. Database License: DONATIONWARE Previously, This DB was licensed  differently (GPL V3), which restricted many commercial developers from using it at all.

Now, it’s “donationware“. Problem is, many are using it in commercial products, benefiting financially without giving a thought to the source – this database.

It’s simple: we cannot offer tens of thousands of downloads per day without assistance. Please help us…. the PayPal link is right above.

More details in the DB License & Changelog

Many thanks!

  • Real Time Country Geo-Location
  • Web Server Log analysis
  • Creation of Location Aware Content such as language, currency, etc
  • Fraud Detection, Credit Card Fraud vetting etc.
  • On-line campaigns such as targeted Banner Ads
  • Digital Rights Management such as music or film distribution
  • Auto country detection for rapid form entry such as country, currency, language.
  • Filter web access on basis of originating country
  • Spam mail Filtering
  • Firewall and HTTP filtering rules
  • Email services for identifying the country of the sender
  • 3rd party scripts such as Message Boards and blogs
  • Use your imagination …
Other Free tools


Lookup multiple IP addresses at once – Multi-Lookup. Most useful for pasting of server logs, “netstat” output, mail logs etc. Able to identify and group multiple IP addresses and sort in various intuitive ways. Probably most importantly, produces output in CIDR format supported by many Firewalls deny filters


An experimental tool for looking up DNS records, MX records and more. Please note it is still under development. We would love to have your feedback. Link here


About This Database and website is operated as a free Web Service maintained by Webnet77 and updated daily. It represents the over 4 billion IPV4 numbers as well as the virtually inexhaustible IPV6 range (3.4e+38).

We have been running this database as a free community service since 2004 and will continue to do so for as long as funds permit. We do ask that you consider making a donation as our operating cost for this site have increased substantially over time – As more and more developers build our database into end-user applications, downloads increase non-linearly.

For example, all it takes is some new Ubuntu distro or WordPress plugin to be released that uses this database and we suddenly have an extra 10,000 downloads per day. WordPress or Mambo don’t get updated daily but this database does, so in many cases, people download it daily hence the number of daily downloads increases disproportionately as application usage increases.

In the past 3 hours the database has been downloaded 184,976 times.

CONTRIBUTIONS/DOWNLOADS Contributions by various members of community. Here you will find scripts written in languages like Perl, PHP, Java, awk as well as bash. The applications vary from firewall applications to bind acl’s as well as browser based country lookup scripts you can use on your website. Most scripts are licensed under the public domain, GPL or creative commons licenses.

Go to the software page.

How often should you download this database? If you use our IP to country Database in your applications you should get an updated copy from time to time. Depending on your application, probably once a month should be fine. We have observed up to 50 row changes from a single registry in a one day on busy days. Some days there are far fewer.

This may sound like a lot or a little depending on how you look at it. Mostly it will not affect you and sometimes it can be significant. For example, a Registry may allocate a block of IP numbers for a specific event – like an international trade show. These IP numbers may be valid for a few weeks only and then revert back to the registry when the show is over. Unless your application has an interest in the trade show event, the assignment/revocation of these IP numbers will have little impact on you or your application.