YouTube Optimized Embed Code Generator

The embedded YouTube video is making your page heavy and slows down your page load times.

Speed up by displaying a preview image with play button by default and load YouTube video player on play button click.

The URL format is not recognized.
  • X (aspect ratio 16:9)

1. Place the code for your video wherever you want the video to appear on your page.

2. Include the JavaScript on your page once, ideally right before the closing </body> tag.