YouTube tool guideGenerate YouTube iframe code with useful playback options
Enter a public YouTube URL, choose a start time, show or hide controls and select the standard or privacy-enhanced host.
The generated iframe can be copied into a website that permits YouTube embeds. The preview helps confirm the video and options before publishing.
How to use YouTube Embed Generator
- Enter the video URL.Paste a supported YouTube watch, short, Shorts, Live or embed URL.
- Choose playback options.Set the start time in seconds, controls and preferred YouTube host.
- Generate the iframe.Toolyma creates embed markup and loads a browser preview.
- Copy and test.Paste the code into your site and verify it within your own layout and consent setup.
Practical ways to use this YouTube tool
Embed a tutorial
Add an instructional video to a help page.
Start at a key moment
Send viewers directly to the relevant section of a longer video.
Prepare CMS markup
Copy iframe code into a platform that accepts HTML embeds.
Use privacy-enhanced mode
Generate a youtube-nocookie.com embed when appropriate for your consent design.
Behavior, privacy and limitations
- Public embeddable videos: owner restrictions can prevent playback outside YouTube.
- Privacy mode scope: youtube-nocookie.com reduces some pre-playback storage but does not replace consent or privacy compliance.
- Fixed base size: the generated iframe is 560 by 315 pixels; responsive behavior depends on your site CSS.
- External content: the preview connects to YouTube and remains subject to YouTube availability.
Frequently asked questions
What URLs are accepted?
Common watch, youtu.be, Shorts, Live and embed URLs are supported.
Can the video start later?
Yes. Enter the desired start time as a number of seconds.
Can I hide player controls?
Yes. Choose Hidden before generating the code.
What is privacy-enhanced mode?
It uses the youtube-nocookie.com embed host; your own privacy obligations still apply.
Why does the preview refuse to play?
The video owner may have disabled embedding or the video may be unavailable.