Leadmetrics
Free tool, no sign-up

Video schema generator

Generate VideoObject JSON-LD with thumbnail, upload date and duration, so your video is eligible for video results.

At least 1200px wide. This is the image Google shows.

Required. Without it the video is not eligible for a video result.

The raw .mp4. Give this or the embed URL, ideally both.

JSON-LD

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "VideoObject"
}
</script>

Before you ship this

  • Error: Video title is required by Google for this type.
  • Error: Description is required by Google for this type.
  • Error: Thumbnail URL is required by Google for this type.
  • Error: Upload date is required by Google for this type.

How to use it

  1. Enter the video title and description.
  2. Add the thumbnail URL and upload date. Both are required for eligibility.
  3. Enter the duration in seconds. It is converted to an ISO 8601 duration.
  4. Add the video file URL or the embed URL, then copy the generated script tag and paste it into the page head, then confirm it with the Google Rich Results Test.

Four fields are genuinely required

name, description, thumbnailUrl and uploadDate are all required. Unlike most types where requirements are soft, a video missing any of these is simply not eligible for a video result.

The thumbnail should be at least 1200px wide and must be crawlable. It is the image Google shows, so a blocked or tiny thumbnail removes most of the benefit even when the rest validates.

contentUrl and embedUrl do different things

contentUrl is the raw media file, usually an .mp4. embedUrl is the player URL, such as a YouTube embed path. Supply at least one; supplying both is better, because it gives Google a direct route to the media and a way to play it in context.

Point embedUrl at the embed path, not the watch page. A youtube.com/watch?v= URL in that field is a common and silent mistake.

Duration, and why self-hosted video needs this most

Duration is entered here in seconds and converted to the ISO 8601 form schema.org expects. It is optional but drives the duration badge on the result.

If your video is on YouTube, YouTube already provides this markup on its own page. The case where VideoObject genuinely earns its keep is video you host yourself, or embed on a page you want ranked rather than the YouTube page.

Video schema generator FAQ

What does VideoObject require?

A name, a description, a thumbnail URL and an upload date. Miss any of the four and the page is not eligible for a video result, however good the video is.

Do I need VideoObject markup for an embedded YouTube video?

If you want your page, rather than YouTube, to appear with the video thumbnail, yes. Without it Google has to infer the video from the embed and often attributes it elsewhere.

How do I get key moments in search?

Either mark up clips explicitly or let Google derive them from a well-structured description with timestamps. Neither is guaranteed, and both need the base VideoObject markup first.

Which page should carry the markup?

The page where the video is actually watchable, one block per video. Marking up a video on a category page that only links to it is a mismatch, and if several pages claim the same video Google has to choose which one to show.

Does this help my video rank on YouTube?

No. YouTube ranking is a separate system driven by the platform own signals. This markup helps your page appear with a video thumbnail in Google search, which is a different placement and often a more valuable one for a business.

What are the thumbnail requirements?

At least 60 by 30 pixels to be valid, and realistically 1200 pixels wide to look like anything in a result. It must be a crawlable URL in a supported format — a thumbnail blocked by robots.txt is the quiet reason many video results never appear.

What is the difference between contentUrl and embedUrl?

The content URL points at the video file itself, the embed URL at a player that plays it. Supplying both is ideal, and supplying at least one is what lets Google fetch and understand the video rather than take your word for it.

Should I include a transcript?

If you have one, yes. It is a supported property, it makes the content of the video readable, and it benefits anyone who would rather read than watch. Captions and transcripts are the only way the words in a video become text anything can index.

How do key moments work?

Either mark up clips explicitly, each with a start time and a label, or publish a description with timestamps and let Google derive them. Neither guarantees the feature appears, and the explicit version at least means you chose the labels.

Does a self-hosted video need this more than an embed?

Considerably more. An embedded YouTube video is already understood through YouTube; a video file on your own server is invisible without markup. If you host your own video and skip this, you have published something no search engine knows exists.