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
Hokkaido
JP01
Aomori
JP02
Iwate
JP03
Miyagi
JP04
Akita
JP05
Yamagata
JP06
Fukushima
JP07
Ibaraki
JP08
Tochigi
JP09
Gunma
JP10
Saitama
JP11
Chiba
JP12
Tokyo
JP13
Kanagawa
JP14
Niigata
JP15
Toyama
JP16
Ishikawa
JP17
Fukui
JP18
Yamanashi
JP19
Nagano
JP20
Gifu
JP21
Shizuoka
JP22
Aichi
JP23
Mie
JP24
Shiga
JP25
Kyouto
JP26
Osaka
JP27
Hyougo
JP28
Nara
JP29
Wakayama
JP30
Tottori
JP31
Shimane
JP32
Okayama
JP33
Hiroshima
JP34
Yamaguchi
JP35
Tokushima
JP36
Kagawa
JP37
Ehime
JP38
Kochi
JP39
Fukuoka
JP40
Saga
JP41
Nagasaki
JP42
Kumamoto
JP43
Oita
JP44
Miyazaki
JP45
Kagoshima
JP46
Okinawa
JP47