Why video pages need their own markup
Google can find a video by itself. It crawls the page, spots a player, and tries to work out what the video is. What it cannot reliably work out is the title you intended, the thumbnail you designed, when the video was published, or how long it runs. VideoObject structured data hands over those facts directly. With them, a page becomes eligible for video results in the main search results, the Videos tab and Discover, for key moments that let people jump to a chapter, and, for livestreams, the red LIVE badge.
This generator builds that VideoObject block. You fill in the video details, the tool converts your inputs into the formats Google expects (ISO 8601 dates with a timezone, durations like PT12M45S, chapter start times in seconds), and it checks the result against Google's required and recommended properties as you type.
The three properties Google requires
Google's video documentation has a short required list. Miss any of these and the video is not eligible for video features at all:
- name: the video's title. Make it unique to this video, not your channel name.
- thumbnailUrl: one or more image URLs. Google needs at least 60x30 pixels, in a format it supports (JPEG, PNG, WebP, GIF, BMP, SVG or AVIF), and the file must be crawlable. Supplying 16x9, 4x3 and 1x1 versions lets Google pick the best crop for each surface.
- uploadDate: when the video was first published, in ISO 8601. Include a timezone offset; without one Google assumes its own, which can shift the date.
A few years ago description was also required. It is now recommended, but you should still treat it as essential: it is the text Google has for understanding what happens in the video.
The recommended properties, and which ones matter most
Of the recommended fields, contentUrl is the one Google singles out. It points at the actual video file (an .mp4, .webm or streaming manifest), which lets Google fetch the video, generate previews and detect key moments. If you cannot expose the file, embedUrl points at the player instead, such as a YouTube /embed/ link. Supplying both is best. duration lets Google show the running time on the thumbnail. expires tells Google when to stop showing a video that will be taken down. interactionStatistic carries a view count, and regionsAllowed or ineligibleRegion restrict where it can appear.
Two recommended properties unlock specific features. hasPart holds Clip objects for key moments, and publication holds a BroadcastEvent for livestreams. Both are covered below.
A complete VideoObject block, chapters included
This is the shape the generator produces from its example data. Note the duration (12 minutes 45 seconds) and the chapter start and end times, which are plain numbers of seconds, not clock times.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "VideoObject",
"name": "How to Repot a Monstera Without Killing It",
"description": "Step-by-step demo: pot size, chunky soil and aftercare.",
"thumbnailUrl": [
"https://example.com/thumbs/monstera-16x9.jpg",
"https://example.com/thumbs/monstera-1x1.jpg"
],
"uploadDate": "2026-03-04T09:30:00+00:00",
"duration": "PT12M45S",
"contentUrl": "https://cdn.example.com/video/monstera-repot.mp4",
"embedUrl": "https://www.youtube.com/embed/abc123XYZ",
"interactionStatistic": {
"@type": "InteractionCounter",
"interactionType": { "@type": "WatchAction" },
"userInteractionCount": 48210
},
"hasPart": [
{
"@type": "Clip",
"name": "Loosening the root ball",
"startOffset": 90,
"endOffset": 310,
"url": "https://example.com/videos/monstera?t=90"
}
]
}
</script>Key moments: Clip or SeekToAction?
Key moments are the chapter links Google shows under some video results. There are two ways to get them for videos hosted on your own site (YouTube handles this itself from the timestamps in the video description).
Clip: you define every chapter
Each Clip needs a name, a startOffset in seconds and a url that opens the video at that moment, for example ?t=90. An endOffset is recommended. Use Clip when you already have chapters and want full control over their names. The generator lets you type times as 1:30 and converts them to seconds for you.
SeekToAction: Google finds the moments
Instead of listing chapters, you tell Google how your URLs jump to a timestamp, with a pattern such as https://example.com/video?t={seek_to_second_number}, and Google identifies moments automatically. This only works if your player really honours that parameter, and Google must be able to fetch the video file, so set contentUrl too. Use one approach per video, not both.
Livestreams and the LIVE badge
For a stream, add a publication property containing a BroadcastEvent with isLiveBroadcast set to true and the stream's startDate (and endDate once you know it). Choose "Yes, a livestream" in the form to generate this. Because live content is time-sensitive, Google suggests notifying it through the Indexing API when a stream starts and ends rather than waiting for a normal crawl.
Rules that decide whether markup is used
Google now shows video features mainly for pages where the video is the main content, a so-called watch page. A blog post with a supporting video halfway down can still carry VideoObject markup, but it is unlikely to get a video thumbnail in results. Search Console's Video indexing report spells out the reasons: "Video isn't on a watch page", "Video outside the viewport", "No thumbnail" and similar. Other ground rules:
- The video must be visible and playable on the page that carries the markup.
- Mark up the video on the page it lives on. Do not copy one VideoObject across many pages.
- Everything in the markup, including title, thumbnail and dates, must match what visitors see.
- Thumbnails and the video file must not be blocked by robots.txt or require login.
Markup, video sitemaps, or both?
Google accepts video details from two places: VideoObject markup on the page, and a video sitemap that lists each video with its title, thumbnail, description and file or player location. They carry largely the same information, and Google treats them as complementary. Markup has the advantage of living next to the video, so it is updated whenever the page is. A sitemap is handy for large libraries, because it helps Google discover video pages it might otherwise crawl slowly, and it is the easier place to state restrictions like expiry dates or regions for thousands of videos at once.
For most sites the answer is: always add markup, and add a video sitemap once you have more than a few dozen watch pages. If you use both, make sure they agree. A thumbnail URL in the sitemap that differs from the one in the markup, or an upload date that changes between the two, gives Google conflicting answers.
Hosting matters too. If your videos live on YouTube and you embed them, the YouTube page usually ranks for the video itself. Your own page can still earn a video result, but only if it is a genuine watch page with its own markup, a strong title and supporting text. Self-hosted or third-party players such as Wistia and Vimeo give you more control over that page, at the cost of YouTube's audience.
Putting VideoObject on your watch page
WordPress
- Check whether your SEO plugin already outputs video markup (Yoast Video SEO and Rank Math Pro both can). If so, fill in their fields instead of adding a second block.
- Otherwise, install a snippet plugin such as WPCode, create a new HTML snippet with the generated script, and set it to load in the header of that single post or page only.
- Publish, then test the URL in the Rich Results Test.
Shopify
- Open Online Store, Themes, Customize, and navigate to the page or product template that holds the video.
- Add a Custom Liquid section (or block) and paste the generated script into it. Assign a dedicated template if the video belongs to one page only.
- Save, preview the live page and test it.
Google Tag Manager
- Create a Custom HTML tag and paste the script.
- Trigger it on a Page View where Page URL matches the watch page.
- Publish the container and confirm the markup appears in the rendered HTML with URL Inspection. Server-side markup is still the more reliable choice when you can edit templates.
Common VideoObject mistakes
- Wrong duration format. "12:45" or "765" is not valid; Google expects PT12M45S. The generator converts it for you.
- A YouTube watch link as embedUrl. Use the /embed/ player URL, and put direct video files in contentUrl, not embedUrl.
- A dateless or future uploadDate. Include a timezone and use the real first publication date.
- Thumbnails Google cannot fetch, because they are lazy-loaded through a script, blocked by robots.txt, or too small.
- Clip URLs that ignore the timestamp. If ?t=90 does not actually start the video at 90 seconds, key moments will not be shown.
- Click-to-load facades with no markup. Lightweight players that only load the iframe after a click hide the video from Google. VideoObject markup is what keeps those videos discoverable.
After publishing, use our Video SEO Analyzer to check the whole watch page, not just the markup: thumbnails, transcripts, player placement and social tags all affect how the video performs. To confirm the block parses, run it through the JSON-LD Validator, and if your thumbnails are slow to load, the Lazy Loading Checker shows whether they are hidden behind a script. Our schema markup guide covers how VideoObject fits alongside your other structured data.