This guide answers: structured data explained: json-ld, microdata and rdfa
Structured data explained: JSON-LD, Microdata and RDFa
Learn how JSON-LD, Microdata and RDFa differ, why Google recommends JSON-LD, and how schema.org markup makes your pages eligible for rich results.
By Hannah Wells, Technical SEO, site performance and online stores
· 6 min read
updated

Short answer
Structured data is machine-readable information added to a page so search engines understand what it is about. It comes in three syntaxes: JSON-LD, Microdata and RDFa. All three can express schema.org vocabulary. Google Search Central recommends JSON-LD, and for almost every site that is the one to use.
Key points
- Structured data is information written for machines, not for human readers.
- JSON-LD lives in its own <script type="application/ld+json"> tag, in the head or the body.
- Microdata puts the labels directly inside your existing HTML tags.
- RDFa is an older W3C standard. It also embeds labels in HTML attributes, using prefix, typeof, property and resource.
What are structured data, schema markup, and why they matter
Structured data is information written for machines, not for human readers. A visitor sees a headline, an author and a date. A crawler sees text and has to guess which part is which. Structured data removes the guesswork by labelling each element explicitly.
The labels come from a shared vocabulary, schema.org. It is maintained jointly by Google, Microsoft, Yahoo and Yandex. When people say “schema markup”, they mean markup that uses this vocabulary. The vocabulary says what things are called. The format says how you write them down. That distinction matters for the rest of this guide.
The practical payoff is eligibility. When your markup follows Google’s rules, a page can qualify for rich results such as review stars, recipes, jobs or events. Eligible does not mean guaranteed. Google decides case by case.
One point needs to be stated plainly. Google says structured data is not a ranking factor. It makes a page eligible for enhanced display. It does not push the page higher. Structured data also does not replace good content. A thin page with perfect markup is still a thin page.
Visible text for people
JSON-LD, Microdata or RDFa, using schema.org vocabulary
Reads the labels, may show a rich result
JSON-LD: the format Google recommends
JSON-LD lives in its own <script type="application/ld+json"> tag, in the head or the body. It is separate from the visible HTML. You can add it, edit it or remove it without touching the layout.
JSON-LD is a syntax for schema.org, not a rival to it. The schema.org site publishes an official JSON-LD context for this purpose. Treating “schema.org” and “JSON-LD” as two competing options is a common mistake.
Here is a minimal example for a news article:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "NewsArticle",
"headline": "Example headline",
"author": {
"@type": "Person",
"name": "Example Author"
},
"dateModified": "YYYY-MM-DD"
}
</script>
Why does Google prefer it? Maintenance and reliable parsing. The markup is one self-contained block, so a template change is unlikely to break it. It also works with content injected by JavaScript, which matters for single-page apps and frameworks such as Next.js. Microdata and RDFa need the HTML to be present in the DOM when the page is crawled.
Microdata: embedded in HTML
Microdata puts the labels directly inside your existing HTML tags. You use the attributes itemscope, itemtype and itemprop. There is no extra script. The markup and the visible content are the same element.
Here is the same article in Microdata:
<article itemscope itemtype="https://schema.org/NewsArticle">
<h1 itemprop="headline">Example headline</h1>
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
<span itemprop="name">Example Author</span>
</span>
<meta itemprop="dateModified" content="YYYY-MM-DD">
</article>
The upside is compactness. The downside is coupling. Every label is wired into the DOM, so a redesign, a plugin update or an editor changing a tag can silently break it. Content added by JavaScript after load is also a problem, because Microdata needs the HTML to be there at crawl time.
No SEO case is known where Microdata does better than JSON-LD. Its only real argument is simplicity on a small, static page that you already hand-code.
RDFa: the W3C standard for linked data
RDFa is an older W3C standard. It also embeds labels in HTML attributes, using prefix, typeof, property and resource. It came before JSON-LD and Microdata and was designed for linked data interoperability.
Its strength is expressiveness. It can describe more complex relationships between things than Microdata can. For SEO, that power is rarely needed.
A minimal version of the same article:
<article vocab="https://schema.org/" typeof="NewsArticle">
<h1 property="headline">Example headline</h1>
<span property="author" typeof="Person">
<span property="name">Example Author</span>
</span>
<meta property="dateModified" content="YYYY-MM-DD">
</article>
For SEO, RDFa is effectively dead. It survives mostly in academic and government settings where linked data interoperability is the goal. How widely it is used there is an assumption, not a measured fact. Do not choose RDFa for a search project.
Comparing the three formats: when to use each
| Criterion | JSON-LD | Microdata | RDFa |
|---|---|---|---|
| Implementation | Separate script block | Attributes inside existing tags | Attributes inside existing tags |
| Maintenance | Easy, independent of layout | Fragile, tied to the DOM | Fragile, tied to the DOM |
| JavaScript-injected content | Works | Needs HTML present at crawl | Needs HTML present at crawl |
| Expressiveness | Good for common needs | Good for simple cases | Richest relationships |
| SEO support | Recommended by Google | Readable, not recommended | Rarely relevant |
The verdict is short. Use JSON-LD for almost every case. Consider Microdata only if you want absolute simplicity on a small hand-coded page. Keep RDFa for non-SEO contexts such as academic or government linked data.
Pick one format per page. Technically the three can coexist, but mixing them creates duplicate or conflicting descriptions and makes maintenance harder.
How Google Search processes structured data
Google reads schema.org vocabulary by default. It can read JSON-LD that is injected dynamically, but markup that is already present at the first crawl is the safer route.
Rich results appear only when your data respects Google’s general structured data guidelines. Even then, nothing is promised: no rich result, and no change in position. Google’s documentation lists each supported entity type with its own requirements, so check the Search Central page for the type you want to mark up. When Google’s documentation and schema.org differ on how Google Search behaves, Google’s documentation wins.
Implementation checklist and best practices
- Choose JSON-LD, unless you work in an academic or linked data context.
- Validate with the schema.org validator and with Google’s Rich Results Test.
- Test the markup before publishing, not after.
- Keep the markup consistent with what visitors actually see on the page.
- Update
dateModifiedwhenever the content really changes. - Do not expect markup to compensate for weak content.
The consistency rule is the one most often broken. Markup that describes something the page does not show goes against Google’s guidelines and can cost you the rich result.
What nobody has published
Some questions come up often, and the documentation we checked does not answer them. We did not find:
- Current figures on how many pages use each format, or any measured effect on impressions.
- Any statement that Google indexes faster with one format than another.
- Reliable data on RDFa adoption in government settings.
- Any roadmap from Google for retiring Microdata or RDFa.
If someone gives you numbers on these points, ask for the primary source.
Sources
- Google Search Central: introduction to structured data (checked 03/12/2026)
- Google Search Central: structured data general policies (checked 03/12/2026)
- schema.org developer documentation and JSON-LD context (checked 03/12/2026)
- schemavalidator.org: Microdata vs JSON-LD guide (checked 03/12/2026)
- rishikc.com: structured data formats compared (checked 03/12/2026)
- seo.yatna.ai: JSON-LD vs Microdata (checked 03/12/2026)
Questions people ask
Does structured data help rankings?
No. Google says it is not a ranking factor. It helps with eligibility for rich results.
Does Google prefer one format?
Yes. Google Search Central recommends JSON-LD.
Can I mix the three formats?
Technically yes, but it is poor practice. Pick one.
What happens if I leave out a field?
Validation tools will flag missing required fields. Whether the page still qualifies is then judged case by case.
Does RDFa still exist?
Yes, but outside SEO.


