The simplest way to think about internet in Spain is this: the connection where you sleep is strong, and the gaps are on the move. In Spain 91% of fixed broadband lines are fibre, and measured fixed speeds are about three times those of mobile networks. Airports run free Wi-Fi from Aena, the Spanish airport operator, AVE high-speed trains offer onboard Wi-Fi called PlayRenfe, and Barcelona City Council provides free Wi-Fi too. Each of them, however, asks you to verify an email address or enter a ticket number, and each works only in certain places. This guide uses the official pages of the airports, the railway and the city, together with data from the regulator CNMC and government agencies, to show where you can rely on Wi-Fi in Spain and where you cannot.

If you want your own connection the moment you land and while you travel around, you can set up a Spain eSIM before you leave. Choose the data amount that fits your stay from Coral eSIM's Spain plans.

Wi-Fi in Spain: fibre at your hotel is about three times faster than mobile

According to Ookla's Speedtest Global Index for August 2026, Spain's median fixed broadband speed is 262.62 Mbps down and 207.56 Mbps up, ranking 18th in the world. Mobile networks came in at 83.65 Mbps down and 13.47 Mbps up, ranking 55th. Fixed lines are about three times faster, and upload speeds differ by more than fifteen times.

The reason is fibre. Spain's regulator CNMC (National Markets and Competition Commission) reports that 91% of active fixed broadband lines are fibre, and the shutdown of the copper telephone network was completed in 2025. In July 2026 there were 18.3 million fibre-to-the-home (FTTH) lines.

Hotel and apartment Wi-Fi usually runs on these fibre lines, so backing up photos or streaming video is best done at your accommodation. Keep in mind that accommodation Wi-Fi is shared with other guests, so real speeds depend on the property's equipment and how busy it is.

Airport Wi-Fi in Spain: "Airport Free Wifi Aena" needs email verification

Both Madrid-Barajas and Barcelona-El Prat airports offer free Wi-Fi under the same network name, "Airport Free Wifi Aena". Aena announced in 2017 that it had relaunched this free service at all airports in its network, and there is no paid option.

How to connect

  1. Select "Airport Free Wifi Aena" in your device's Wi-Fi settings
  2. On the welcome page, register as a guest with your email address (or log in with an Aena Club account, Aena's membership programme)
  3. You get 15 minutes of internet access to open the confirmation email
  4. Once you verify through that email, access has no time limit

The catch is that you cannot continue unless you confirm the email within 15 minutes. Check before you leave that you can open your email app without trouble. Passport control and baggage claim can eat into your time, so having your own connection ready when you land is the more reliable option.

Train Wi-Fi in Spain: PlayRenfe on AVE uses your ticket number

PlayRenfe, the onboard Wi-Fi of Spain's national railway Renfe, is free on AVE, AVE services between Spain and France, the low-cost high-speed Avlo, and most long-distance trains. It also includes films, music and other content, and Renfe says it comes with no data charges.

To log in you need one of the following:

  • Your ticket number
  • Your Más Renfe (Renfe's membership programme) number, with the passport or ID number you registered as the password
  • A promotional code

Passengers on international trains who do not hold a Renfe ticket ask the onboard staff for a promotional code and enter it with their passport number. This applies if you booked through another company, so it is worth knowing in advance. The official page does not state speeds or how well the connection holds up in tunnels, so if you need to make important contact during the journey, have your own connection as well.

Free Wi-Fi in Barcelona: the city network is about 750 hotspots, not a blanket

Barcelona City Council runs "Barcelona WiFi", a free network with about 750 access points in municipal facilities and on the street. Most are in city buildings such as libraries, markets, civic centres and museums, with some points outdoors.

It is a collection of hotspots around individual antennas rather than a network covering the whole city. The city's user manual gives a typical range of 20 to 50 metres indoors and 100 to 150 metres outdoors. One street access point listed in the city's district guide is available every day from 8:00 to 22:00. To connect, you accept the terms of use on the page that appears. It is handy for checking messages between sights, but not for walking around with a map open.

Mobile internet in Spain: 5G is spreading and 3G is on its way out

According to CNMC's annual report for 2025, Spain has more than 40,000 5G base stations, and 24.8 million lines connected to 5G networks. There were 63.61 million mobile lines in July 2026. The market is dominated by Movistar, Vodafone, MasOrange and DIGI, which together hold 98.2%. Average mobile data use in Spain is 14.6 GB per line per month, a useful reference when estimating how much data you need for a trip.

Older phones and the 3G shutdown

In December 2025 the Spanish government (Ministry for Digital Transformation and the Civil Service) opened a public consultation on switching off 2G and 3G. Its purpose is to set shutdown timetables by operator and plans for moving services to 4G and 5G. Older phones that only support 3G may fail to connect in some places, so travel with a phone that supports 4G and 5G.

Buying a local SIM in Spain requires identity registration

Under Spanish law (Ley 25/2007), mobile operators must record the identity of anyone who buys a prepaid SIM. Travellers buying a local SIM should therefore expect an identity check with a passport or similar document. You also need to go through this during shop opening hours, so after a late-night arrival you may not be able to buy one right away.

If you set up a travel eSIM before departure, you can skip this and start using data as soon as you arrive. Your phone must support eSIM and be carrier-unlocked (how to check if your phone is unlocked). The setup steps are in how to set up an eSIM for travel. If you are visiting other European countries as well, see how to choose an eSIM for Europe.

Using free Wi-Fi in Spain safely: INCIBE's advice

INCIBE, Spain's National Cybersecurity Institute, published travel advice in August 2026 that recommends the following:

  • Avoid unprotected public Wi-Fi and use your mobile connection instead
  • Use a VPN to encrypt your traffic
  • Turn off automatic connections so your device does not join unknown Wi-Fi or Bluetooth networks
  • Carry a power bank, because public charging points could be compromised

INCIBE also advises against accessing sensitive information such as passwords or banking details while on public Wi-Fi, and recommends turning off file and printer sharing. For more on the risks, see our guide to free Wi-Fi security.

Internet in Spain: frequently asked questions

Can foreign visitors use the free airport Wi-Fi in Spain?

Yes. At Madrid and Barcelona airports, connect to "Airport Free Wifi Aena" and register an email address. Open the confirmation email within the first 15 minutes to verify, and access then has no time limit. Make sure you can log in to your email app quickly.

How do I use Wi-Fi on AVE trains?

Connect to the PlayRenfe Wi-Fi on board and log in with your ticket number. Passengers on international trains without a Renfe ticket ask the onboard staff for a promotional code and enter it with their passport number.

Is there free Wi-Fi on the streets of Barcelona?

The city provides about 750 access points, but each covers only a limited area around its antenna and the network does not cover the whole city. Some points have set opening hours, so for navigating while you walk, your own connection is more reliable.

Is hotel Wi-Fi in Spain fast?

91% of Spain's fixed broadband lines are fibre, and Ookla's August 2026 figures put the median fixed speed at 262.62 Mbps down, about three times the mobile median. Hotel Wi-Fi is shared with other guests, though, so real speeds depend on the property's equipment and how busy it is.

Is it easy to buy a local SIM in Spain?

You can buy one, but the law requires operators to record the identity of prepaid SIM buyers, so expect an identity check with your passport in the shop. If you want to be online straight after landing, setting up a travel eSIM before you leave is less hassle.

In Spain, make the most of accommodation Wi-Fi and fill the gaps on the move with an eSIM

Spain's strength is accommodation Wi-Fi running on widespread fibre. The weak spots are the moment you land, walking around the city and train journeys. Free Wi-Fi at airports, on trains and from Barcelona City Council is useful, but it comes with conditions: email verification, ticket numbers, limited range and set hours. Handle large data at your accommodation and use your own connection for maps and messages on the move. That split is the most dependable way to stay connected in Spain.

See Coral eSIM's Spain plans, or browse plans for other countries on the plan list.

Related articles