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
Agrigento
AG
Alessandria
AL
Ancona
AN
Aosta
AO
Arezzo
AR
Ascoli Piceno
AP
Asti
AT
Avellino
AV
Bari
BA
Barletta-Andria-Trani
BT
Belluno
BL
Benevento
BN
Bergamo
BG
Biella
BI
Bologna
BO
Bolzano
BZ
Brescia
BS
Brindisi
BR
Cagliari
CA
Caltanissetta
CL
Campobasso
CB
Carbonia-Iglesias
CI
Caserta
CE
Catania
CT
Catanzaro
CZ
Chieti
CH
Como
CO
Cosenza
CS
Cremona
CR
Crotone
KR
Cuneo
CN
Enna
EN
Fermo
FM
Ferrara
FE
Firenze
FI
Foggia
FG
Forlì-Cesena
FC
Frosinone
FR
Genova
GE
Gorizia
GO
Grosseto
GR
Imperia
IM
Isernia
IS
La Spezia
SP
L'Aquila
AQ
Latina
LT
Lecce
LE
Lecco
LC
Livorno
LI
Lodi
LO
Lucca
LU
Macerata
MC
Mantova
MN
Massa-Carrara
MS
Matera
MT
Messina
ME
Milano
MI
Modena
MO
Monza e della Brianza
MB
Napoli
NA
Novara
NO
Nuoro
NU
Olbia-Tempio
OT
Oristano
OR
Padova
PD
Palermo
PA
Parma
PR
Pavia
PV
Perugia
PG
Pesaro e Urbino
PU
Pescara
PE
Piacenza
PC
Pisa
PI
Pistoia
PT
Pordenone
PN
Potenza
PZ
Prato
PO
Ragusa
RG
Ravenna
RA
Reggio Calabria
RC
Reggio Emilia
RE
Rieti
RI
Rimini
RN
Roma
RM
Rovigo
RO
Salerno
SA
Medio Campidano
VS
Sassari
SS
Savona
SV
Siena
SI
Siracusa
SR
Sondrio
SO
Taranto
TA
Teramo
TE
Terni
TR
Torino
TO
Ogliastra
OG
Trapani
TP
Trento
TN
Treviso
TV
Trieste
TS
Udine
UD
Varese
VA
Venezia
VE
Verbano-Cusio-Ossola
VB
Vercelli
VC
Verona
VR
Vibo Valentia
VV
Vicenza
VI
Viterbo
VT