Iran
ISO 3166-1 country codes and official ISO 3166-2 subdivisions for Iran. Use them in forms, validation, and CountriesDB integrations.
About Iran codes
Need Iran (IR) 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 31 official ISO 3166-2 subdivisions for Iran. These are the same codes CountriesDB serves through widgets and the Backend Data API.
For production, use the CountriesDB country/subdivision widget or fetch Iran from the Data API and validate codes server-side instead of copying values from this page.
ISO codes
Official subdivisions (31)
Official ISO 3166-2 codes for Iran. Use these values in region/state selects and server-side validation, not informal or marketing region names.
| Code | Name | Type |
|---|---|---|
| IR-30 | Alborz | province |
| IR-24 | Ardabīl | province |
| IR-04 | Āz̄ārbāyjān-e Ghārbī | province |
| IR-03 | Āz̄ārbāyjān-e Shārqī | province |
| IR-18 | Būshehr | province |
| IR-14 | Chahār Maḩāl va Bakhtīārī | province |
| IR-10 | Eşfahān | province |
| IR-07 | Fārs | province |
| IR-01 | Gīlān | province |
| IR-27 | Golestān | province |
| IR-13 | Hamadān | province |
| IR-22 | Hormozgān | province |
| IR-16 | Īlām | province |
| IR-08 | Kermān | province |
| IR-05 | Kermānshāh | province |
| IR-29 | Khorāsān-e Jonūbī | province |
| IR-09 | Khorāsān-e Raẕavī | province |
| IR-28 | Khorāsān-e Shomālī | province |
| IR-06 | Khūzestān | province |
| IR-17 | Kohgīlūyeh va Bowyer Aḩmad | province |
| IR-12 | Kordestān | province |
| IR-15 | Lorestān | province |
| IR-00 | Markazī | province |
| IR-02 | Māzandarān | province |
| IR-26 | Qazvīn | province |
| IR-25 | Qom | province |
| IR-20 | Semnān | province |
| IR-11 | Sīstān va Balūchestān | province |
| IR-23 | Tehrān | province |
| IR-21 | Yazd | province |
| IR-19 | Zanjān | province |
Frequently asked questions
- What is the ISO 3166-1 code for Iran?
- Iran uses ISO 3166-1 alpha-2 IR, alpha-3 IRN, and numeric 364. These codes show up in forms, shipping, banking, and APIs.
- How many official ISO 3166-2 subdivisions does Iran have?
- CountriesDB lists 31 official ISO 3166-2 subdivisions for Iran (states, provinces, regions, or equivalent). Use them when you validate region selects and shipping zones.
- How do I use Iran country and subdivision data in a form?
- Use the CountriesDB widget or Data API to fill country and subdivision selects for Iran, then validate submitted codes with the Validation API so alpha-2 and ISO 3166-2 values stay consistent.
Use Iran in your app
Add CountriesDB country and subdivision selects with the widget docs, or call the Backend Data API for Iran (IR) and validate submissions with the Validation API. Guides stay in sync with the same dataset your project keys already use. widget docs.