Video Schema Generator
Generate VideoObject JSON-LD structured data for a YouTube video, to help it show up as a rich video result in search.
Recommended Settings
Pro Tips
- •Structured data makes your page eligible for a rich video result in search, but doesn't guarantee one - that's ultimately up to the search engine
- •The thumbnail is automatically pulled from YouTube's standard thumbnail URL for your video
- •Duration is converted to the ISO 8601 format search engines expect (like PT12M34S) from a simple mm:ss you type
- •Paste this schema into the <head> or body of the page where the video is embedded, not on a page without the actual video
Most Popular
Most users fill in title, description, and duration to give search engines a complete picture of an embedded video
When to Use This Tool
Add structured data to a page where you've embedded a YouTube video.
Make an embedded video eligible for a video thumbnail and preview in search results.
Provide search engines with clear, structured video metadata.
Improve discoverability for a blog post or landing page featuring a video.
How It Works
Extract the video ID from your pasted URL to build the correct content and embed URLs
Convert your entered duration into the ISO 8601 duration format search engines expect
Assemble everything into a standard schema.org VideoObject JSON-LD script tag
100% Private
Files never leave your device. All processing happens locally in your browser.
Lightning Fast
Powered by Schema.org VideoObject JSON-LD structured data for optimal performance on modern browsers.
Open Source
Built with verified, open-source libraries. Fully transparent.
Frequently Asked Questions
Does adding this guarantee a rich result in search?
No, structured data only makes your page eligible for a rich video result - whether search engines actually display one depends on their own algorithms and quality guidelines.
Where should I put this code?
Add it to the HTML of the page that actually contains the embedded video - ideally in the <head>, though schema.org markup is also commonly placed in the body.
What duration format does this use?
It converts your simple mm:ss or h:mm:ss input into ISO 8601 duration format (like PT12M34S), which is what schema.org and search engines expect.
Is my data sent to a server?
No. The schema markup is generated entirely in your browser.
Do I need every field filled in?
Title and a valid video URL are required to generate schema. Description, upload date, and duration are optional but recommended for a more complete result.