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
Bagerhat
BAG
Bandarban
BAN
Barguna
BAR
Barisal
BARI
Bhola
BHO
Bogra
BOG
Brahmanbaria
BRA
Chandpur
CHA
Chittagong
CHI
Chuadanga
CHU
Comilla
COM
Cox's Bazar
COX
Dhaka
DHA
Dinajpur
DIN
Faridpur
FAR
Feni
FEN
Gaibandha
GAI
Gazipur
GAZI
Gopalganj
GOP
Habiganj
HAB
Jamalpur
JAM
Jessore
JES
Jhalokati
JHA
Jhenaidah
JHE
Joypurhat
JOY
Khagrachhari
KHA
Khulna
KHU
Kishoreganj
KIS
Kurigram
KUR
Kushtia
KUS
Lakshmipur
LAK
Lalmonirhat
LAL
Madaripur
MAD
Magura
MAG
Manikganj
MAN
Meherpur
MEH
Moulvibazar
MOU
Munshiganj
MUN
Mymensingh
MYM
Naogaon
NAO
Narail
NAR
Narayanganj
NARG
Narsingdi
NARD
Natore
NAT
Nawabganj
NAW
Netrakona
NET
Nilphamari
NIL
Noakhali
NOA
Pabna
PAB
Panchagarh
PAN
Patuakhali
PAT
Pirojpur
PIR
Rajbari
RAJB
Rajshahi
RAJ
Rangamati
RAN
Rangpur
RANP
Satkhira
SAT
Shariatpur
SHA
Sherpur
SHE
Sirajganj
SIR
Sunamganj
SUN
Sylhet
SYL
Tangail
TAN
Thakurgaon
THA