100% FREE - NO SIGN-UP

YouTube Playlist Embed Code Generator

Generate custom embed codes for any YouTube playlist with live preview. Responsive, Privacy Enhanced, and WordPress-ready - all options in one place.

Live Preview Responsive Code Privacy Enhanced WordPress Shortcode
Read the Complete 2026 YouTube Playlist Embed Guide
1 Playlist URL
Try:
Click to load a demo playlist
2 Dimensions
×
3 Player Options
4 Start From Video
Start from video # in the playlist
Live Preview 560 x 315

Enter a playlist URL to see the live preview

Privacy Enhanced Responsive

Paste a YouTube playlist URL above to generate your embed code and see a live preview.

How to Embed a YouTube Playlist on Your Website

4 simple steps to add any YouTube playlist to your site.

01

Paste Playlist URL

Copy your YouTube playlist URL and paste it into the input above. All formats are accepted.

03

Copy the Code

Copy the iFrame code, responsive CSS, or WordPress shortcode from the tabs below the preview.

04

Paste on Your Site

Paste the code into your website HTML, WordPress editor, or any page builder and you are done.

YouTube Playlist Embed Options Explained

Each option in our generator changes the behavior of your embedded playlist. Here is what each one does:

Responsive

Makes the embed scale to fit any screen width while keeping the 16:9 aspect ratio. Essential for mobile users - 87% of YouTube is watched on mobile devices.

Privacy Enhanced Mode

Uses youtube-nocookie.com instead of youtube.com. YouTube does not place tracking cookies until the user clicks play. Recommended for GDPR and CCPA compliance.

Autoplay

Starts the playlist automatically when the page loads. Requires Muted to be enabled in most modern browsers due to browser autoplay policies.

Loop

Restarts the playlist from the first video after the last video finishes. Useful for background ambient videos, event screens, or continuous showcase playlists.

Player Controls

Hides the play/pause bar, volume, and seek controls. Useful for background video or kiosk-style displays where you do not want user interaction.

Start From Video #

Sets which video in the playlist starts playing first. Set to 2 to skip the intro video, or any number to start mid-playlist. Useful for structured course playlists.

How to Embed a YouTube Playlist in WordPress

There are two methods to embed a YouTube playlist in WordPress without a plugin:

  1. Method 1: Custom HTML Block (Recommended)

    In the WordPress block editor (Gutenberg), click the + button, search for "Custom HTML", and paste the iFrame code from our generator. This works in every WordPress theme.

  2. Method 2: WordPress Shortcode Tab

    Use the "WordPress" tab in our code generator. Copy the HTML code and paste it into the Custom HTML block in Gutenberg, or use a plugin like WPCode to add it globally.

  3. Method 3: Page Builders

    In Elementor, Divi, or WPBakery, add an HTML widget and paste the iFrame code. The responsive version from the CSS tab ensures it looks perfect at all screen sizes.

For the responsive embed in WordPress, use the Responsive CSS tab to add the wrapper CSS to your theme's Additional CSS (Appearance - Customize - Additional CSS).

Responsive YouTube Playlist Embed - Why It Matters

A standard YouTube embed uses fixed pixel dimensions (e.g., 560x315). This looks fine on desktop but breaks on mobile - the player either overflows the screen or appears tiny. A responsive embed fixes this automatically.

Our responsive embed code wraps the iframe in a container div with padding-bottom: 56.25% (the 16:9 ratio) and position: relative. The iframe is then positioned absolutely inside to fill the container. The result scales perfectly from 320px mobile screens to 4K monitors.

Fixed Size
width="560" height="315" Overflows on mobile
Responsive
padding-bottom: 56.25% Works on all screens

Frequently Asked Questions

How do I embed a YouTube playlist on my website?

Paste your playlist URL into the generator above, choose your options (size, autoplay, privacy mode), then copy the generated iframe code. Paste it into your website HTML where you want the playlist to appear. For responsive sites, enable the Responsive toggle and also add the CSS from the Responsive CSS tab to your stylesheet.

Can I embed a YouTube playlist without showing the sidebar?

The playlist navigation panel inside the YouTube player cannot be fully hidden with standard iframe parameters - it is part of YouTube's playlist player UI. However, you can hide the player controls bar by toggling off "Player Controls" in our generator, which removes the bottom control bar while keeping the playlist navigation.

How do I make a YouTube playlist embed responsive?

Enable the "Responsive" toggle in our generator. This generates a wrapper div with CSS padding trick that maintains the 16:9 aspect ratio at any width. Copy both the HTML from the iFrame tab and the CSS from the Responsive CSS tab. Add the CSS to your stylesheet and the HTML to your page. The embed will scale perfectly on all screen sizes.

How do I embed a YouTube playlist in WordPress?

In WordPress: click the + button in the block editor, add a "Custom HTML" block, and paste the iFrame code from our generator. For responsive embedding, also add the CSS from the Responsive CSS tab to your theme's Additional CSS (Appearance - Customize - Additional CSS). No plugin is needed.

What is Privacy Enhanced Mode in YouTube embeds?

Privacy Enhanced Mode replaces youtube.com with youtube-nocookie.com in the embed URL. When enabled, YouTube does not set cookies or track visitors until they actively click play on the video. This is recommended for websites with EU visitors to maintain GDPR compliance. Our generator enables this by default.

Why does autoplay not work on my embedded playlist?

Modern browsers (Chrome, Firefox, Safari) block autoplay with sound by default. To make autoplay work, you must also enable the "Muted" toggle in our generator. Browsers allow autoplay for muted videos. Once muted autoplay starts, the user can unmute by clicking the volume control in the player.

Need Custom YouTube Thumbnails?

Stand out in search results with professional thumbnails that maximize your CTR and attract more viewers.

Get Custom Thumbnails