Telephone numbers in Spain

The Spanish telephone numbering plan is the allocation of telephone numbers in Spain. It was previously regulated by the Comisión del Mercado de las Telecomunicaciones (CMT), but is now regulated by the Comisión Nacional de los Mercados y la Competencia (CNMC).
Before 1998, local telephone calls could be made using only the subscriber's number without the area code, while the trunk code '9' was omitted when calling from outside Spain, e.g.:
International calls were made by dialling the international access code 07, waiting for a tone, and then dialling the country code. However, calls to Gibraltar were made using the prefix '956' for the province of Cádiz, followed by the digit '7', instead of the country code +350, e.g.:
Similarly, calls to Andorra were made using the prefix '973' for the province of Lleida followed by the digit '8', e.g.:
It was also possible to call Andorra from other countries via Spain using the prefix +34 738 instead of via France using the prefix +33 628. However, on 17 December 1994, Andorra adopted its own country code +376, with '8' being added to the subscriber's five-digit number, meaning that international dialling was required from Spain, e.g.:
Mobile phone numbers began with the prefix '90x' or '9x9', e.g.:
On 1 December 1998, Spain changed to a new telephone numbering plan. Under the closed numbering plan with the trunk prefix '9' being incorporated into the subscriber's number, so that a nine-digit number was used for all calls, e.g.:
Mobiles similarly changed, and were now prefixed with the digit '6':
New numbering ranges have also since been introduced:
Spain's international access code also changed from 07 to 00, but this did not affect dialling arrangements for calls to Gibraltar, with the 9567 prefix being retained. In addition, it was possible to call Gibraltar from other countries via Spain using the prefix +34 9567. However, on 10 February 2007, Spain adopted the international prefix 00350 for all calls to Gibraltar, thereby bringing end to a dispute between Gibraltar and Spain. Consequently, numbers with the prefix 9567 were withdrawn from use, and made available for reassignment to subscribers in Spain.
Mobile phone numbers begin with 6 or 7, followed by 8 digits (6xx xxx xxx or 7yx xxx xxx), where y can be 1 to 9, not 0 (zero). Note, numbers starting with 70 are personal numbers which can be re-directed to any other number by the personal owner. Since the blocks of mobile phone numbers are allocated according to demand from the service providers, there is not necessarily a unique service provider indicated by the three digit numbering group (6xx or 7yx).
In October 2009, new legislation was approved to grant the allocation of up to 80,000,000 new numbers beginning with number 7 (followed by 8 digits) to supplement the existing group beginning with number 6 (followed by 8 digits); due to the lack of available numbers to satisfy the increasing demand for mobile phone and other mobile / wireless services.
Personal numbers are used as redirection IDs. The owner of a personal number may request, for example, any call to its personal number to be redirected to any other number it wants.
Personal numbers begin with 5, followed by 8 digits.