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
Blagoevgrad
BG-01
Burgas
BG-02
Dobrich
BG-08
Gabrovo
BG-07
Haskovo
BG-26
Kardzhali
BG-09
Kyustendil
BG-10
Lovech
BG-11
Montana
BG-12
Pazardzhik
BG-13
Pernik
BG-14
Pleven
BG-15
Plovdiv
BG-16
Razgrad
BG-17
Ruse
BG-18
Shumen
BG-27
Silistra
BG-19
Sliven
BG-20
Smolyan
BG-21
Sofia
BG-23
Sofia-Grad
BG-22
Stara Zagora
BG-24
Targovishte
BG-25
Varna
BG-03
Veliko Tarnovo
BG-04
Vidin
BG-05
Vratsa
BG-06
Yambol
BG-28