Area Code 871 – Balearic Islands
The phone area code for Balearic Islands is 871 (international format +34871). Browse local exchange codes (NXX) and carrier assignments below.
📞 Exchange Codes (NXX) for Area Code 871
Select a central office code to view local carrier data and detailed information
📍 Geographic Location of Balearic Islands
Overview of Area Code 871
Area code 871 is a geographic telephone prefix within the Spanish national numbering plan, assigned to the Balearic Islands (Illes Balears). This autonomous community of Spain is located in the Mediterranean Sea and comprises four main inhabited islands: Mallorca, Menorca, Ibiza, and Formentera, along with several smaller islets. The code 871 serves as an overlay for the older 971 prefix, which historically covered the entire archipelago. As a result, both 971 and 871 numbers coexist in the same geographic region, and local calls between them are charged as local calls, not long-distance.
Coverage and Administrative Jurisdiction
The 871 prefix covers the entire territory of the Balearic Islands, including its capital, Palma de Mallorca, as well as other significant municipalities such as Ibiza Town, Maó (Mahón), and Ciutadella. The region is a popular tourist destination, and many businesses, hotels, and public services use 871 numbers. The administrative jurisdiction falls under the Delegación del Gobierno en las Illes Balears, and numbering is managed by the Comisión Nacional de los Mercados y la Competencia (CNMC) in accordance with ITU-T E.164 recommendations.
Dialing Formats
When calling a Spanish number with the 871 prefix from within Spain, the full national number must be dialed, including the leading trunk prefix 0. For example, a local call from Madrid to a number in Palma would be dialed as 0 871 XXX XXX. However, when calling from outside Spain, the international format is used: +34 871 XXX XXX, where +34 is the country calling code for Spain. It is important to note that the trunk prefix '0' is not included in the international format.
Overlay Considerations and Number Portability
Because 871 is an overlay code, there is no need for local callers to change their dialing habits for calls within the Balearic Islands; all calls are dialed using the full 9-digit number (including the area code). This overlay also means that new telephone lines in the region may be assigned either 971 or 871 numbers, depending on availability. Number portability is fully supported, allowing subscribers to retain their 871 numbers when switching service providers, including from fixed-line to VoIP or mobile services, as long as the service is provided within the same geographic area.
Caller Instructions
For local callers within the Balearic Islands, simply dial the 9-digit number (e.g., 871 123 456). For callers from other parts of Spain, dial 0 871 123 456. For international callers, dial +34 871 123 456. When calling from a mobile phone in Spain, it is also necessary to include the full number, as mobile networks require the complete national number for routing.