YouTube Embed Viewer

Paste a link or existing embed code. We check whether the uploader allows embedding, keep the start offset, preview the player and let you build the embed code.

No signupAccepts embed codeCode builder
Advanced: use your own YouTube API key

Used for this request only and never stored. Leave blank to use the shared quota.

How to use this tool

  1. Paste any YouTube video link.
  2. Configure player parameters: Autoplay, Mute, Loop, Controls, Privacy-Enhanced Mode (nocookie.com), and Start/End timestamps.
  3. Review the live interactive player preview and copy the production-ready HTML iframe snippet.

How it works

Generates standards-compliant HTML5 iframe embed code using YouTube's official embedded player API parameters, including responsive CSS container wrappers (16:9 ratio) and privacy-enhanced domain routing.

When it is useful

Web developers and content creators embedding YouTube videos into blogs, LMS platforms, portfolio sites, and documentation.

Limitations

Videos whose creators disabled 'Allow embedding' in YouTube Studio will display an error inside the player (Error 150/101).

Why you should always use youtube-nocookie.com (GDPR compliance)

When you embed a standard `youtube.com` iframe on your website, Google sets tracking cookies on your visitors' browsers before they even click play. This triggers mandatory cookie banner consent requirements under European GDPR and ePrivacy regulations.

Switching to YouTube's official privacy-enhanced domain (`youtube-nocookie.com`) ensures YouTube will not store tracking cookies unless the visitor explicitly presses play on the video.

Frequently asked questions

ytplaytime.com