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
Adana
TR01
Adıyaman
TR02
Afyon
TR03
Ağrı
TR04
Amasya
TR05
Ankara
TR06
Antalya
TR07
Artvin
TR08
Aydın
TR09
Balıkesir
TR10
Bilecik
TR11
Bingöl
TR12
Bitlis
TR13
Bolu
TR14
Burdur
TR15
Bursa
TR16
Çanakkale
TR17
Çankırı
TR18
Çorum
TR19
Denizli
TR20
Diyarbakır
TR21
Edirne
TR22
Elazığ
TR23
Erzincan
TR24
Erzurum
TR25
Eskişehir
TR26
Gaziantep
TR27
Giresun
TR28
Gümüşhane
TR29
Hakkari
TR30
Hatay
TR31
Isparta
TR32
İçel
TR33
İstanbul
TR34
İzmir
TR35
Kars
TR36
Kastamonu
TR37
Kayseri
TR38
Kırklareli
TR39
Kırşehir
TR40
Kocaeli
TR41
Konya
TR42
Kütahya
TR43
Malatya
TR44
Manisa
TR45
Kahramanmaraş
TR46
Mardin
TR47
Muğla
TR48
Muş
TR49
Nevşehir
TR50
Niğde
TR51
Ordu
TR52
Rize
TR53
Sakarya
TR54
Samsun
TR55
Siirt
TR56
Sinop
TR57
Sivas
TR58
Tekirdağ
TR59
Tokat
TR60
Trabzon
TR61
Tunceli
TR62
Şanlıurfa
TR63
Uşak
TR64
Van
TR65
Yozgat
TR66
Zonguldak
TR67
Aksaray
TR68
Bayburt
TR69
Karaman
TR70
Kırıkkale
TR71
Batman
TR72
Şırnak
TR73
Bartın
TR74
Ardahan
TR75
Iğdır
TR76
Yalova
TR77
Karabük
TR78
Kilis
TR79
Osmaniye
TR80
Düzce
TR81