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.:
xx[x] xx xx (within the same province) 9xx xxx xxx (within Spain) +34 xx xxx xxx (outside Spain)
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.:
7 xx xxx (from Cádiz) 956 7 xx xxx (from the rest of Spain)
Similarly, calls to Andorra were made using the prefix '973' for the province of Lleida followed by the digit '8', e.g.:
8 xx xxx (from Lleida) 9738 xx xxx (from Spain)
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.:
9738 xx xxx (before 17 December 1994) 07376 8xx xxx (after 17 December 1994)
Mobile phone numbers began with the prefix '90x' or '9x9', e.g.:
9x9 xxx xxx (within Spain) +34 x9 xxx xxx (outside Spain)
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.:
9xx xxx xxx (within Spain) +34 9xx xxx xxx (outside Spain)
Mobiles similarly changed, and were now prefixed with the digit '6':
608 xxx xxx (within Spain before 1998) +34 08 xxx xxx (outside Spain before 1998) +34 608 xxx xxx (since 1998)
New numbering ranges have also since been introduced:
10xx Carrier selection codes 5xx xxx xxx Personal Numbering 7yx xxx xxx (since 2009âÂÂ2010; note y cannot be 0 (zero) because this is allocated as a personal number, see below) 8xx xxx xxx Geographic expansion 800 xxx xxx Freephone 900 xxx xxx Freephone 80x xxx xxx Shared-cost 90x xxx xxx Shared-cost
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.