Postal codes in Spain

Spanish postal codes were introduced on 1 July 1984,[1] when the Sociedad Estatal de Correos y Telégrafos introduced automated mail sorting. They consist of five numerical digits,[2] where the first two digits, ranging 01 to 52, correspond either to one of the 50 provinces of Spain or to one of the two autonomous cities on the African coast.

Two-digit prefixesEdit

Two-digit postcode areas

The first two digits of a Spanish postal code identify the province or autonomous city it belongs to. The numbers were assigned to the 50 provinces of Spain ordered alphabetically at the time of implementation.[1] The official names of some of the provinces have since changed, either to the regional language version of the name (e.g. from the Spanish Guipúzcoa to the Basque Gipuzkoa) or to adopt the name of the autonomous community instead of the provincial capital (e.g. Santander to Cantabria). In these cases, the originally assigned code has been maintained, resulting in some exceptions to the alphabetical order. In addition, Ceuta and Melilla were originally included within the postal areas of Cádiz and Málaga respectively; in 1995 they were assigned their own codes and hence ended up at the end of the list.[3]

The list below includes all 52 two-digit prefixes assigned to the 50 provinces and two autonomous cities. Included in brackets are the names of the provinces that were used for alphabetical sorting at the time of implementation, if different from the current name used in English.

Following digitsEdit

The third digit of a Spanish postal code is used to identify major cities or basic itineraries.[4] A zero denotes a provincial capital,[1] e.g. San Sebastián, as capital of the province of Gipuzkoa, uses the postal code 200xx.

The fourth and fifth digits are used to identify delivery areas, route itineraries or rural link itineraries.[4]

Some codes are reserved for special use at the province capital:

  • 070: official use by Correos
  • 071: to address state agencies at the given province
  • 080: P.O. boxes and mail lists


  1. ^ a b c "Correos implanta en España el código postal" [Correos introduces postal codes in Spain]. El País (in Spanish). 2 July 1984. Retrieved 24 January 2020.
  2. ^ "Postal Code Format". FedEx. Retrieved 27 January 2020.
  3. ^ "Orden de 27 de septiembre de 1995 sobre la modificación del código postal de las ciudades de Ceuta y Melilla" [Order of 27 September 1995 on the modification of the postal codes of the cities of Ceuta and Melilla]. BOE (in Spanish). 4 October 1995. Retrieved 27 January 2020.
  4. ^ a b "Orden de 23 de enero de 1984 de desarrollo del Real Decreto 1794/1982, de 9 de julio, por el que se establece el Código Postal para la clasificación de la correspondencia" [Order of 23 January 1984 to further develop Royal Decree 1794/1982, of 9 July, by which postal codes are set for the classification of correspondence]. BOE (in Spanish). 10 February 1984. Retrieved 27 January 2020.

External linksEdit