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.

State
State Code
Alabama
AL
Alaska
AK
Arizona
AZ
Arkansas
AR
California
CA
Colorado
CO
Connecticut
CT
Delaware
DE
District Of Columbia
DC
Florida
FL
Georgia
GA
Hawaii
HI
Idaho
ID
Illinois
IL
Indiana
IN
Iowa
IA
Kansas
KS
Kentucky
KY
Louisiana
LA
Maine
ME
Maryland
MD
Massachusetts
MA
Michigan
MI
Minnesota
MN
Mississippi
MS
Missouri
MO
Montana
MT
Nebraska
NE
Nevada
NV
New Hampshire
NH
New Jersey
NJ
New Mexico
NM
New York
NY
North Carolina
NC
North Dakota
ND
Ohio
OH
Oklahoma
OK
Oregon
OR
Pennsylvania
PA
Rhode Island
RI
South Carolina
SC
South Dakota
SD
Tennessee
TN
Texas
TX
Utah
UT
Vermont
VT
Virginia
VA
Washington
WA
West Virginia
WV
Wisconsin
WI
Wyoming
WY
Armed Forces (AA)
AA
Armed Forces (AE)
AE
Armed Forces (AP)
AP
American Samoa
AS
Guam
GU
Northern Mariana Islands
MP
Puerto Rico
PR
US Minor Outlying Islands
UM
US Virgin Islands
VI