Toolpuffin

    Loading...

    Up and down to choose, Enter to open, Esc to close.

    YouTube Embed Code Generator

    Paste a YouTube video link and get the iframe code to put the video on your own web page. Choose a size or a responsive layout, a start time and the player options, then copy the code.

    Features

    • Accepts a youtube.com or youtu.be link, a Shorts link or the video ID
    • Responsive code that shrinks on small screens, or a fixed width and height
    • Start time, autoplay, mute, loop, controls and related videos
    • Privacy-enhanced mode with youtube-nocookie.com, and lazy loading

    How to use Embed Code Generator

    1. Paste the YouTube video link.
    2. Choose the shape, size and player options.
    3. Copy the code and paste it into your page.

    Frequently asked questions

    What is privacy-enhanced mode?

    It uses youtube-nocookie.com instead of youtube.com for the player. YouTube says this mode does not store information about visitors on your page unless they play the video. The rules can change, so check YouTube's help pages if it matters for your site.

    Why does autoplay start muted?

    Most browsers block a video that starts with sound before the visitor has done anything on the page. So autoplay only works reliably when the video is muted, and the tool adds the mute option for you.

    Does the tool check that the video exists or can be embedded?

    No. It only builds the code from the text you enter and does not contact YouTube. The owner of a video can turn embedding off, so open your page once to check that the video plays.

    Is my link sent anywhere?

    No. The code is made in your browser. Toolpuffin is an independent site and is not affiliated with or endorsed by YouTube.

    Guides

    Related tools