# 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).

## History

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.:

## Current numbering plan

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 phones

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 numbering

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.

### Other numbers

* Numbers starting with 2, 3, 4, 5, and 99 are reserved.
* Numbers starting with 0 and 1 are used to compose short numbers or for prefixes. For example, three-digit numbers starting with 0 are for emergency and services to the citizen.
** Non-emergency numbers are 010 for requesting information to the city council, 012 to the regional government, and 060 to the national government.
** 016, implemented in 2007 by the national government, is a telephone number meant for reporting cases of violence against women. Calls to this number do not appear in the phone bill.
** 112 is the generic emergency number. Specific emergency numbers are 061 for medical emergencies (only some of the autonomous communities offer this number, elsewhere 112 must be called), 062 for the Civil Guard, 080 or 085 for the fire brigade (depending on the province), 091 for the National Police, 092 for the municipal police.
** Five-digit numbers starting with 118 are information numbers.
* Numbers starting with 80 and 90, then a number different from 0, are used for premium rates, toll free, and internet access numbers.
** 905 numbers are supposed to be used for voting systems. Calls have a limited duration (typically 3 minutes), and are charged a fixed rate per call. They are often used in TV shows as a substitutive of 80 numbers, both for image reasons and because operators are not obliged to block them on a user request, as 80 numbers are.
** Until 2003, 906 used to be the prefix for premium rate calls, where the calling party pays a fixed amount of money per minute and are lucrative for the called party. In that year, 906 was discontinued and split in three: 803 for phone sex, 806 for entertainment, gambling and various services such as divination, and 807 for professional services such as legal and medical advice.
** 908 and 909 were designed to be the numbers for dial-up Internet access. However, they have been widely replaced by digital subscriber line and faster Internet access technologies. 907 was the prefix for dial-up access to premium rate websites.
* 800 and 900 numbers are freephone numbers in Spain. The called party pays the cost of the call.
* 901 and 902 numbers are Non Geographic Numbers. These have been widely introduced by the call centres of large multinational European businesses. Unlike other normal Spanish phone numbers beginning 910 onwards, 901 and 902 numbers are always excluded from inclusive call bundles on Spanish landlines and mobiles. In 901 lines, the cost of the call is shared between the calling party and the receiver; in a 902, the calling party pays all the cost of the call. 902 numbers are extremely expensive to call from Spanish mobiles. 901 and 902 numbers are also premium rated if calling Spain from overseas and low cost international call carriers to Spain normally refuse to connect calls to 901 and 902 numbers.

## Area codes

Area codes in Spain :
| National Destination Code | Max length | Min length | Category or province |
| 0 | 3 | 3 | Short Number |
| 00 | 2 | 2 | International Prefix |
| 1 | 4 | 4 | Short Number |
| 103 | 6 | 4 | Operator Selection |
| 104 | 6 | 4 | Operator Selection |
| 105 | 6 | 4 | Operator Selection |
| 107 | 6 | 4 | Operator Selection |
| 112 | 3 | 3 | Emergency Services |
| 118 | 5 | 5 | Directory assistance |
| 5 | 9 | 9 | Personal Numbering System |
| 6 | 9 | 9 | Mobile phones |
| 70 | 9 | 9 | Personal Numbering System |
| 71 | 9 | 9 | Mobile phones |
| 72 | 9 | 9 | Mobile phones |
| 73 | 9 | 9 | Mobile phones |
| 74 | 9 | 9 | Mobile phones |
| 75 | 9 | 9 | Mobile phones |
| 76 | 9 | 9 | Mobile phones |
| 77 | 9 | 9 | Mobile phones |
| 78 | 9 | 9 | Mobile phones |
| 79 | 9 | 9 | Mobile phones |
| 800 | 9 | 9 | Toll Free |
| 803 | 9 | 9 | Premium Rate (adult services) |
| 806 | 9 | 9 | Premium Rate (entertaining service) |
| 807 | 9 | 9 | Premium Rate (professional services) |
| 822 | 9 | 9 | Santa Cruz de Tenerife |
| 824 | 9 | 9 | Badajoz |
| 828 | 9 | 9 | Las Palmas |
| 843 | 9 | 9 | Gipuzkoa |
| 848 | 9 | 9 | Navarre |
| 850 | 9 | 9 | Almería |
| 856 | 9 | 9 | Cádiz |
| 858 | 9 | 9 | Granada |
| 868 | 9 | 9 | Murcia |
| 871 | 9 | 9 | Balearic Islands |
| 872 | 9 | 9 | Girona |
| 873 | 9 | 9 | Lleida |
| 876 | 9 | 9 | Zaragoza |
| 877 | 9 | 9 | Tarragona |
| 881 | 9 | 9 | A Coruña |
| 882 | 9 | 9 | Lugo |
| 886 | 9 | 9 | Pontevedra |
| 900 | 9 | 9 | Toll Free |
| 901 | 9 | 9 | Shared-cost call |
| 902 | 9 | 9 | National Rate |
| 905 | 9 | 9 | Telephone Voting System |
| 907 | 9 | 9 | Premium Rate (data systems) |
| 908 | 9 | 9 | Internet Access |
| 909 | 9 | 9 | Internet Access |
| 911 | 9 | 9 | Madrid (Segovia and Guadalajara until 1993) |
| 912 | 9 | 9 | Madrid |
| 913 | 9 | 9 | Madrid |
| 914 | 9 | 9 | Madrid |
| 915 | 9 | 9 | Madrid |
| 916 | 9 | 9 | Madrid |
| 917 | 9 | 9 | Madrid |
| 918 | 9 | 9 | Madrid (Ávila until 1993) |
| 920 | 9 | 9 | Ávila |
| 921 | 9 | 9 | Segovia |
| 922 | 9 | 9 | Santa Cruz de Tenerife |
| 923 | 9 | 9 | Salamanca |
| 924 | 9 | 9 | Badajoz |
| 925 | 9 | 9 | Toledo |
| 926 | 9 | 9 | Ciudad Real |
| 927 | 9 | 9 | Cáceres |
| 928 | 9 | 9 | Las Palmas |
| 931 | 9 | 9 | Barcelona |
| 932 | 9 | 9 | Barcelona |
| 933 | 9 | 9 | Barcelona |
| 934 | 9 | 9 | Barcelona |
| 935 | 9 | 9 | Barcelona |
| 936 | 9 | 9 | Barcelona |
| 937 | 9 | 9 | Barcelona |
| 938 | 9 | 9 | Barcelona |
| 940 | 9 | 9 | Pager Services |
| 941 | 9 | 9 | La Rioja |
| 942 | 9 | 9 | Cantabria |
| 943 | 9 | 9 | Gipuzkoa |
| 944 | 9 | 9 | Biscay |
| 945 | 9 | 9 | Álava |
| 946 | 9 | 9 | Biscay |
| 947 | 9 | 9 | Burgos |
| 948 | 9 | 9 | Navarre |
| 949 | 9 | 9 | Guadalajara |
| 950 | 9 | 9 | Almería |
| 951 | 9 | 9 | Málaga |
| 952 | 9 | 9 | Málaga |
| 953 | 9 | 9 | Jaén |
| 954 | 9 | 9 | Seville |
| 955 | 9 | 9 | Seville |
| 956 | 9 | 9 | Cádiz |
| 957 | 9 | 9 | Córdoba |
| 958 | 9 | 9 | Granada |
| 959 | 9 | 9 | Huelva |
| 960 | 9 | 9 | Valencia |
| 961 | 9 | 9 | Valencia, Center of province |
| 962 | 9 | 9 | Valencia, South of province |
| 963 | 9 | 9 | Valencia, City and surroundings |
| 964 | 9 | 9 | Castellón |
| 965 | 9 | 9 | Alicante |
| 966 | 9 | 9 | Alicante |
| 967 | 9 | 9 | Albacete |
| 968 | 9 | 9 | Murcia |
| 969 | 9 | 9 | Cuenca |
| 971 | 9 | 9 | Balearic Islands |
| 972 | 9 | 9 | Girona |
| 973 | 9 | 9 | Lleida |
| 974 | 9 | 9 | Huesca |
| 975 | 9 | 9 | Soria |
| 976 | 9 | 9 | Zaragoza |
| 977 | 9 | 9 | Tarragona |
| 978 | 9 | 9 | Teruel |
| 979 | 9 | 9 | Palencia |
| 980 | 9 | 9 | Zamora |
| 981 | 9 | 9 | A Coruña |
| 982 | 9 | 9 | Lugo |
| 983 | 9 | 9 | Valladolid |
| 984 | 9 | 9 | Asturias |
| 985 | 9 | 9 | Asturias |
| 986 | 9 | 9 | Pontevedra |
| 987 | 9 | 9 | León |
| 988 | 9 | 9 | Ourense |