🔗 YouTube Embed Code and Timestamp Link Generator
Paste a YouTube link to get an iframe embed code for your website and a share link that starts at a specific time.
How to use the YouTube Embed Code Generator
- Paste the YouTube video link.
- Set a start time (and an end time if you like) and choose options.
- Press Generate code, then copy the embed code into your website, or share the timestamp link.
How to embed a YouTube video on your website
Copy the iframe code from this tool and paste it into an HTML block on your page. In WordPress use the Custom HTML block, in Elementor use the HTML widget, and in Wix or Shopify use an embed or custom code section. The video will play on your page without sending visitors away.
What the options mean
- Start and end time: play only the part you need.
- Autoplay: the video starts by itself but muted, because browsers block autoplay with sound.
- Loop: replays the video again and again.
- Privacy-enhanced mode: uses youtube-nocookie.com so YouTube does not store tracking cookies until the visitor plays the video.
Keep embedded videos fast and responsive
Set the width to 100 percent and keep a 16:9 shape so the video fits every screen. Add loading=”lazy” to the iframe if you place it lower on the page, and avoid putting many videos at the top, because they slow the page. To share a video at a certain second without embedding, use the timestamp link this tool creates. Need a better preview image first? Try the thumbnail downloader.
Frequently asked questions
How do I embed a YouTube video?
Copy the iframe code from this tool and paste it into an HTML block on your page.
What is a timestamp link?
A link that starts the video at a chosen second, for example youtu.be/ID?t=90.
Why does autoplay start muted?
Browsers block autoplay with sound, so the player must be muted to autoplay.
More free YouTube tools
Want your channel and Instagram to grow faster?
ViralSocialUp brings real, targeted followers to your Instagram profile on autopilot. Plans start from ₹749/month.
See plans →