YouTube Thumbnail Downloader
Grab any public YouTube video thumbnail in all official sizes — instantly, no login.
Open toolHome › Tools › Video Tools › YouTube Embed Code Generator
Build a clean, privacy-friendly YouTube embed in seconds. Choose start and end times, autoplay, mute, loop, captions, "no related videos", and a responsive 16:9 wrapper — then copy ready-to-paste HTML.
When you paste a YouTube URL into a website builder, you get a basic iframe with YouTube's defaults: related videos from other channels appear after playback, tracking cookies fire on page load before the visitor presses play, the iframe breaks proportions on mobile viewports, and if you needed the video to start at 2:15 and stop at 4:45, you'd need to know the URL parameter syntax to do it manually. None of this is configurable through YouTube's standard embed dialog.
The AT USE YouTube Embed Code Generator controls every YouTube iframe parameter that matters for a production embed. Privacy-enhanced mode routes the embed through youtube-nocookie.com, which delays setting tracking cookies until the visitor actually clicks play — compliant with GDPR and ePrivacy Directive requirements without requiring a consent gate that blocks the video. Start time and end time set the exact clip range to the second. Autoplay pairs automatically with mute (the only configuration modern browsers allow for autoplay). Loop, default captions, and the related-videos setting are single checkboxes. The responsive wrapper option outputs a fluid 16:9 container that scales the iframe correctly from a 375px phone to a 2560px desktop.
The output is plain HTML — no JavaScript framework, no npm package, no third-party dependency. Copy the code block and paste it into any CMS, static site generator, email template, or documentation page.
Privacy-enhanced mode switches the embed host from youtube.com/embed/ to youtube-nocookie.com/embed/. YouTube's nocookie domain delays all tracking cookies until the user initiates playback. This satisfies the GDPR legitimate-interest threshold for embedded video under most EU data protection authority guidance — the embed loads, the user sees the video preview, no cookies fire unless they choose to play.
Start and end time are passed as start=N and end=N integer seconds. The generator converts mm:ss and hh:mm:ss inputs to the correct integer values. For end time to work reliably, the JavaScript API must be enabled — the generator adds enablejsapi=1 automatically when end time is set.
Autoplay + mute are always paired. Chrome 66, Safari 12, Firefox 61, and every browser since 2018 blocks autoplay of audible content unless the user has previously interacted with the page. Muted autoplay is permitted. If you need audio on load, the browser policy makes that impossible for new visitors — a click-to-play poster setup is the alternative.
Loop requires playlist={video_id} alongside loop=1 — the generator adds both parameters automatically. Note that YouTube's loop always returns to timestamp 0, not to the custom start time.
Hide related videos adds rel=0. Since 2018, this shows only videos from the same channel at the end of playback rather than zero related videos — a meaningful improvement over the default but not a complete suppression.
Responsive wrapper outputs the standard CSS aspect-ratio container: a relative-positioned div with padding-top: 56.25% (the 16:9 ratio) containing an absolutely-positioned iframe that fills 100% width and height. This pattern works in every browser back to IE9 without any JavaScript or CSS framework dependency.
Every modern browser (Chrome 66+, Safari 12+, Firefox 61+, Edge 79+) blocks autoplay of audible content unless the visitor has previously interacted with the domain. The generator pairs autoplay with mute automatically — muted autoplay is allowed and will work. Unmuted autoplay is blocked for new visitors regardless of embed settings.
The rel=0 parameter limits the "up next" panel to videos from the same YouTube channel rather than unrelated recommendations. YouTube removed the ability to hide all related videos entirely in 2018. rel=0 still provides a meaningful improvement for embedded content — it stops a competitor's video from appearing as the suggestion after your content plays.
No. youtube-nocookie.com is an official YouTube domain that serves the same player and video content. Start/end times, autoplay, loop, captions, and all other parameters work identically. Some corporate networks that whitelist YouTube domains explicitly may need youtube-nocookie.com added to their allowlist — but for standard deployments, there is no functional difference.
This is a YouTube iframe API limitation. The loop parameter always returns to the beginning of the video (0:00), not to a custom start time. Looping a specific segment requires custom JavaScript via the YouTube Player API, which an iframe embed cannot do without additional code outside this generator.
Yes — Shorts URLs are parsed the same as regular video URLs. However, Shorts are vertical (9:16) content. The responsive wrapper defaults to 16:9 (padding-top: 56.25%). For a portrait embed, change the padding-top value in the wrapper from 56.25% to 177.78% to get a 9:16 container.
Yes. No account required, no watermark, no usage limit. The generator runs entirely in your browser and does not send any data to our servers.
Keep going
Other tools in the Video category on AT USE.
Grab any public YouTube video thumbnail in all official sizes — instantly, no login.
Open toolSolve width, height, or aspect ratio for any video — with presets for 16:9, 9:16 Shorts, square, and ultrawide.
Open toolBuild deep links to specific moments in a YouTube video. Bulk convert chapter lists in one paste.
Open toolFormat your timestamp list into a YouTube-compliant chapter description block.
Open toolGenerate Vimeo embed code with DNT mode, custom color, autoplay, loop, and a responsive wrapper.
Open toolConvert subtitles between SRT, VTT, ASS, SBV, and plain TXT — entirely in your browser.
Open tool