Subscribe for notification
Software Tools

Country Code Finder Tool

 

NathTech’s Tools ,

 Country Code Finder ,

This tool allows users to input a country name and find its corresponding country code.

 


const countryCode = countryCodes[countryName];
if (!countryCode) {
alert('Country code not found.');
return;
}

document.getElementById('result').innerText = `Country Code for ${countryName.toUpperCase()}: ${countryCode}`;
}

const countryCodes = {
"afghanistan": "AF",
"albania": "AL",
"algeria": "DZ",
"american samoa": "AS",
"andorra": "AD",
"angola": "AO",
"anguilla": "AI",
"antarctica": "AQ",
"antigua and barbuda": "AG",
"argentina": "AR",
"armenia": "AM",
"aruba": "AW",
"australia": "AU",
"austria": "AT",
"azerbaijan": "AZ",
"bahamas": "BS",
"bahrain": "BH",
"bangladesh": "BD",
"barbados": "BB",
"belarus": "BY",
"belgium": "BE",
"belize": "BZ",
"benin": "BJ",
"bermuda": "BM",
"bhutan": "BT",
"bolivia": "BO",
"bosnia and herzegovina": "BA",
"botswana": "BW",
"bouvet island": "BV",
"brazil": "BR",
"british indian ocean territory": "IO",
"brunei darussalam": "BN",
"bulgaria": "BG",
"burkina faso": "BF",
"burundi": "BI",
"cambodia": "KH",
"cameroon": "CM",
"canada": "CA",
"cape verde": "CV",
"cayman islands": "KY",
"central african republic": "CF",
"chad": "TD",
"chile": "CL",
"china": "CN",
"christmas island": "CX",
"cocos (keeling) islands": "CC",
"colombia": "CO",
"comoros": "KM",
"congo": "CG",
"congo, the democratic republic of the": "CD",
"cook islands": "CK",
"costa rica": "CR",
"cote d'ivoire": "CI",
"croatia": "HR",
"cuba": "CU",
"cyprus": "CY",
"czech republic": "CZ",
"denmark": "DK",
"djibouti": "DJ",
"dominica": "DM",
"dominican republic": "DO",
"ecuador": "EC",
"egypt": "EG",
"el salvador": "SV",
"equatorial guinea": "GQ",
"eritrea": "ER",
"estonia": "EE",
"ethiopia": "ET",
"falkland islands (malvinas)": "FK",
"faroe islands": "FO",
"fiji": "FJ",
"finland": "FI",
"france": "FR",
"french guiana": "GF",
"french polynesia": "PF",
"french southern territories": "TF",
"gabon": "GA",
"gambia": "GM",
"georgia": "GE",
"germany": "DE",
"ghana": "GH",
"gibraltar": "GI",
"greece": "GR",
"greenland": "GL",
"grenada": "GD",
"guadeloupe": "GP",
"guam": "GU",
"guatemala": "GT",
"guinea": "GN",
"guinea-bissau": "GW",
"guyana": "GY",
"haiti": "HT",
"heard island and mcdonald islands": "HM",
"holy see (vatican city state)": "VA",
"honduras": "HN",
"hong kong": "HK",

shmbhnthjh8

Music composer, blogger,website creator,freelancer

Recent Posts

Toncoin: Everything You Need to Know About the Future of this Unique Cryptocurrency

NathTech Guid,   Introduction to Toncoin (TON) Toncoin (TON) is the native cryptocurrency of The…

2 months ago

How to Get Naturally Glowing Skin: A Complete Guide for All Skin Types

NathTech Guide , Introduction: glowing skin is a reflection of overall health and self-care. While…

3 months ago

How to Get Glowing Skin: Essential Tips, Skin Care Components, and Protection Against Environmental Factors

NathTech Guid Introduction: Achieving glowing skin is a goal that many people aspire to, but…

3 months ago

Essential Components of Fitness: A Comprehensive Guide for All Ages

Nathtech Guideline , Introduction Maintaining fitness is crucial for a healthy and fulfilling life, regardless…

5 months ago

Maintaining Fitness Naturally: A Comprehensive Guide for All Ages

Nathtech Guideline ,   Introduction ; In today's fast-paced world, maintaining fitness is more than…

5 months ago

Unlocking Natural Fitness: Essential Tips for Every Age

Nathtech's Guideline ,     Introduction , In a world that is increasingly focused on…

5 months ago