YouTube Tools
YouTube Embed Generator
Generate a customizable YouTube embed code - autoplay, loop, hidden controls, a start time, and privacy-enhanced mode.
How to use it
- Paste a YouTube URL (watch, youtu.be, shorts, or embed) or just the video ID.
- Choose autoplay, loop, controls, a start time, and a size to fit your page.
- Copy the generated iframe code, or check the live preview first.
About this tool
Generate a ready-to-paste iframe embed code for a YouTube video, with options for autoplay, loop, controls, a start time, and YouTube's privacy-enhanced (nocookie) mode.
Frequently asked questions
- What is privacy-enhanced mode?
- It serves the embed from youtube-nocookie.com, YouTube's own domain that doesn't store view-related cookies until playback actually starts.
- How does looping a single video work?
- YouTube's embed player only loops within a playlist context, so looping one video also requires that video to be set as its own single-video playlist - this tool handles that automatically when you enable loop.
- Can I set a custom size?
- Yes - width and height are both configurable and included directly in the generated embed code.