Didactic / Initiatives

Guide · AirTube

How to Play YouTube in the Background in Safari on iPhone

The short answer. Safari pauses YouTube when you leave Safari or lock the screen. Picture in Picture, the desktop-site trick, and YouTube Premium each help in part. AirTube is a Safari extension that keeps the sound playing in the background, with lock screen and Control Center controls.

Why the sound stops

On iPhone and iPad, Safari pauses web video when the page is no longer on screen. This happens when you go to the Home Screen, open another app, switch tabs, or lock the screen. There are two exceptions: a video in Picture in Picture, and a video that plays to AirPlay.

The YouTube website plays every video, even a music video, as video. So when you lock your iPhone, Safari pauses it. Safari does this to save battery, and Safari does not let a website change it.

The common workarounds, and their limits

Picture in Picture

Play the video full screen, then go to the Home Screen. If Settings > General > Picture in Picture > Start PiP Automatically is on, the video can continue in a small floating window.

The desktop-site and Control Center trick

In Safari, tap the page menu in the address bar and choose Request Desktop Website. Play the video, then leave Safari. The sound stops. Open Control Center or the lock screen, and tap Play.

YouTube Premium

YouTube Premium is the official option. It adds background play to the YouTube app, and it removes ads. It works well. But it is a monthly subscription, and it is for the YouTube app. If you prefer to watch in Safari, it does not help you stay there.

Method Stays in Safari? Works with the screen locked? Cost
Picture in Picture Yes Not reliably Free
Desktop-site trick Yes Sometimes Free
YouTube Premium No, YouTube app Yes Monthly subscription
AirTube Yes Yes 7-day free trial, then $2.99 one time

Background play with AirTube

AirTube is a Safari Web Extension for iPhone, iPad, and Mac. On a YouTube video page, it replaces the YouTube player with Safari's native video player. When Safari goes to the background or the screen locks, AirTube continues the sound from the same point. When you return to Safari, the video continues from where the sound is.

The lock screen and Control Center show the video and let you play, pause, and skip forward or back. On a Mac, the media keys work. Safari on a Mac already keeps sound playing in a hidden tab or a minimized window, so background play matters most on iPhone and iPad.

Step by step on iPhone and iPad

  1. Install AirTube and open it once. AirTube is coming soon to the App Store.
  2. Open Settings > Apps > Safari > Extensions > AirTube, and turn it on.
  3. Allow AirTube on www.youtube.com and m.youtube.com.
  4. In Safari, open a YouTube video and tap Play in the player.
  5. Go to the Home Screen or lock your iPhone. The sound continues.
  6. To pause or skip forward or back, use the lock screen or Control Center.

What else you get

Limits you should know

AirTube has a 7-day free trial. After the trial, a one-time $2.99 purchase unlocks it. There is no subscription. AirTube has no accounts and no ads, and its usage statistics are not linked to you. Read the AirTube privacy policy. AirTube is not affiliated with YouTube or Google.

Frequently asked questions

Why does YouTube stop when I lock my iPhone or leave Safari?

On iPhone and iPad, Safari pauses web video when the page is no longer on screen, unless the video is in Picture in Picture or plays to AirPlay. The YouTube website plays a video, so it stops when you lock the screen or open another app.

Does AirTube play the video in the background, or only the sound?

Only the sound. When Safari goes to the background or the screen locks, AirTube continues the sound from the same point. When you return to Safari, the video continues from where the sound is.

Do I need YouTube Premium for background play with AirTube?

No. AirTube does not need a YouTube Premium subscription. AirTube has a 7-day free trial, then a one-time $2.99 unlock.

Can I control playback from the lock screen?

Yes. With AirTube, the lock screen and Control Center show the video and let you play, pause, and skip forward or back. On a Mac, the media keys work.

Does background play work with every YouTube video?

No. Some videos, such as age-restricted videos, keep the regular YouTube player, and AirTube cannot keep them playing in the background.