Countries API - CountriesDB

China

ISO 3166-1 country codes and official ISO 3166-2 subdivisions for China. Use them in forms, validation, and CountriesDB integrations.

About China codes

Need China (CN) 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 34 official ISO 3166-2 subdivisions for China. These are the same codes CountriesDB serves through widgets and the Backend Data API.

For production, use the CountriesDB country/subdivision widget or fetch China from the Data API and validate codes server-side instead of copying values from this page.

ISO codes

  • Alpha-2CN
  • Alpha-3CHN
  • Numeric156
  • Independenttrue
  • StatusOfficially assigned

Official subdivisions (34)

Official ISO 3166-2 codes for China. Use these values in region/state selects and server-side validation, not informal or marketing region names.

CodeNameType
CN-AHAnhui Shengprovince
CN-BJBeijing Shimunicipality
CN-CQChongqing Shimunicipality
CN-FJFujian Shengprovince
CN-GSGansu Shengprovince
CN-GDGuangdong Shengprovince
CN-GXGuangxi Zhuangzu Zizhiquautonomous region
CN-GZGuizhou Shengprovince
CN-HIHainan Shengprovince
CN-HEHebei Shengprovince
CN-HLHeilongjiang Shengprovince
CN-HAHenan Shengprovince
CN-HKHong Kong SARspecial administrative region
CN-HBHubei Shengprovince
CN-HNHunan Shengprovince
CN-JSJiangsu Shengprovince
CN-JXJiangxi Shengprovince
CN-JLJilin Shengprovince
CN-LNLiaoning Shengprovince
CN-MOMacao SARspecial administrative region
CN-NMNei Mongol Zizhiquautonomous region
CN-NXNingxia Huizu Zizhiquautonomous region
CN-QHQinghai Shengprovince
CN-SNShaanxi Shengprovince
CN-SDShandong Shengprovince
CN-SHShanghai Shimunicipality
CN-SXShanxi Shengprovince
CN-SCSichuan Shengprovince
CN-TWTaiwan Shengprovince
CN-TJTianjin Shimunicipality
CN-XJXinjiang Uygur Zizhiquautonomous region
CN-XZXizang Zizhiquautonomous region
CN-YNYunnan Shengprovince
CN-ZJZhejiang Shengprovince

Frequently asked questions

What is the ISO 3166-1 code for China?
China uses ISO 3166-1 alpha-2 CN, alpha-3 CHN, and numeric 156. These codes show up in forms, shipping, banking, and APIs.
How many official ISO 3166-2 subdivisions does China have?
CountriesDB lists 34 official ISO 3166-2 subdivisions for China (states, provinces, regions, or equivalent). Use them when you validate region selects and shipping zones.
How do I use China country and subdivision data in a form?
Use the CountriesDB widget or Data API to fill country and subdivision selects for China, then validate submitted codes with the Validation API so alpha-2 and ISO 3166-2 values stay consistent.

Use China in your app

Add CountriesDB country and subdivision selects with the widget docs, or call the Backend Data API for China (CN) and validate submissions with the Validation API. Guides stay in sync with the same dataset your project keys already use. widget docs.