Taiwan
ISO 3166-1 country codes and official ISO 3166-2 subdivisions for Taiwan. Use them in forms, validation, and CountriesDB integrations.
About Taiwan codes
Need Taiwan (TW) for a checkout form, shipping zone, or backend validation? This page summarizes the ISO 3166-1 country codes and official subdivisions developers use with CountriesDB.
This guide lists 22 official ISO 3166-2 subdivisions for Taiwan. These are the same codes CountriesDB serves through widgets and the Backend Data API.
For production, use the CountriesDB country/subdivision widget or fetch Taiwan from the Data API and validate codes server-side instead of copying values from this page.
ISO codes
Official subdivisions (22)
Official ISO 3166-2 codes for Taiwan. Use these values in region/state selects and server-side validation, not informal or marketing region names.
| Code | Name | Type |
|---|---|---|
| TW-CHA | Changhua | county |
| TW-CYI | Chiayi | city |
| TW-CYQ | Chiayi | county |
| TW-HSZ | Hsinchu | city |
| TW-HSQ | Hsinchu | county |
| TW-HUA | Hualien | county |
| TW-KHH | Kaohsiung | special municipality |
| TW-KEE | Keelung | city |
| TW-KIN | Kinmen | county |
| TW-LIE | Lienchiang | county |
| TW-MIA | Miaoli | county |
| TW-NAN | Nantou | county |
| TW-NWT | New Taipei | special municipality |
| TW-PEN | Penghu | county |
| TW-PIF | Pingtung | county |
| TW-TXG | Taichung | special municipality |
| TW-TNN | Tainan | special municipality |
| TW-TPE | Taipei | special municipality |
| TW-TTT | Taitung | county |
| TW-TAO | Taoyuan | special municipality |
| TW-ILA | Yilan | county |
| TW-YUN | Yunlin | county |
Frequently asked questions
- What is the ISO 3166-1 code for Taiwan?
- Taiwan uses ISO 3166-1 alpha-2 TW, alpha-3 TWN, and numeric 158. These codes show up in forms, shipping, banking, and APIs.
- How many official ISO 3166-2 subdivisions does Taiwan have?
- CountriesDB lists 22 official ISO 3166-2 subdivisions for Taiwan (states, provinces, regions, or equivalent). Use them when you validate region selects and shipping zones.
- How do I use Taiwan country and subdivision data in a form?
- Use the CountriesDB widget or Data API to fill country and subdivision selects for Taiwan, then validate submitted codes with the Validation API so alpha-2 and ISO 3166-2 values stay consistent.
Use Taiwan in your app
Add CountriesDB country and subdivision selects with the widget docs, or call the Backend Data API for Taiwan (TW) and validate submissions with the Validation API. Guides stay in sync with the same dataset your project keys already use. widget docs.