Federal Information Processing Standard (FIPS) two-letter country codes (FIPS 10-4) are used by the US Government for data processing, and in the CIA World Factbook. Note that they are not the same as ISO 3166-1 country codes. ISO 3166-1 codes are used for top-level domain names.

The following is a list of FIPS two-letter codes for independent states (including the Republic of China (Taiwan), North Korea, and other states not recognized by the US). There are also codes for dependent territories, but these are not listed here. The standard also includes codes for the top-level subdivision of the countries, similar but usually incompatible with the ISO 3166-2 standard.

AC Antigua and Barbuda
AF Islamic State of Afghanistan
AG Democratic and Popular Republic of Algeria
AJ Republic of Azerbaijan
AL Republic of Albania
AM Republic of Armenia
AN Principality of Andorra
AO Republic of Angola
AR Argentine Republic
AS Commonwealth of Australia
AU Republic of Austria
BA State of Bahrain
BB Barbados
BC Republic of Botswana
BE Kingdom of Belgium
BF Commonwealth of The Bahamas
BG People's Republic of Bangladesh
BH Belize
BK Bosnia and Herzegovina
BL Republic of Bolivia
BM Union of Burma
BN Republic of Benin
BO Republic of Belarus
BP Solomon Islands
BR Federative Republic of Brazil
BT Kingdom of Bhutan
BU Republic of Bulgaria
BX Negara Brunei Darussalam
BY Republic of Burundi
CA Canada
CB Kingdom of Cambodia
CD Republic of Chad
CE Democratic Socialist Republic of Sri Lanka
CF Republic of the Congo
CG Democratic Republic of the Congo
CH People's Republic of China
CI Republic of Chile
CM Republic of Cameroon
CN Federal Islamic Republic of the Comoros
CO Republic of Colombia
CS Republic of Costa Rica
CT Central African Republic
CU Republic of Cuba
CV Republic of Cape Verde
CY Republic of Cyprus
DA Kingdom of Denmark
DJ Republic of Djibouti
DO Commonwealth of Dominica
DR Dominican Republic
EC Republic of Ecuador
EG Arab Republic of Egypt
EI Republic of Ireland
EK Republic of Equatorial Guinea
EN Republic of Estonia
ER State of Eritrea
ES Republic of El Salvador
ET Federal Democratic Republic of Ethiopia
EZ Czech Republic
FI Republic of Finland
FJ Republic of the Fiji Islands
FM Federated States of Micronesia
FR French Republic
GA Republic of The Gambia
GB Gabonese Republic
GG Republic of Georgia
GH Republic of Ghana
GJ Grenada
GM Federal Republic of Germany
GR Hellenic Republic
GT Republic of Guatemala
GV Republic of Guinea
GY Co-operative Republic of Guyana
HA Republic of Haiti
HO Republic of Honduras
HR Republic of Croatia
HU Republic of Hungary
IC Republic of Iceland
ID Republic of Indonesia
IN Republic of India
IR Islamic Republic of Iran
IS State of Israel
IT Italian Republic
IV Republic of Côte d'Ivoire
IZ Republic of Iraq
JA Japan
JM Jamaica
JO Hashemite Kingdom of Jordan
KE Republic of Kenya
KG Kyrgyz Republic
KN Democratic People's Republic of Korea
KR Republic of Kiribati
KS Republic of Korea
KU State of Kuwait
KZ Republic of Kazakhstan
LA Lao People's Democratic Republic
LE Lebanese Republic
LG Republic of Latvia
LH Republic of Lithuania
LI Republic of Liberia
LO Slovak Republic
LS Principality of Liechtenstein
LT Kingdom of Lesotho
LU Grand Duchy of Luxembourg
LY Great Socialist People's Libyan Arab Jamahiriya
MA Republic of Madagascar
MD Republic of Moldova
MG Mongolia
MI Republic of Malawi
MK Former Yugoslav Republic of Macedonia
ML Republic of Mali
MN Principality of Monaco
MO Kingdom of Morocco
MP Republic of Mauritius
MR Islamic Republic of Mauritania
MT Republic of Malta
MU Sultanate of Oman
MV Republic of Maldives
MX United Mexican States
MY Malaysia
MZ Republic of Mozambique
NG Republic of Niger
NH Republic of Vanuatu
NI Federal Republic of Nigeria
NL Kingdom of the Netherlands
NO Kingdom of Norway
NP Kingdom of Nepal
NR Republic of Nauru
NS Republic of Suriname
NU Republic of Nicaragua
NZ New Zealand
PA Republic of Paraguay
PE Republic of Peru
PK Islamic Republic of Pakistan
PL Republic of Poland
PM Republic of Panama
PO Portuguese Republic
PP Independent State of Papua New Guinea
PS Republic of Palau
PU Republic of Guinea-Bissau
QA State of Qatar
RM Republic of the Marshall Islands
RO Romania
RP Republic of the Philippines
RS Russian Federation
RW Rwandese Republic
SA Kingdom of Saudi Arabia
SC Federation of Saint Kitts and Nevis
SE Republic of Seychelles
SF Republic of South Africa
SG Republic of Senegal
SI Republic of Slovenia
SL Republic of Sierra Leone
SM Republic of San Marino
SN Republic of Singapore
SO Somalia
SP Kingdom of Spain
ST Saint Lucia
SU Republic of the Sudan
SW Kingdom of Sweden
SY Syrian Arab Republic
SZ Swiss Confederation
TC United Arab Emirates
TD Republic of Trinidad and Tobago
TH Kingdom of Thailand
TI Republic of Tajikistan
TN Kingdom of Tonga
TO Togolese Republic
TP Democratic Republic of Sao Tome and Principe
TS Republic of Tunisia
TT East Timor (recent update: see FIPS publication number FIPS 104­)
TU Republic of Turkey
TV Tuvalu
TW Republic of China (Taiwan)
TX Turkmenistan
TZ United Republic of Tanzania
UG Republic of Uganda
UK United Kingdom of Great Britain and Northern Ireland
UP Ukraine
US United States of America
UV Burkina Faso
UY Oriental Republic of Uruguay
UZ Republic of Uzbekistan
VC Saint Vincent and the Grenadines
VE Bolivarian Republic of Venezuela
VM Socialist Republic of Vietnam
VT Holy See
WA Republic of Namibia
WS Independent State of Samoa
WZ Kingdom of Swaziland
YI Serbia and Montenegro
YM Republic of Yemen
ZA Republic of Zambia
ZI Republic of Zimbabwe

Resources

The above is taken from a US Government public-domain source at
[1].

The complete standard can be found at [1], with Updates at [1].