ISO 3166-2:ES
Entry for Spain in ISO 3166-2
Read the original on Wikipedia ↗ Last updated from Wikipedia: 29 November 2026
ISO 3166-2:ES is the entry for Spain in ISO 3166-2 (opens on Wikipedia), part of the ISO 3166 standard (opens on Wikipedia) published by the International Organization for Standardization (ISO), which defines codes (opens on Wikipedia) for the names of the principal subdivisions (opens on Wikipedia) (e.g., provinces (opens on Wikipedia) or states (opens on Wikipedia)) of all countries coded in ISO 3166-1.
Currently for Spain, ISO 3166-2 codes are defined for two levels of subdivisions:
Each code consists of two parts, separated by a hyphen. The first part is ES, the ISO 3166-1 alpha-2 code of Spain. The second part is one or two letters. For the provinces, the letters were originally used in vehicle registration plates (opens on Wikipedia). The codes for the following provinces are based on the names of their capital cities rather than their own names:
- Álava/Araba (opens on Wikipedia) (ES-VI): Vitoria
- Asturias (opens on Wikipedia) (ES-O): Oviedo
- Illes Balears (ES-PM): Palma
- Cantabria (ES-S): Santander
- Gipuzkoa (opens on Wikipedia) (ES-SS): San Sebastián (opens on Wikipedia)
- La Rioja (ES-LO): Logroño
- Las Palmas (ES-GC): Las Palmas de Gran Canaria
- Bizkaia (opens on Wikipedia) (ES-BI): Bilbao (opens on Wikipedia)
Subdivision names are listed as in the ISO 3166-2 standard published by the ISO 3166 Maintenance Agency (ISO 3166/MA).
ISO 639-1 (opens on Wikipedia) codes are used to represent subdivision names in the following administrative languages:
- (es): Spanish
- (eu): Basque (opens on Wikipedia)
- (ca): Catalan
- (gl): Galician (opens on Wikipedia)
Except where noted, the names given are in Spanish (Castilian). In autonomous communities and provinces where any of the regional languages is the sole official language of toponymy, the Spanish name is given in square brackets for information. In subdivisions where both a regional language and Spanish are co-official languages of toponymy, both names are listed vertically.
Autonomous communities; autonomous cities in Spain
| Code | Subdivision name (es)[note 1] | Subdivision name (en)[note 2] | Subdivision category |
|---|---|---|---|
| ES-AN | Andalusia | autonomous community | |
| ES-AR | Aragon | autonomous community | |
| ES-AS | Principality of Asturias | autonomous community | |
| ES-CN | Canary Islands | autonomous community | |
| ES-CB | Cantabria | autonomous community | |
| ES-CL | Castile and León | autonomous community | |
| ES-CM | Castile-La Mancha | autonomous community | |
| ES-CT | Catalonia | autonomous community | |
| ES-CE | Ceuta | autonomous city in North Africa | |
| ES-EX | Extremadura | autonomous community | |
| ES-GA | Galicia | autonomous community | |
| ES-IB | Balearic Islands | autonomous community | |
| ES-RI | La Rioja | autonomous community | |
| ES-MD | Community of Madrid | autonomous community | |
| ES-ML | Melilla | autonomous city in North Africa | |
| ES-MC | Region of Murcia | autonomous community | |
| ES-NC | Nafarroako Foru Komunitatea (eu) |
Chartered Community of Navarre | autonomous community |
| ES-PV | Euskal Herria (eu) |
Basque Country | autonomous community |
| ES-VC | Valenciana, Comunitat (ca) |
Valencian Community | autonomous community |
- Notes
Provinces
The following changes to the entry have been announced in newsletters by the ISO 3166/MA since the first publication of ISO 3166-2 in 1998:
| Newsletter | Date issued | Description of change in newsletter | Code/Subdivision change |
|---|---|---|---|
| Newsletter I-1 | 2000-06-21 | Code elements for autonomous communities withdrawn to correct the erroneous duplicate coding of the whole Spanish territory (see 4.1.1 of ISO 3166-2). Introduction of a third column stating a regional level of subdivision which is not coded (see 4.4. c) of ISO 3166-2). Introduction of 2 alternative name forms. Correction of 1 spelling error | |
| Newsletter I-2 | 2002-05-21 | Spelling correction and update in header information. Four corrections in spellings of subdivisions | Codes: Illes Balears: ES-PM → ES-IB (to correct duplicate use) ES-GE Gerona → ES-GI Girona (opens on Wikipedia) |
| Newsletter I-4 | 2002-12-10 | Error correction: Regional subdivision indicator corrected in ES-PM | |
| Newsletter II-1 | 2010-02-03 (corrected 2010-02-19) |
Addition of the country code prefix as the first code element, reallocation of 3166-2 alpha-2 codes to avoid duplication, update of the administrative structure, addition of names in administrative languages | Codes: (to correct duplicate use) Asturias, Principado de: ES-O → ES-AS Cantabria (autonomous community): ES-S → ES-CB La Rioja: (autonomous community): ES-LO → ES-RI Madrid, Comunidad de: ES-M → ES-MD Murcia, Región de: ES-MU → ES-MC Navarra, Comunidad Foral de: ES-NA → ES-NC |
| Online Browsing Platform (OBP) | 2020-11-24 | Change of subdivision name of ES-PM; Update List Source; Correction of the Code Source |
Loading “Special territories”…
Loading “See also”…
Loading “External links”…
Image credits (19)
- Flag of Andalucía.svg — Miguillen This picture was made for the Taller de Heráldica y vexilología of Spanish Wikipedia., CC BY-SA 4.0, via Wikimedia Commons
- Flag of Aragon.svg, CC BY-SA 3.0, via Wikimedia Commons
- Flag of Asturias.svg — Banderas, Public domain, via Wikimedia Commons
- Flag of the Canary Islands.svg — No machine-readable author provided. Zirland assumed (based on copyright claims)., Public domain, via Wikimedia Commons
- Flag of Cantabria.svg — HansenBCN, CC BY-SA 2.5, via Wikimedia Commons
- Flag of Castile and León.svg — Rastrojo (D•ES), CC BY 3.0, via Wikimedia Commons
- Bandera Castilla-La Mancha.svg — Valadrem (http://valadrem.blogspot.com), Public domain, via Wikimedia Commons
- Flag of Catalonia.svg — Motoroil, Public domain, via Wikimedia Commons
- Flag Ceuta.svg — Ulaidh, CC BY-SA 4.0, via Wikimedia Commons
- Flag of Extremadura with COA.svg — BetacommandBot, Public domain, via Wikimedia Commons
- Flag of Galicia.svg — Pedro A. Gracia Fajardo, Public domain, via Wikimedia Commons
- Flag of the Balearic Islands.svg, CC0, via Wikimedia Commons
- Flag of La Rioja (with coat of arms).svg — jynus, CC BY 2.5, via Wikimedia Commons
- Flag of the Community of Madrid.svg — See file history, CC0, via Wikimedia Commons
- Flag of Melilla.svg, CC BY-SA 3.0, via Wikimedia Commons
- Flag of the Region of Murcia.svg, CC0, via Wikimedia Commons
- Bandera de Navarra.svg — Miguillen, Public domain, via Wikimedia Commons
- Flag of the Basque Country.svg — Daniele Schirmo aka Frankie688, CC BY-SA 2.5, via Wikimedia Commons
- Flag of the Valencian Community (2x3).svg — Mutxamel, Public domain, via Wikimedia Commons