WooCommerce Country Codes & State Codes List

Here is a list of WooCommerce country code and state code data. This data was extracted directly from the WooCommerce plugin and therefore, can be used for tax rate classes and maybe other WooCommerce related plugins that may require a state code or country code.

Note that while the help text mentions that we should use "2 digit state codes", I have found that some countries have states codes that are longer than 2 digits. I have tested tax rates for Peru with the 3 letter state code "PAS" and it worked.

I believe that my tax calculations wouldn't worked without that 3 letter code. While my test passed, I still recommend testing such codes prior to using them on a production site just to be sure.

Country
Country Code
Afghanistan
AF
Åland Islands
AX
Albania
AL
Algeria
DZ
Andorra
AD
Angola
AO
Anguilla
AI
Antarctica
AQ
Antigua and Barbuda
AG
Argentina
AR
Armenia
AM
Aruba
AW
Australia (Show States)
AU
Austria
AT
Azerbaijan
AZ
Bahamas
BS
Bahrain
BH
Bangladesh (Show States)
BD
Barbados
BB
Belarus
BY
Belgium
BE
Belau
PW
Belize
BZ
Benin
BJ
Bermuda
BM
Bhutan
BT
Bolivia
BO
Bonaire, Saint Eustatius and Saba
BQ
Bosnia and Herzegovina
BA
Botswana
BW
Bouvet Island
BV
Brazil (Show States)
BR
British Indian Ocean Territory
IO
British Virgin Islands
VG
Brunei
BN
Bulgaria (Show States)
BG
Burkina Faso
BF
Burundi
BI
Cambodia
KH
Cameroon
CM
Canada (Show States)
CA
Cape Verde
CV
Cayman Islands
KY
Central African Republic
CF
Chad
TD
Chile
CL
China (Show States)
CN
Christmas Island
CX
Cocos (Keeling) Islands
CC
Colombia
CO
Comoros
KM
Congo (Brazzaville)
CG
Congo (Kinshasa)
CD
Cook Islands
CK
Costa Rica
CR
Croatia
HR
Cuba
CU
CuraÇao
CW
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
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
Guatemala
GT
Guernsey
GG
Guinea
GN
Guinea-Bissau
GW
Guyana
GY
Haiti
HT
Heard Island and McDonald Islands
HM
Honduras
HN
Hong Kong (Show States)
HK
Hungary (Show States)
HU
Iceland
IS
India (Show States)
IN
Indonesia (Show States)
ID
Iran
IR
Iraq
IQ
Republic of Ireland
IE
Isle of Man
IM
Israel
IL
Italy (Show States)
IT
Ivory Coast
CI
Jamaica
JM
Japan (Show States)
JP
Jersey
JE
Jordan
JO
Kazakhstan
KZ
Kenya
KE
Kiribati
KI
Kuwait
KW
Kyrgyzstan
KG
Laos
LA
Latvia
LV
Lebanon
LB
Lesotho
LS
Liberia
LR
Libya
LY
Liechtenstein
LI
Lithuania
LT
Luxembourg
LU
Macao S.A.R., China
MO
Macedonia
MK
Madagascar
MG
Malawi
MW
Malaysia (Show States)
MY
Maldives
MV
Mali
ML
Malta
MT
Marshall Islands
MH
Martinique
MQ
Mauritania
MR
Mauritius
MU
Mayotte
YT
Mexico
MX
Micronesia
FM
Moldova
MD
Monaco
MC
Mongolia
MN
Montenegro
ME
Montserrat
MS
Morocco
MA
Mozambique
MZ
Myanmar
MM
Namibia
NA
Nauru
NR
Nepal
NP
Netherlands
NL
Netherlands Antilles
AN
New Caledonia
NC
New Zealand (Show States)
NZ
Nicaragua
NI
Niger
NE
Nigeria
NG
Niue
NU
Norfolk Island
NF
North Korea
KP
Norway
NO
Oman
OM
Pakistan
PK
Palestinian Territory
PS
Panama
PA
Papua New Guinea
PG
Paraguay
PY
PE
Philippines
PH
Pitcairn
PN
Poland
PL
Portugal
PT
Qatar
QA
Reunion
RE
Romania
RO
Russia
RU
Rwanda
RW
Saint Barthélemy
BL
Saint Helena
SH
Saint Kitts and Nevis
KN
Saint Lucia
LC
Saint Martin (French part)
MF
Saint Martin (Dutch part)
SX
Saint Pierre and Miquelon
PM
Saint Vincent and the Grenadines
VC
San Marino
SM
São Tomé and Príncipe
ST
Saudi Arabia
SA
Senegal
SN
Serbia
RS
Seychelles
SC
Sierra Leone
SL
Singapore
SG
Slovakia
SK
Slovenia
SI
Solomon Islands
SB
Somalia
SO
South Africa (Show States)
ZA
South Georgia/Sandwich Islands
GS
South Korea
KR
South Sudan
SS
Spain (Show States)
ES
Sri Lanka
LK
Sudan
SD
Suriname
SR
Svalbard and Jan Mayen
SJ
Swaziland
SZ
Sweden
SE
Switzerland
CH
Syria
SY
Taiwan
TW
Tajikistan
TJ
Tanzania
TZ
Thailand (Show States)
TH
Timor-Leste
TL
Togo
TG
Tokelau
TK
Tonga
TO
Trinidad and Tobago
TT
Tunisia
TN
Turkey (Show States)
TR
Turkmenistan
TM
Turks and Caicos Islands
TC
Tuvalu
TV
Uganda
UG
Ukraine
UA
United Arab Emirates
AE
United Kingdom (UK)
GB
United States (US) (Show States)
US
Uruguay
UY
Uzbekistan
UZ
Vanuatu
VU
Vatican
VA
Venezuela
VE
Vietnam
VN
Wallis and Futuna
WF
Western Sahara
EH
Western Samoa
WS
Yemen
YE
Zambia
ZM
Zimbabwe
ZW

Add new comment