web performance and seo
Structured data
Machine-readable code that helps Google display your images in rich search results.
What is Structured data?
Structured data is machine-readable code added to a webpage's HTML that explicitly describes the content to search engines using standardized Schema.org vocabulary. This markup enables Google to display enhanced "rich results" with image thumbnails, star ratings, and other visual elements instead of plain blue links. Google officially recommends JSON-LD format as a standalone script block that's separate from your visible HTML content.
Importance of Structured data
Without structured data for images, Google must guess which image represents your content and may choose poorly or not display any image at all in search results. With proper ImageObject schema markup, you explicitly tell Google which image to use, its dimensions, and its purpose—dramatically improving your chances of appearing in rich results that can increase click-through rates by 35% on average.
Structured data in Practice
An e-commerce page selling a camera would use Product schema with an embedded ImageObject declaring the main product photo's URL, 1200×800 pixel dimensions, and alt text. When users search for that camera model, Google can confidently display the specified image thumbnail in product rich results, leading to higher visibility and click-through rates compared to text-only listings.
Structured data Best Practices
- → Use JSON-LD format in a script tag rather than inline microdata markup.
- → Ensure every structured data property matches visible content on your page exactly.
- → Embed ImageObject within broader schema types like Article or Product rather than using it standalone.
- → Validate all markup using Google's Rich Results Test before publishing.
- → Include complete image URLs, pixel dimensions, and descriptive names in ImageObject properties.
Example of Structured data
Related Terms
Frequently Asked Questions
What is structured data and how does it work?
Structured data is standardized code that explicitly tells search engines what your webpage contains instead of making them guess from your content. You add JSON-LD script tags to your HTML that declare "this page contains a product that costs $50" or "this article's main image is located at this URL." Google uses this information to create enhanced search results with images, prices, ratings, and other rich elements that stand out more than plain blue links.
How do I add structured data for images?
Add ImageObject schema within broader content types like Article or Product using JSON-LD format in your page's head or body section. Include the image URL, pixel dimensions, alt text, and descriptive name as properties. For example, embed an ImageObject with your product's main photo URL and 1200×800 dimensions within Product schema markup. Always validate your markup with Google's Rich Results Test before publishing.
Does adding structured data to images improve search rankings?
Structured data doesn't directly improve search rankings, but it significantly increases click-through rates by enabling rich results with image thumbnails. Studies show pages with structured data receive 25-82% higher click-through rates than plain listings, and higher CTR can indirectly signal relevance to Google. The visual appeal of rich results with properly marked up images makes users more likely to click your listing over competitors without enhanced displays.