LatestYouTu.be
Sponsored Amazon Everything you need, delivered Find out more
Guide

How to embed your latest YouTube video on a website automatically

Paste one line of HTML into your page. The player always loads your newest upload, so you never swap embed codes after publishing a video.

Player

Preview the player → handle · channel or video link all work
Step by step

Put the player on your page

  1. Get your code

    Type your YouTube handle into the field above and tap Copy code.

  2. Open the page in your site editor

    Add a block that accepts HTML. Most site builders call it “Custom HTML”, “Embed” or “Code”. Using WordPress? See the WordPress guide.

  3. Paste and publish

    Paste the code into the block and publish the page. The player uses the full width of its column and keeps the 16:9 shape.

  4. Keep uploading

    That is all. When you publish a new video on YouTube, the player on your site switches to it by itself.

Good to know

Details worth knowing

Which video it shows

Your newest regular video. Shorts and a livestream that is still running are skipped, so the player never jumps to something you did not mean to feature.

Shorts and livestreams

Use the switches above. ?shorts embeds your newest Short in an upright player. ?live shows your stream while you are live and your newest video the rest of the time.

Start playing automatically

Add ?autoplay=1&mute=1 behind your handle in the code. Browsers only start videos by themselves when they are muted.

Privacy

The player comes from YouTube’s privacy-enhanced address (youtube-nocookie.com). Plays inside the embed are not counted in your link stats.

Other ways

Other ways to do it

YouTube’s own playlist player

Every channel has an “uploads” playlist that you can embed with YouTube’s normal playlist code. It needs no other service and starts with your newest upload. It is a playlist player, though, and that list also contains your Shorts and past livestreams.

A gallery widget

Services such as Elfsight or Curator show a whole grid of your videos. A good fit if you want a gallery instead of one player.

The YouTube Data API

Developers can ask YouTube’s API for the newest video and build their own player. That takes an API key and code you maintain. Our free JSON API answers the same question without a key.

More guides

Steps checked in November 2026. Apps move their buttons around now and then. If something looks different, tell us.