YouTube Cleaning Up Our Embeds

For the longest time, official YouTube video embed codes have contained embarrassingly malformed URLs; the first URL parameter (at the end of URLs) should always start with a ? character, but our URL parameters begin with &. That looks something like this: (incorrect) (correct)
Fortunately, we’ve found a way to use correct URLs without breaking old browsers and we can’t wait to do it.

Speaking of changes to the embed code, we’ll also be tweaking the HTML content. The new YouTube embed code is leaner and still works on everything from ancient desktop browsers to modern smart phones. You won’t find another snippet of HTML that’s as battle-tested and mother-approved! Here’s a preview of the new, streamlined format:
And here’s what the HTML looks like:
<object width=”425″ height=”344″>
<param name=”movie” value=”″>
<param name=”allowFullScreen” value=”true”>
<param name=”allowScriptAccess” value=”always”>
<embed src=”″
type=”application/x-shockwave-flash” allowfullscreen=”true”
allowScriptAccess=”always” width=”425″ height=”344″>
If you grab YouTube embed codes by hand from, or from the YouTube Player APIs or oEmbed, you’ll start getting this updated HTML soon. As for all the embeds already on the web: worry not, those will continue to work forever.

Leave a Reply

Your email address will not be published. Required fields are marked *

To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image