Hungary
ISO 3166-1 country codes and official ISO 3166-2 subdivisions for Hungary. Use them in forms, validation, and CountriesDB integrations.
About Hungary codes
Need Hungary (HU) 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 43 official ISO 3166-2 subdivisions for Hungary. These are the same codes CountriesDB serves through widgets and the Backend Data API.
For production, use the CountriesDB country/subdivision widget or fetch Hungary from the Data API and validate codes server-side instead of copying values from this page.
ISO codes
Official subdivisions (43)
Official ISO 3166-2 codes for Hungary. Use these values in region/state selects and server-side validation, not informal or marketing region names.
| Code | Name | Type |
|---|---|---|
| HU-BK | Bács-Kiskun | county |
| HU-BA | Baranya | county |
| HU-BE | Békés | county |
| HU-BC | Békéscsaba | city with county rights |
| HU-BZ | Borsod-Abaúj-Zemplén | county |
| HU-BU | Budapest | capital city |
| HU-CS | Csongrád-Csanád | county |
| HU-DE | Debrecen | city with county rights |
| HU-DU | Dunaújváros | city with county rights |
| HU-EG | Eger | city with county rights |
| HU-ER | Érd | city with county rights |
| HU-FE | Fejér | county |
| HU-GY | Győr | city with county rights |
| HU-GS | Győr-Moson-Sopron | county |
| HU-HB | Hajdú-Bihar | county |
| HU-HE | Heves | county |
| HU-HV | Hódmezővásárhely | city with county rights |
| HU-JN | Jász-Nagykun-Szolnok | county |
| HU-KV | Kaposvár | city with county rights |
| HU-KM | Kecskemét | city with county rights |
| HU-KE | Komárom-Esztergom | county |
| HU-MI | Miskolc | city with county rights |
| HU-NK | Nagykanizsa | city with county rights |
| HU-NO | Nógrád | county |
| HU-NY | Nyíregyháza | city with county rights |
| HU-PS | Pécs | city with county rights |
| HU-PE | Pest | county |
| HU-ST | Salgótarján | city with county rights |
| HU-SO | Somogy | county |
| HU-SN | Sopron | city with county rights |
| HU-SZ | Szabolcs-Szatmár-Bereg | county |
| HU-SD | Szeged | city with county rights |
| HU-SF | Székesfehérvár | city with county rights |
| HU-SS | Szekszárd | city with county rights |
| HU-SK | Szolnok | city with county rights |
| HU-SH | Szombathely | city with county rights |
| HU-TB | Tatabánya | city with county rights |
| HU-TO | Tolna | county |
| HU-VA | Vas | county |
| HU-VE | Veszprém | county |
| HU-VM | Veszprém | city with county rights |
| HU-ZA | Zala | county |
| HU-ZE | Zalaegerszeg | city with county rights |
Frequently asked questions
- What is the ISO 3166-1 code for Hungary?
- Hungary uses ISO 3166-1 alpha-2 HU, alpha-3 HUN, and numeric 348. These codes show up in forms, shipping, banking, and APIs.
- How many official ISO 3166-2 subdivisions does Hungary have?
- CountriesDB lists 43 official ISO 3166-2 subdivisions for Hungary (states, provinces, regions, or equivalent). Use them when you validate region selects and shipping zones.
- How do I use Hungary country and subdivision data in a form?
- Use the CountriesDB widget or Data API to fill country and subdivision selects for Hungary, then validate submitted codes with the Validation API so alpha-2 and ISO 3166-2 values stay consistent.
Use Hungary in your app
Add CountriesDB country and subdivision selects with the widget docs, or call the Backend Data API for Hungary (HU) and validate submissions with the Validation API. Guides stay in sync with the same dataset your project keys already use. widget docs.