Microdata SEO: Microdata vs JSON-LD vs RDFa, and What to Do With Old Markup
Microdata SEO means adding itemscope, itemtype and itemprop attributes to a page's visible HTML, with schema.org types, so Google can show rich results such as price and stock status. Google still accepts microdata, rates it as fine as JSON-LD and RDFa when the markup is valid, and in most cases recommends JSON-LD as easier to maintain.
By Raúl Díaz, founder of Slibur
13 min read

In this article
So working microdata rarely needs an emergency rewrite. Some situations do justify the work: markup that still points to the retired data-vocabulary.org vocabulary, templates that cannot carry the properties Google asks for, a plugin that already prints a second copy, and a redesign that rewrites the templates anyway. Below you will find the same product written in all three formats, the reasons behind Google's preference, a migration plan that keeps rich results, and what is left of microformats such as hCard and hReview.
What microdata is, and what it changes in search
Microdata is a set of HTML attributes, defined in the WHATWG HTML standard, that turns parts of a page into items with properties. You add the attributes to elements you already have. The heading that shows a product's name gets itemprop="name"; the block that wraps the product gets itemscope plus an itemtype saying what kind of thing it is.
| Attribute | What it does |
|---|---|
itemscope | Starts a new item. Elements inside it can describe that item. |
itemtype | Names the type with a URL, such as https://schema.org/Product. |
itemprop | Marks an element's text, or its content, href or src value, as a property of the item. |
itemid | Gives the item a global identifier, written as a URL. |
itemref | Pulls in properties from elements elsewhere on the page, by their id. |
Two terms get mixed up constantly. Schema.org is the vocabulary: it defines types such as Product, Offer and Organization, and the properties each one can have. Microdata, RDFa and JSON-LD are three ways of writing that vocabulary into a page. Google's introduction to structured data (opens in a new tab) says most search structured data uses schema.org and accepts all three syntaxes.
What markup changes is eligibility for rich results, not rank. Google's general guidelines say structured data enables a feature without guaranteeing it will be shown, and John Mueller repeated in April 2025 that structured data does not make a site rank better. Choosing one syntax over another changes neither, as long as the markup is valid.
Rich results are a Google Search feature. Whether ChatGPT names your brand when a customer asks for a recommendation is a different measurement, the one a ChatGPT SEO tool takes.
The same product in microdata, RDFa and JSON-LD
The three listings below describe one product page: a daypack with a name, image, description, brand, price, currency and stock status. To keep them short, each line shows one HTML element as its tag name followed by the attributes you add, without angle brackets or closing tags. The text after the arrow is what a visitor sees, and indentation shows nesting.
Microdata
div itemscope itemtype="https://schema.org/Product"
h1 itemprop="name" → Example 30L Daypack
img itemprop="image" src="https://www.example.com/img/daypack-30l.jpg" alt="Example 30L Daypack"
p itemprop="description" → A 30-liter daypack with a padded laptop sleeve.
div itemprop="brand" itemscope itemtype="https://schema.org/Brand"
span itemprop="name" → ExampleBrand
div itemprop="offers" itemscope itemtype="https://schema.org/Offer"
span itemprop="price" content="89.00" → $89.00
meta itemprop="priceCurrency" content="USD"
link itemprop="availability" href="https://schema.org/InStock"
Each nested item (the brand, the offer) needs its own itemscope and itemtype. The price carries a content value so machines read a plain number instead of the formatted price shown to shoppers. Currency and stock status have no visible element of their own, so they sit on meta and link elements.
RDFa
div vocab="https://schema.org/" typeof="Product"
h1 property="name" → Example 30L Daypack
img property="image" src="https://www.example.com/img/daypack-30l.jpg" alt="Example 30L Daypack"
p property="description" → A 30-liter daypack with a padded laptop sleeve.
div property="brand" typeof="Brand"
span property="name" → ExampleBrand
div property="offers" typeof="Offer"
span property="price" content="89.00" → $89.00
meta property="priceCurrency" content="USD"
link property="availability" href="https://schema.org/InStock"
RDFa (Resource Description Framework in Attributes) follows the same idea with other attribute names. vocab declares the vocabulary once, typeof starts an item and names its type, and property marks a value. It can mix several vocabularies on one page, and the Open Graph tags that social networks read are often written as RDFa, which matters when you look at adoption numbers below.
JSON-LD
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Example 30L Daypack",
"image": "https://www.example.com/img/daypack-30l.jpg",
"description": "A 30-liter daypack with a padded laptop sleeve.",
"brand": { "@type": "Brand", "name": "ExampleBrand" },
"offers": {
"@type": "Offer",
"price": "89.00",
"priceCurrency": "USD",
"availability": "https://schema.org/InStock"
}
}
JSON-LD (JavaScript Object Notation for Linked Data) moves everything into one block that goes inside a script element with type="application/ld+json", in the head or the body. The visible HTML goes back to plain headings, images and prices, and the block repeats their values.
Written out as full HTML, all three get the same reading in the Schema Markup Validator: one Product with a Brand and an Offer, seven values, no errors and no warnings. Search engines see one product either way. The difference is where the data lives and who has to keep it right.
| Job | Microdata | RDFa | JSON-LD |
|---|---|---|---|
| Declare the vocabulary | Inside the itemtype URL | vocab="https://schema.org/" | "@context": "https://schema.org" |
| Start an item and name its type | itemscope itemtype="https://schema.org/Product" | typeof="Product" | "@type": "Product" |
| Add a property | itemprop="name" | property="name" | "name": "Example 30L Daypack" |
| Give an item an identifier | itemid | resource | "@id" |
| Store a value with no visible text | meta with itemprop and content | meta with property and content | Any key (the whole block is invisible) |
Why Google recommends JSON-LD but still accepts microdata
Google's documentation holds two positions at once. It recommends the format that is easiest for you to implement and maintain, adding that in most cases this is JSON-LD, and in the same sentence calls all three formats equally fine. That last clause was added in February 2023 to clear up confusion over which format Google preferred.
Ryan Levering, a Google engineer who works on structured data, explained at the time that Google mainly recommends JSON-LD because sites get microdata wrong far more often, that there were no plans to remove microdata support, and that microdata can make more sense for markup that is very simple or heavy on annotated text.
The practical reasons behind the recommendation:
- Separation from the design. Google notes that JSON-LD is not interleaved with the visible text, which makes nested items easier to express. A designer can rebuild a template without breaking the markup, and a developer can fix the markup without touching the design.
- One block, built from data. A CMS can generate the block from database fields instead of relying on attributes scattered through theme files. WooCommerce made exactly this switch in version 3.0, released on April 4, 2017: structured data had been printed inline in its template files, and moving to JSON-LD kept the templates cleaner and kept the data when theme developers customized them.
- It can be added with JavaScript. Google reads JSON-LD injected by a script or by Google Tag Manager, though its guide to generating structured data with JavaScript (opens in a new tab) carries two warnings. Product markup generated on the fly can leave Google crawling for Shopping less often and less reliably, and copying values into a tag manager raises the risk that markup and page disagree. If rendering is new to you, the JavaScript SEO guide explains what Google sees after it runs your scripts.
Microdata's one structural advantage mirrors the first point. Most values sit on the element visitors read, so they cannot quietly drift away from the page; only the ones on hidden meta and link elements, such as currency and stock status, can. Google's guidelines forbid marking up content that readers cannot see. With JSON-LD, following that rule depends on discipline; with microdata, most of it comes built in.
How much of the web uses each format
| Format | Share of websites with structured data (Web Data Commons, October 2024 crawl) | Share of pages (Web Almanac 2024) |
|---|---|---|
| JSON-LD | 70% | 41% |
| Microdata | 46% | 26% |
| RDFa | 3% | 66% (Open Graph tags are often written as RDFa) |
| Microformats | 23% (hCard) | Under 1% |
The Web Data Commons figures come from the October 2024 Common Crawl: 2.4 billion pages from 37.4 million websites, of which 16.5 million carried structured data. The project reports that the number of sites using JSON-LD keeps climbing while microdata has been flat. The Web Almanac counts pages instead and notes that Open Graph, found on 64% of pages, is often encoded as RDFa. Because the two studies count different things, compare the trend inside each column rather than across them.
When keeping microdata is the right call
Start with whether anything is broken. If the markup validates and the rich results appear, switching formats buys you nothing in rankings and costs developer time. Keep it when all of these hold:
- The Rich Results Test, run on one live URL per template, shows the items you expect with no errors.
- Search Console's rich result reports show valid items and no climbing error count.
- The marked-up values match what visitors see, including price, stock and rating.
- The template is stable, and someone on the team knows where the attributes live.
On Magento, the default Luma templates still print Product microdata; the Magento SEO guide covers which properties that markup leaves out and how a JSON-LD block replaces it on that platform.
Move to JSON-LD when one of these applies:
- The markup uses data-vocabulary.org. Older themes wrote types such as
https://data-vocabulary.org/Breadcrumbintoitemtype, from the Google vocabulary that came before schema.org. Google announced on January 21, 2020 (opens in a new tab) that this markup would stop qualifying for rich results and began rolling the change out on July 6, 2020. It earns no rich results today, so convert it to schema.org whatever format you pick. - Google asks for properties your template has nowhere to put. Merchant listings recommend
shippingDetails,hasMerchantReturnPolicy, GTINs andavailability. Adding hiddenmetaelements for each across a theme is harder than filling one JSON-LD block from the catalog, and Google recommends setting shipping and return policies once under Organization markup instead. - A plugin already prints JSON-LD. Review apps and SEO plugins can add their own Product block; one Shopify merchant found the Rich Results Test listing two Product items on every product page. Pick one source and remove the other.
- You are redesigning or replatforming anyway. The templates get rewritten, so writing JSON-LD costs little extra. Add structured data to your site migration checklist so it is tested before launch.
How to migrate from microdata to JSON-LD without losing rich results
- Record what Google sees today. For each template (product, category, article, location page), run one live URL through the Rich Results Test (opens in a new tab) and write down every detected item and property. Note the valid-item counts in Search Console's rich result reports as your baseline.
- Map properties, not attributes. Build the JSON-LD from the same data the template uses, not from the rendered text: the price as a plain number, the currency as a three-letter code, absolute URLs for images. Every property Google reads today needs a matching key, including nested items such as Offer, Brand and AggregateRating.
- Remove the microdata in the same release. Leaving both in place describes the same product twice. When schema.org launched, Google advised against mixing formats on one page because it could confuse its parsers.
- Use syntax graph merge only to connect different items. Since October 2023, Google can link a node written in one syntax to a node written in another, for example a BreadcrumbList in JSON-LD that references a WebPage marked up in microdata. Levering called it a somewhat advanced feature to use carefully and only when necessary. It helps during a partial migration; it is not a license to describe one product in both formats.
- Ship one template at a time. Start where the fewest rich results are at stake, such as articles or location pages, and leave product pages for last.
- Test the live URL, not pasted code. A block injected with JavaScript needs the URL option of the Rich Results Test, since Google says the code option has JavaScript limitations, and URL Inspection then confirms the block reached the rendered page.
- Watch the reports for a few weeks. Valid-item counts move as Google recrawls. In 2018, the owner of a site with more than 150 million pages reported losing 98% of its structured data in Google, and over 40 million indexed pages, after a switch from microdata to JSON-LD. John Mueller answered that the format change would not cause pages to drop from the index and suggested checking those pages with URL Inspection. A dip right after a migration is a reason to inspect URLs, not proof that the format failed.
What happened to microformats (hCard, hReview)
Microformats came before both microdata and schema.org. They appeared around 2005 and use class names rather than new attributes: a contact card was a block with class="vcard" and children such as fn and org, and a review used hreview. Google's first rich snippets, announced on May 12, 2009, read microformats and RDFa, starting with reviews and people through the vCard and hReview types.
Support for microdata followed on March 12, 2010. On June 2, 2011, Google, Bing and Yahoo launched schema.org with microdata as its only format, because in Google's words it "strikes a balance between the extensibility of RDFa and the simplicity of microformats." That sequence is the background to any microformats SEO question today: Google read them first, then built its rich results on schema.org.
Today Google's structured data documentation lists JSON-LD, microdata and RDFa, and its rich result features are documented with schema.org types. On January 21, 2020, asked whether Google still supported microformats, John Mueller replied that it did and that there were no changes to announce. Both statements can be true at once. Google may still parse the classes, but no current rich result is documented with them, so hCard or hReview on its own is not a route to stars or business details in search.
Bing's tooling went wider. When Bing added JSON-LD to the Markup Validator in Bing Webmaster Tools on July 30, 2018, microformats and Open Graph were on the tool's list of supported markup, next to microdata and RDFa. That describes what its validator checked in 2018, not what Bing displays today.
Microformats2 renamed and simplified the system: h-card, h-entry, h-event and h-feed start an object, and prefixes mark property types (p- for text, u- for URLs, dt- for dates, e- for embedded HTML). MDN's guide to microformats (opens in a new tab) covers the syntax and notes that the Webmention standard uses microformats to send comments and other messages from one site to another.
Outside that IndieWeb niche, usage is small: the Web Almanac 2024 puts classic microformats on under 1% of pages, reports a decline since 2022 led by review properties such as hReview, and finds h-entry and h-card on 0.22% of mobile pages.
If your theme or an old template still prints microformats, there is no need to strip them out for search, and a Webmention endpoint or feed reader may rely on them. For rich results, add the schema.org equivalent:
| Microformat you may still have | Schema.org type to add for rich results |
|---|---|
| hCard or h-card describing a business | Organization or LocalBusiness |
| hCard or h-card describing a person | Person |
| hReview or h-review | Review, plus AggregateRating for a summary score |
| hCalendar or h-event | Event |
| hProduct | Product with an Offer |
For the Organization part, the semantic SEO guide shows how sameAs links tie your brand to its profiles so search engines treat it as one entity.
What ChatGPT said about microdata, JSON-LD and microformats
We asked ChatGPT four questions on November 21, 2026, from the United States:
- Is microdata still good for SEO, or should I switch my schema markup to JSON-LD?
- What is the difference between microdata, RDFa and JSON-LD for structured data?
- How do I migrate schema markup from microdata to JSON-LD without losing rich results in Google?
- Does Google still support microformats like hCard and hReview for rich snippets?
What came back:
- The same default every time. All four answers pointed to JSON-LD as the format to use. None told readers to rewrite working microdata in a hurry: the first answered "Not necessarily" to migrating valid markup and listed when it is worth doing.
- One source. Three answers cited pages, and all eight citations went to Google Search Central, mostly its structured data documentation. The answer comparing the three formats cited nothing at all.
- A flat no on microformats for rich results. Asked about hCard and hReview, ChatGPT said they are not a supported path to Google rich results, which matches the documentation. It left out Mueller's 2020 reply that Google still supports them.
- No syntax graph merge. The migration answer warned that keeping both formats can create conflicting duplicates and suggested a short overlap at most. It did not mention that Google has connected the two syntaxes since October 2023.
On a technical question, ChatGPT went straight to the documentation of the company that sets the rules, so a page that only restates those rules competes with Google itself. The migration answer did suggest starting with one low-risk template. None of the four mentioned retired data-vocabulary.org markup, platform templates such as Magento's and WooCommerce's, or real migration cases like the 2018 one above, and that is where a third-party page still adds something.
Whether the markup format changes what AI assistants cite is a separate question, with thin evidence so far. The schema markup guide's section on whether schema helps AI assistants cite you sorts what Google and Microsoft have said from what tests have found. None of those tests set microdata against JSON-LD on the same pages, so they give no reason to switch formats for AI alone.
Check the markup, then check the answers
The Rich Results Test and Search Console tell you whether Google can read your markup. Our free AEO checker looks at a page from the other side: paste one URL to see whether answer engines can reach it, read it and quote a direct answer from it, with 16 checks and a score.
Neither shows whether an assistant brings up your brand when a customer asks. That is what Slibur records: for the questions you choose, it shows which brands ChatGPT, Google AI Overviews, Claude, Perplexity and Grok name, where yours sits in each answer and which pages they cite, including answers that cite your site without naming you. The 7-day free trial needs no credit card and covers up to 10 prompts.
Frequently asked questions
Is microdata bad for SEO?
No. Google accepts microdata, JSON-LD and RDFa and calls all three equally fine when the markup is valid and follows the documentation for each rich result. It recommends JSON-LD because it is easier to maintain, not because microdata performs worse. Microdata that passes the Rich Results Test and matches the visible page can stay.
Can I use microdata and JSON-LD on the same page?
Yes, for different items, such as a Product in microdata and a BreadcrumbList in JSON-LD. Since October 2023 Google can even connect nodes across the two syntaxes. Avoid describing the same item in both formats: duplicate Product blocks show up as two items in the Rich Results Test, and the two sets of values tend to drift apart.
Will switching from microdata to JSON-LD improve my rankings?
Not by itself. Google calls the three formats equally fine, and John Mueller said in April 2025 that structured data does not make a site rank better: it is used to display search features. Migrate for maintenance reasons: easier updates, properties your template cannot carry, a plugin that already prints JSON-LD, or a redesign that rewrites the templates anyway.
What is the difference between microdata and metadata?
Metadata describes the page as a whole, in tags such as the title and the meta description inside the head. Microdata labels specific things inside the page, such as a product, its price or the author of an article, with schema.org types, so search engines can understand them and show rich results.
Are microformats still useful for SEO?
Not for Google rich results. Google documents its rich results with schema.org types in JSON-LD, microdata or RDFa, and microformats are not on that list. Microformats such as h-card and h-entry still matter on IndieWeb sites that use Webmention. Keep them if something relies on them and add schema.org markup for search.
How do I check the microdata on my site?
Run a live URL through Google's Rich Results Test to see which rich results the page qualifies for, and through the Schema Markup Validator to see every schema.org item it finds, whatever the format. Search Console's rich result reports then show valid items and errors across the whole site.

Raúl Díaz is the founder of Slibur, the tool that asks ChatGPT, Google AI Overviews, Claude, Perplexity and Grok the questions your customers ask and shows which brands they recommend. He writes about answer engine optimization from the data Slibur collects.