To loop a YouTube video on desktop, right-click the video player and select Loop from the menu. On mobile, tap the gear icon inside the player, tap Additional settings, and switch Loop video to on. If you are embedding a video on a website, add &loop=1&playlist=VIDEO_ID to the embed URL to keep it replaying automatically.

Whether you need continuous background music for work, white noise for sleep, or a workout clip on repeat, looping saves you from having to restart playback manually every few minutes. Here is the complete breakdown of every method available across devices and websites.

How to Loop a YouTube Video on Desktop

Looping on a computer is the fastest method because YouTube includes a native switch directly inside the HTML5 video player context menu.

Step-by-Step for Desktop Browsers

  1. Open your browser (Chrome, Firefox, Safari, Edge, or Brave) and navigate to the YouTube video you want to repeat.
  2. Right-click anywhere directly inside the playing video frame.
  3. Click Loop from the context menu.

Once clicked, a small checkmark will appear next to the word Loop. The video will now automatically restart from 0:00 as soon as it reaches the end.

Note on Browser Overrides: If you right-click and see your standard browser menu (with options like "Save image as..." or "Inspect"), right-click a second time in the exact same spot. The first click sometimes triggers the browser's default menu, while the second click brings up YouTube's custom player menu. For more quick navigation tricks, check out our guide to 25 YouTube keyboard shortcuts.

Screenshot style illustration of the YouTube video context menu highlighting the Loop feature.
Screenshot style illustration of the YouTube video context menu highlighting the Loop feature.
Advertisement

How to Loop YouTube Videos on Mobile (iPhone & Android)

The YouTube app for iOS and Android has built-in looping, though Google shifted the setting inside a sub-menu in recent updates.

Steps for the Official Mobile App

  1. Launch the YouTube app and open your chosen video.
  2. Tap the screen once to bring up the player controls.
  3. Tap the Settings (gear) icon located in the upper-right corner of the video.
  4. Select Additional settings from the bottom pop-up sheet.
  5. Tap Loop video to switch the setting from Off to On.

The video will remain on loop until you close the app, navigate to a new video, or manually toggle the switch back to Off.

Mobile Web Browser Workaround

If you prefer watching YouTube in Safari, Chrome, or Firefox on your smartphone instead of using the app:

  1. Open the video in your mobile browser.
  2. Tap the three dots or browser share button and select Request Desktop Site.
  3. Long-press or double-tap-and-hold the playing video until the desktop menu displays.
  4. Tap Loop.

This method is especially useful if you want audio to continue looping while using other apps or running in background tabs. You can explore more playback capabilities in our roundup of 9 hidden YouTube features.

How to Loop an Embedded YouTube Video on a Website

Embedding a looping video on your website requires a specific parameter tweak in the <iframe> embed code. Many developers assume adding loop=1 is enough, but YouTube's player API requires both the loop=1 parameter and the playlist parameter pointing back to the same video ID.

The Standard Embed Code Issue

If you simply add ?loop=1 to an embed URL, YouTube will ignore the command. The player only honors the loop parameter if it knows which playlist it is cycling through. To loop a single video, you define that video as its own single-item playlist.

The Working Embed Formula

Here is the exact structure you must use:

<iframe 
  width="560" 
  height="315" 
  src="https://www.youtube.com/embed/VIDEO_ID?loop=1&playlist=VIDEO_ID" 
  title="YouTube video player" 
  frameborder="0" 
  allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" 
  allowfullscreen>
</iframe>

Replace both instances of VIDEO_ID with the 11-character string from your video link (for example, dQw4w9WgXcQ).

If you want to customize your responsive dimensions, hide controls, or enable autoplay alongside looping without writing HTML manually, generate your embed snippet instantly with our free YouTube Embed Code Generator. For a deeper breakdown of embed styling, read our complete guide to embedding YouTube videos in HTML.

Advertisement

Looping Methods Comparison

PlatformMethodStays Active Across Videos?Works in Background?
Desktop BrowserRight-click player > Select LoopNo (resets per video)Yes (in open tab)
Mobile AppGear icon > Additional settings > Loop videoNo (resets per video)Premium only
Mobile WebRequest Desktop Site > Context MenuNoYes (varies by browser)
HTML Embed?loop=1&playlist=VIDEO_ID parameterAlways activeYes
Custom PlaylistCreate playlist > Click playlist repeat iconYes (loops entire queue)Yes

How to Loop a Specific Section of a Video

Sometimes you only want to loop a 30-second guitar riff, a tutorial step, or a specific lecture concept rather than an entire two-hour recording.

While YouTube's default native loop tool only restarts videos from the beginning, you can repeat specific segments using two clean techniques:

1. Set Custom Start and End Points in Embeds

If you are embedding the clip on a personal dashboard, Notion page, or web page, pair the loop parameters with start and end times (measured in seconds):

<iframe 
  src="https://www.youtube.com/embed/VIDEO_ID?start=45&end=75&loop=1&playlist=VIDEO_ID" 
  width="560" 
  height="315">
</iframe>

To find the exact second markers quickly, paste your video link into the YouTube Timestamp Link Generator.

2. Using Playlists for Segment Repetition

If you want multiple clips to cycle in sequence without embedding:

  1. Create a new personal playlist on YouTube.
  2. Add the video (or multiple videos) to that playlist.
  3. Open the playlist player view.
  4. Click the Repeat icon (two arrows forming a rectangle) in the playlist control box above the queue.
  5. Click it once to loop the entire playlist indefinitely, or click it twice to loop the current single track.

Troubleshooting: Why Isn't My Video Looping?

If your video halts at the end instead of restarting, check these common causes:

  • Autoplay is overriding the loop: In rare browser updates, having global Autoplay turned on may pull up a recommended video before the loop fires. Turn off the Autoplay next video toggle in the bottom player bar.
  • Missing playlist parameter in embeds: If your embedded video plays once and stops, verify that you included &playlist=VIDEO_ID immediately following ?loop=1. Without the playlist parameter, iframe looping fails 100% of the time on single-video embeds.
  • Ad blocker interruptions: Aggressive script-blocking extensions can sometimes prevent YouTube's end-of-video event listener from triggering the replay action. Whitelist YouTube or pause the extension to verify.