SimpleWeb.tools

YouTube Embed Code Generator

YouTube embed code generator creates customizable iframe codes for embedding videos on your website. Paste any YouTube URL, adjust size, enable autoplay, hide controls, and more. Copy the generated code and paste it into your HTML—simple and fast.

📺 Video Settings

Paste any YouTube video URL (watch, share, or embed link)

⚙️ Embed Options

Start video at specific time (leave empty for beginning)

👁️ Preview

Video preview will appear here

💻 Embed Code

Frequently Asked Questions

How do I embed a YouTube video on my website?
Paste your YouTube video URL into the tool, customize the settings (size, autoplay, etc.), click "Generate Embed Code," then copy the iframe code and paste it into your website's HTML where you want the video to appear.
What's the difference between autoplay and mute?
Autoplay makes the video start playing automatically when the page loads. Most browsers require videos to be muted for autoplay to work, so it's recommended to enable both options together.
What are the best embed dimensions?
The default 560×315 works well for most websites. For HD quality, use 1280×720. For responsive designs that adapt to screen sizes, choose the "Responsive (100% width)" preset.
Can I start the video at a specific time?
Yes! Enter the start time in seconds. For example, to start at 1 minute and 30 seconds, enter "90" in the Start Time field.
What does "Hide YouTube logo" do?
This option (modest branding) removes the YouTube logo from the control bar. The logo will still appear briefly when hovering over the video, but it's less prominent.
Will embedded videos work on mobile devices?
Yes! YouTube embeds are fully responsive and work on all modern devices including smartphones and tablets. Use the responsive width option for best mobile experience.