Generate YouTube embed codes

Insert the last part of the YouTube video URL:
(the unique code is enough, but you can also enter the full URL)
Enter the desired width of the video: pixels
Check to include link back to YouTube page.

Standard definition embed :
Wide screen embed (high def) :
Wide screen embed (higher quality):
Wide screen embed (normal) :

Make life even easier by using the bookmarklet:
Create YouTube Code
(just add to the bookmarks menu)

(cc) 2008 Pierre Gorissen. Re-use any way you like, just have a look at the page source.
All you need is some JavaScript code.