YouTube Embed Code Generator
How to Use YouTube Embed Code Generator Tool
-
Enter the YouTube Video URL or ID
Paste the full YouTube link (e.g.,https://www.youtube.com/watch?v=VIDEO_ID
) or just the video ID. -
Set Video Width and Aspect Ratio
Choose100%
for responsive width or a fixed size (like600px
). Select aspect ratio (16:9, 4:3, 21:9) based on your design. -
Configure Playback Options
Use the toggles to enable or disable: Autoplay, Mute, Loop, and Hide Controls. -
Define Start Time (Optional)
Enter the number of seconds to make the video start from a specific point. -
Add an Iframe Title (Optional)
Provide a descriptive title for SEO and accessibility. If left blank, “YouTube video” will be used automatically. -
Generate and Preview the Embed Code
Click Generate to create the iframe code and check the live preview. -
Copy and Paste into Your Website
Click Copy Code and insert it into your blog post, article, or HTML editor.