Afghanistan
ISO 3166-1 country codes and official ISO 3166-2 subdivisions for Afghanistan. Use them in forms, validation, and CountriesDB integrations.
About Afghanistan codes
Need Afghanistan (AF) 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 Afghanistan. These are the same codes CountriesDB serves through widgets and the Backend Data API.
For production, use the CountriesDB country/subdivision widget or fetch Afghanistan from the Data API and validate codes server-side instead of copying values from this page.
ISO codes
Official subdivisions (34)
Official ISO 3166-2 codes for Afghanistan. Use these values in region/state selects and server-side validation, not informal or marketing region names.
| Code | Name | Type |
|---|---|---|
| AF-BDS | Badakhshān | province |
| AF-BDG | Bādghīs | province |
| AF-BGL | Baghlān | province |
| AF-BAL | Balkh | province |
| AF-BAM | Bāmyān | province |
| AF-DAY | Dāykundī | province |
| AF-FRA | Farāh | province |
| AF-FYB | Fāryāb | province |
| AF-GHA | Ghaznī | province |
| AF-GHO | Ghōr | province |
| AF-HEL | Helmand | province |
| AF-HER | Herāt | province |
| AF-JOW | Jowzjān | province |
| AF-KAB | Kābul | province |
| AF-KAN | Kandahār | province |
| AF-KAP | Kāpīsā | province |
| AF-KHO | Khōst | province |
| AF-KNR | Kunaṟ | province |
| AF-KDZ | Kunduz | province |
| AF-LAG | Laghmān | province |
| AF-LOG | Lōgar | province |
| AF-NAN | Nangarhār | province |
| AF-NIM | Nīmrōz | province |
| AF-NUR | Nūristān | province |
| AF-PKA | Paktīkā | province |
| AF-PIA | Paktiyā | province |
| AF-PAN | Panjshayr | province |
| AF-PAR | Parwān | province |
| AF-SAM | Samangān | province |
| AF-SAR | Sar-e Pul | province |
| AF-TAK | Takhār | province |
| AF-URU | Uruzgān | province |
| AF-WAR | Wardak | province |
| AF-ZAB | Zābul | province |
Frequently asked questions
- What is the ISO 3166-1 code for Afghanistan?
- Afghanistan uses ISO 3166-1 alpha-2 AF, alpha-3 AFG, and numeric 004. These codes show up in forms, shipping, banking, and APIs.
- How many official ISO 3166-2 subdivisions does Afghanistan have?
- CountriesDB lists 34 official ISO 3166-2 subdivisions for Afghanistan (states, provinces, regions, or equivalent). Use them when you validate region selects and shipping zones.
- How do I use Afghanistan country and subdivision data in a form?
- Use the CountriesDB widget or Data API to fill country and subdivision selects for Afghanistan, then validate submitted codes with the Validation API so alpha-2 and ISO 3166-2 values stay consistent.
Use Afghanistan in your app
Add CountriesDB country and subdivision selects with the widget docs, or call the Backend Data API for Afghanistan (AF) and validate submissions with the Validation API. Guides stay in sync with the same dataset your project keys already use. widget docs.