NathanTools
NathanTools
Text Tools 13
SEO Tools 7
Image Tools 19
YouTube Tools 38
Device Tests 4
PDF Tools 10
Calculators 52
Electrical Calculators 10
Time Tools 7
Random Tools 9
Converters 14
Developer Tools 11
Hash Generators 5
Password & Security 2
Network & DNS 3
Website Tools 9

YouTube Embed Code Generator

Paste a video link, choose start time, autoplay and other options, and copy responsive embed code with a live preview.

100% free No sign-up Works on any device

Embed code

Size

How to generate YouTube embed code

  1. Paste the video link. Shorts, youtu.be and playlist links all work.
  2. Set a start or end time and pick the options you want. The preview updates as you go.
  3. Press Copy code and paste it into your page's HTML.

Embed parameters

ParameterWhat it does
start / endPlay from and to a time, in seconds
autoplay=1Start playing on load (browsers require mute=1 too)
loop=1 + playlist=IDRepeat the video (loop needs the playlist parameter)
controls=0Hide the player controls
cc_load_policy=1Turn captions on by default
rel=0Show related videos from the same channel only
loading="lazy"Load the player only when it scrolls into view

The responsive code uses CSS aspect-ratio, so the video fills the width of its container at 16:9 on every screen. Want to see the video without the rest of YouTube? Try the distraction-free player.

Frequently asked questions

Paste the video link, choose your options, and press Copy code. Paste the code into your page's HTML where you want the video. In WordPress, use a Custom HTML block; in Wix, Squarespace or Shopify, use their Embed or Code block.

Type the start time (like 1:30) in Start at. The code adds start=90 so the video begins 90 seconds in. You can set an end time the same way.

Browsers block videos that autoplay with sound. Turn on Mute together with Autoplay and the video will start on its own; viewers can unmute it.

It uses youtube-nocookie.com, so YouTube doesn't set cookies for a visitor until they play the video. It's a good default for sites that need to respect cookie consent rules like GDPR.

The uploader has turned off embedding, the video is private, or it's blocked in the viewer's country. Check it with the private video checker.
All YouTube Tools
Channel ID Finder Get any channel's permanent ID from a link, @handle or video. Tag Extractor See and copy the hidden tags on any YouTube video. Tag Finder A video's tags plus the tags its channel uses most. Keyword Finder The SEO keywords a video targets in its title, description and tags. Comments Viewer Browse a video's comments with likes, dates and replies. Comment Finder Search a video's comments for any word or name. Comment Sentiment Analysis How positive or negative a video's comments are. Description Viewer Read and copy a video's full description, links and hashtags. Thumbnail Downloader Download any video's thumbnail in every size up to HD. Profile Picture Downloader Save a channel's profile picture in full size. Banner Downloader Download a channel's banner art in full resolution. Channel History Viewer Every public upload from a channel, oldest or newest first. Metadata Viewer Every public detail of a video or channel. Upload Date Finder The exact date and time a video went public. Private Video Checker Is a video public, unlisted, private or removed? Age Restriction Checker See whether a video is age restricted or made for kids. Dislike Checker Estimated dislikes and like ratio for any video. Like Counter Live like, view and comment counts that refresh on their own. Live Subscriber Count A channel's subscriber count, refreshed every 30 seconds. SEO Score Checker Score a video's title, description and tags out of 100. Channel Finder Search YouTube channels by name or topic. Video Finder Find a video's link from its title or a few words. Rank Checker Where a video ranks in YouTube search for a keyword. Deleted Video Finder Find the title of a deleted or private video in web archives. Link Parser Break any YouTube URL into its video, playlist and time parts. Distraction-Free Player Watch a video without comments, recommendations or tracking cookies. YouTube Money Calculator Estimate daily, monthly and yearly earnings from views. Views to Money What a view count is worth in every niche. Video Money Calculator One video's ad revenue from your own CPM or RPM. Income Calculator Ads, Shorts, sponsors, affiliates, memberships and merch together. Live Stream Earnings Calculator Ads, Super Chat and memberships from a live stream. Watch Time Calculator Your progress to 4,000 watch hours, and how long it will take. BPM Finder Tap along to a song to find its tempo. Channel Name & Idea Generator Channel names, concepts and first video ideas for any niche. Title Generator Click-worthy title ideas, scored for length and hook. Comment Generator Thoughtful comments and replies in the tone you pick. Hashtag Generator Relevant hashtags for videos and Shorts, ready to paste.
Esc
↑ ↓ to moveEnter to open