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:

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:

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 Flag of Andalucía.svg Andalucía Andalusia autonomous community
ES-AR Flag of Aragon.svg Aragón Aragon autonomous community
ES-AS Flag of Asturias.svg Asturias, Principado de Principality of Asturias autonomous community
ES-CN Flag of the Canary Islands.svg Canarias Canary Islands autonomous community
ES-CB Flag of Cantabria.svg Cantabria Cantabria autonomous community
ES-CL Flag of Castile and León.svg Castilla y León Castile and León autonomous community
ES-CM Bandera Castilla-La Mancha.svg Castilla-La Mancha Castile-La Mancha autonomous community
ES-CT Flag of Catalonia.svg Catalunya (ca) [Cataluña] Catalonia autonomous community
ES-CE Flag Ceuta.svg Ceuta Ceuta autonomous city in North Africa
ES-EX Flag of Extremadura with COA.svg Extremadura Extremadura autonomous community
ES-GA Flag of Galicia.svg Galicia (gl) [Galicia] Galicia autonomous community
ES-IB Flag of the Balearic Islands.svg Illes Balears (ca) [Islas Baleares] Balearic Islands autonomous community
ES-RI Flag of La Rioja (with coat of arms).svg La Rioja La Rioja autonomous community
ES-MD Flag of the Community of Madrid.svg Madrid, Comunidad de Community of Madrid autonomous community
ES-ML Flag of Melilla.svg Melilla Melilla autonomous city in North Africa
ES-MC Flag of the Region of Murcia.svg Murcia, Región de Region of Murcia autonomous community
ES-NC Bandera de Navarra.svg Navarra, Comunidad Foral de
Nafarroako Foru Komunitatea (eu)
Chartered Community of Navarre autonomous community
ES-PV Flag of the Basque Country.svg País Vasco
Euskal Herria (eu)
Basque Country autonomous community
ES-VC Flag of the Valencian Community (2x3).svg Valenciana, Comunidad
Valenciana, Comunitat (ca)
Valencian Community autonomous community
Notes
  1. ↑ Name is in Spanish (es) except where noted.
  2. ↑ For reference only, English name not included in the ISO 3166-2 standard.

Provinces

Code Subdivision name (es) In autonomous community
ES-C A Coruña (opens on Wikipedia) (gl) [La Coruña] GA
ES-VI Álava (opens on Wikipedia)
Araba (eu)
PV
ES-AB Albacete (opens on Wikipedia) CM
ES-A Alicante (opens on Wikipedia)
Alacant (ca)
VC
ES-AL Almería (opens on Wikipedia) AN
ES-O Asturias (opens on Wikipedia) AS
ES-AV Ávila (opens on Wikipedia) CL
ES-BA Badajoz (opens on Wikipedia) EX
ES-B Barcelona (opens on Wikipedia) (ca) [Barcelona] CT
ES-BI Bizkaia (opens on Wikipedia) (eu) PV
ES-BU Burgos (opens on Wikipedia) CL
ES-CC Cáceres (opens on Wikipedia) EX
ES-CA Cádiz AN
ES-S Cantabria CB
ES-CS Castellón (opens on Wikipedia)
Castelló (ca)
VC
ES-CR Ciudad Real (opens on Wikipedia) CM
ES-CO Córdoba (opens on Wikipedia) AN
ES-CU Cuenca (opens on Wikipedia) CM
ES-SS Gipuzkoa (opens on Wikipedia) (eu) PV
ES-GI Girona (opens on Wikipedia) (ca) [Gerona] CT
ES-GR Granada (opens on Wikipedia) AN
ES-GU Guadalajara (opens on Wikipedia) CM
ES-H Huelva (opens on Wikipedia) AN
ES-HU Huesca (opens on Wikipedia) AR
ES-PM Illes Balears (ca) [Islas Baleares] IB
ES-J Jaén (opens on Wikipedia) AN
ES-LO La Rioja RI
ES-GC Las Palmas CN
ES-LE León (opens on Wikipedia) CL
ES-L Lleida (opens on Wikipedia) (ca) [Lérida] CT
ES-LU Lugo (opens on Wikipedia) (gl) [Lugo] GA
ES-M Madrid MD
ES-MA Málaga AN
ES-MU Murcia MC
ES-NA Navarra
Nafarroa (eu)
NC
ES-OR Ourense (opens on Wikipedia) (gl) [Orense] GA
ES-P Palencia (opens on Wikipedia) CL
ES-PO Pontevedra (opens on Wikipedia) (gl) [Pontevedra] GA
ES-SA Salamanca (opens on Wikipedia) CL
ES-TF Santa Cruz de Tenerife CN
ES-SG Segovia (opens on Wikipedia) CL
ES-SE Sevilla (opens on Wikipedia) AN
ES-SO Soria (opens on Wikipedia) CL
ES-T Tarragona (opens on Wikipedia) (ca) [Tarragona] CT
ES-TE Teruel (opens on Wikipedia) AR
ES-TO Toledo (opens on Wikipedia) CM
ES-V Valencia (opens on Wikipedia)
València (ca)
VC
ES-VA Valladolid (opens on Wikipedia) CL
ES-ZA Zamora (opens on Wikipedia) CL
ES-Z Zaragoza (opens on Wikipedia) AR

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)