ISO 3166-2:ES is the entry for Spain in ISO 3166-2, part of the ISO 3166 standard published by the International Organization for Standardization (ISO), which defines codes for the names of the principal subdivisions (e.g., provinces or states) 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. The codes for the following provinces are based on the names of their capital cities rather than their own names:
Subdivision names are listed as in the ISO 3166-2 standard published by the ISO 3166 Maintenance Agency (ISO 3166/MA).
ISO 639-1 codes are used to represent subdivision names in the following administrative languages:
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, the Spanish name is given in square brackets for information. In subdivisions where a regional language is official alongside Spanish, both names are listed vertically.
Autonomous communities; autonomous cities in Spain
- ^ Names are in Spanish (es) except where noted.
- ^ For reference only, English name not included in the ISO 3166-2 standard.
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:
||Description of change in newsletter
||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
||Spelling correction and update in header information. Four corrections in spellings of subdivisions
Illes Balears: ES-PM → ES-IB (to correct duplicate use)
ES-GE Gerona → ES-GI Girona
||Error correction: Regional subdivision indicator corrected in ES-PM
|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)
||Change of subdivision name of ES-PM; Update List Source; Correction of the Code Source
The following two areas not covered by European Union Customs arrangements are also exceptionally reserved ISO 3166-1 alpha-2 codes on the request of the World Customs Organization:
However, these codes do not correspond in any way to the ISO 3166-2 codes of the territories.