# How to use Picture in Picture on a Mac (web & local video)

> Learn how to use Picture in Picture on a Mac in Safari, YouTube, QuickTime, and how to play local MKV files in a floating, pinned window.

Published 2026-10-31 · Mac how-to · https://www.hazenstudio.com/maclc/blog/picture-in-picture-on-mac/

## In short

- macOS Picture in Picture detaches video into a floating window that stays pinned above all apps, windows, and full-screen Spaces.
- In Safari, right-click a video twice on YouTube to reveal the native 'Enter Picture in Picture' context menu option.
- Hold the Command key while dragging a PiP window to place it anywhere on screen rather than snapping to the corners.
- QuickTime only supports MP4 and MOV files, but MacLC features a Picture in Picture button that works on MKV, WebM, and AVI files.

To use Picture in Picture on a Mac, open a video in Safari or QuickTime Player and click the Picture in Picture button, or right-click the video twice on YouTube to choose "Enter Picture in Picture" from the native macOS menu. The video immediately pops out into a resizable, floating window that stays pinned above your other open windows, desktop spaces, and full-screen applications.

Picture in Picture (PiP) transforms how you multitask on macOS, allowing you to take notes during a lecture, monitor a sports broadcast while writing code, or follow a video tutorial without sacrificing screen real estate. While activating PiP in web browsers is straightforward once you know the hidden right-click trick, playing local video files—especially high-resolution MKV or downloaded videos—presents unique challenges on modern Apple Silicon Macs.

## What is Picture in Picture on macOS and how does it work?

Introduced by Apple to streamline desktop multitasking, Picture in Picture is a system-level window management framework in macOS. Unlike ordinary application windows that hide behind other software when you click away, a PiP window exists on an elevated window tier maintained directly by the macOS WindowServer.

A native macOS Picture in Picture window offers three defining capabilities documented in [Apple Support Safari guides](https://support.apple.com/guide/safari/ibrw94025d03/mac):

1. **Persistent floating layer:** The window remains anchored in the foreground even when you switch active applications, click into full-screen Word documents, or browse in another browser.
2. **Space-independent persistence:** If you swipe between virtual desktop Spaces using macOS Mission Control (or swipe three fingers on a trackpad), the PiP window stays stationary on your display.
3. **Corner snapping and edge docking:** By default, the window magnetically docks into one of the four corners of your screen, ensuring it does not obstruct menus or the Dock.

When you finish watching, clicking the "X" in the upper-left corner closes the floating window, while clicking the restoration icon in the upper-right corner returns the video cleanly to its original parent player.

## How do you use Picture in Picture in Safari (including on YouTube)?

Safari offers built-in support for HTML5 video playback, but different websites implement video controls in different ways:

### Standard Web Videos

On websites using standard HTML5 video elements (such as Vimeo, Apple TV, or news sites), a dedicated PiP icon appears directly on the playback control bar. Clicking that icon pops the video out immediately. Alternatively, if audio is playing, right-click the speaker icon in the Safari Smart Search address bar or on the browser tab, then select **Enter Picture in Picture**.

### The YouTube Double Right-Click Trick

YouTube intercepts standard mouse clicks to display its own custom dark context menu containing options like "Copy video URL" and "Stats for nerds." Because YouTube hides Safari's native context menu, many Mac users assume YouTube disables Picture in Picture.

To bypass YouTube's custom menu:

1. Right-click anywhere on the active YouTube video. YouTube's custom black menu appears.
2. Without moving your cursor, right-click a second time.
3. Safari's native macOS context menu will appear over the first menu.
4. Select **Enter Picture in Picture** from the list.

The YouTube video will immediately detach into a floating box. You can close or minimize the original Safari tab, and the audio and video will continue playing uninterrupted.

## How do you use Picture in Picture in QuickTime Player?

For local video files stored on your Mac, Apple's default [QuickTime Player](https://support.apple.com/guide/quicktime-player/welcome/mac) provides native PiP integration:

1. Double-click a compatible video file (such as an `.mp4` or `.mov` file) to open it in QuickTime Player.
2. Move your cursor over the video window to reveal the playback controls.
3. In the lower-right corner of the control bar, click the **Picture in Picture button** (an icon showing a smaller screen with an arrow pointing to a corner).
4. The video detaches into the system floating layer, and the main QuickTime window minimizes.

QuickTime also includes an older menu command under **View › Float on Top**. However, Float on Top merely keeps the standard QuickTime window above others in the current desktop Space; it does not provide true corner snapping or persistence across full-screen Spaces like native Picture in Picture.

## Why does VLC not support native Picture in Picture on a Mac?

Many Mac users rely on [VLC media player](https://www.videolan.org/vlc/) as their primary video application. However, searching VLC's playback controls reveals that VLC does not support native macOS Picture in Picture.

Because VLC is built on a cross-platform framework designed to run identically across Linux, Windows, and older versions of macOS, it does not hook into Apple's native `AVPictureInPictureController` Cocoa API.

Instead, VLC offers a manual workaround:

- Click **Video › Float on Top** from the top menu bar.

While this setting keeps the VLC window above your web browser, it retains VLC's window title bar and playback controls. If you swipe to a full-screen application or another Mission Control Space, VLC disappears behind the space transition because it is not registered with the macOS PiP subsystem.

## How do you move, resize, and hide the floating PiP window?

Once a video is floating on your screen, you can manipulate it using several macOS trackpad and keyboard shortcuts:

### 1. Resizing the Window

Hover your cursor over any corner or edge of the PiP window until the pointer transforms into a double-sided diagonal arrow. Click and drag outward to expand the window, or inward to shrink it. macOS allows you to resize the window from a tiny thumbnail up to roughly one-quarter of your entire display area.

### 2. Free-Form Positioning (Bypassing Corner Snap)

By default, dragging a PiP window causes it to snap magnetically to the nearest screen corner. If a corner position blocks an important button in another app, you can position the window anywhere on your screen:

- Hold the **Command (⌘)** key on your keyboard while clicking and dragging the PiP window.

Holding Command disables corner magnetism, letting you drop the floating video anywhere along the edges or center of your display.

### 3. Hiding the Window (Edge Docking)

If you need your entire screen clear for a few moments but do not want to pause the video, click and drag the PiP window completely off the left or right edge of your screen. The video will slide out of view, leaving only a small semi-transparent tab with an arrow anchored to the display bezel. The audio continues playing smoothly in the background. Clicking the arrow pulls the video window back onto your screen.

## How can you play local MKV and downloaded videos in Picture in Picture?

While QuickTime handles basic MP4 and MOV files, it refuses to open modern Matroska (`.mkv`), WebM, or AVI files. Attempting to drag an MKV file into Safari to trigger web PiP also fails because Safari lacks open-source video decoders. For steps on playing these files, see our guide on [how to play MKV files on a Mac](/maclc/blog/how-to-play-mkv-on-mac/).

MacLC bridges the gap between VLC's universal codec engine and Apple's native desktop features. MacLC includes a dedicated Picture in Picture button directly on its playback bar, letting you pop local MKV, MP4, WebM, and AVI files into a native floating macOS window with a single click.

When using MacLC, you gain the complete freedom of an open-source player without sacrificing Apple Silicon platform ergonomics:

- **Universal format playback:** Plays HEVC, H.264, AV1, VP9, and ProRes video tracks in PiP without converting containers.
- **Hardware accelerated:** Routes video decoding through Apple VideoToolbox on Apple Silicon.
- **Audio control:** Retains audio track selection and subtitle rendering before entering PiP mode.

To combine floating playback with speed adjustments, explore our tutorial on [how to change video playback speed on a Mac](/maclc/blog/change-video-playback-speed-on-mac/).

## What are the best habits for multitasking with PiP?

To maximize productivity when watching floating video:

1. **Keep subtitles enabled before detaching:** Turn on subtitles while the video is in its main window. Most players maintain subtitle rendering even after scaling down into the corner.
2. **Use edge docking during deep focus:** When an intense task requires your full attention, flick the PiP window off-screen to keep the audio stream active without visual distraction.
3. **Take clean snapshots:** If you are watching an instructional video or lecture, pause the video and capture reference frames (⌘⌥S in MacLC). Learn how in our guide to [taking a screenshot of a video on Mac](/maclc/blog/screenshot-of-a-video-on-mac/).

Picture in Picture turns your Mac into a powerful multitasking workstation. Using Safari's double right-click trick on YouTube or playing local movie files in a player with native PiP support keeps your content in view while your workflow continues uninterrupted. To stream web links directly into a dedicated desktop window, explore our guide on [playing YouTube in a Mac video player](/maclc/blog/youtube-in-a-mac-video-player/).

## Questions people ask

### How do you do Picture in Picture on YouTube on a Mac?

Open YouTube in Safari, right-click the video to show YouTube's custom menu, then right-click a second time anywhere on the video. In the native Safari menu that appears, click 'Enter Picture in Picture'.

### Can you resize the Picture in Picture window on macOS?

Yes. Move your pointer over any corner or edge of the floating window until the cursor changes to a double-ended arrow, then click and drag inward or outward to resize it.

### Why does VLC not have a Picture in Picture button on Mac?

VLC does not integrate with the native macOS Picture in Picture framework. It only offers a 'Float on Top' menu setting, which keeps the full VLC window on top within a single desktop Space.

### How can I watch an MKV movie in Picture in Picture on a Mac?

QuickTime cannot open MKV files. You can use MacLC, which bundles a dedicated Picture in Picture button on the playback bar that pops any local MKV, WebM, or MP4 video into macOS PiP.

---
MacLC is a free, open-source video player for Apple Silicon Macs: https://www.hazenstudio.com/maclc/ · download: https://www.hazenstudio.com/maclc/donate/
