Schema Markup Validator

Paste a URL to find every JSON-LD block on the page, check that each one parses and declares a type, and see which are eligible for rich results. Free, instant, no signup.

What this checks & how to fix it

It reads the live page and collects every <script type="application/ld+json"> block. Each one is parsed as strict JSON, unpacked if it uses an @graph array, and every entity inside is checked for a @type. A page with no blocks scores 60 — not an error, but a missed opportunity; a page with blocks scores on the share of them that are valid.

How to fix what it finds

Malformed JSON is almost always a trailing comma, an unescaped quote inside a string, or a template that rendered an empty value where a number was expected — paste the block into the JSON Formatter to get the exact line. Missing @type means an entity object has no type declared. Once every block reads as valid here, run the URL through Google's Rich Results Test to check the per-type required properties.

What this validator checks, and what Google's Rich Results Test checks

The two answer different questions. This tool asks whether the JSON-LD on a live page can be read at all: does each block parse, and does each entity say what it is. Google's Rich Results Test asks whether the page qualifies for a particular rich result. Use this tool first, as the quick way to catch syntax breaks and missing types across every block on a page, then Google's test for the properties each rich result needs. The gaps in this tool are listed plainly so that a green result is not over-read.

CheckThis validatorGoogle's Rich Results Test
InputA live URL, fetched for you. Pasted code is not accepted.A live URL or a pasted code snippet.
Finds JSON-LD blocksYes: every script whose type is exactly application/ld+json, in the head or the body. A type with extra parameters, such as a charset suffix, is not matched.Yes.
Valid JSONYes. A failure reads Malformed JSON-LD (invalid JSON), with no line or character position.Yes.
Every entity has a @typeYes, for each top-level object and each entry of an @graph array.Yes. Each item is read by its type and tested against that type's rules.
A real schema.org type, and a @contextNo. A made-up type, a blank or null type, and a block with no @context all pass.Only types Google supports for rich results. validator.schema.org covers the wider vocabulary.
Required and recommended propertiesNo. A Product with only a name passes.Yes, for supported types: a missing required property is an error, and many missing recommended ones are warnings.
Nested objects (offers, author, review)No. Only top-level objects and @graph entries are examined.Yes. Nested items are tested together with the item that contains them.
Eligibility for a rich resultNo. A type is labelled by name against a fixed list. The label is a hint, not a verdict.Yes. It lists the rich result types the page qualifies for.
Microdata and RDFaNo. A page that uses only these reads as having no structured data.Yes, all three formats.
Markup added by JavaScriptOnly if it is in the HTML the fetch returns. Not guaranteed (see below).Yes, it renders the page first.
Markup matches the visible page, and Google's structured data policiesNo.Not part of the test. Violations surface as manual actions in Search Console.

Where the Schema Markup Validator at validator.schema.org fits

Google's account of the split is short: the Schema Markup Validator checks syntax and compliance with schema.org, and the Rich Results Test checks markup against Google's rich result types. This tool is a lighter, URL-based first pass.

QuestionThis validatorSchema Markup ValidatorRich Results Test
InputA live URL.A URL, or markup pasted in.A URL, or pasted code.
Formats readJSON-LD only.JSON-LD, RDFa and Microdata.JSON-LD, RDFa and Microdata.
What it judgesValid JSON, and a @type on every entity.Syntax and schema.org compliance for any schema.org type. Not Google's rich result rules.Google's rich result types: their required and recommended properties.
Markup added by JavaScriptOnly if the fetched HTML already has it.Reads it.Reads it, from the rendered page.

Start here to learn whether the live page has JSON-LD and whether each block parses. Use the Schema Markup Validator to check markup against the schema.org vocabulary, or when a page uses Microdata or RDFa, and the Rich Results Test for Google's requirements. Google says the Rich Results Test ignores comments inside JSON-LD even though the standard does not allow them, so a block with a comment can pass there and still be reported as malformed here. None of the three can promise a rich result.

Reading a result: a worked example

A product page carries three JSON-LD blocks, each in its own <script type="application/ld+json"> tag. The second has a trailing comma after the currency, and one entity in the third spells its key type instead of @type:

{
  "@context": "https://schema.org",
  "@type": "Organization",
  "name": "Acme Coffee",
  "url": "https://example.com/"
}

{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Espresso Mug",
  "offers": {
    "@type": "Offer",
    "price": "14.00",
    "priceCurrency": "USD",
  }
}

{
  "@context": "https://schema.org",
  "@graph": [
    { "@type": "WebSite", "@id": "https://example.com/#website", "url": "https://example.com/" },
    { "@type": "BreadcrumbList", "itemListElement": [{ "@type": "ListItem", "position": 1, "name": "Mugs" }] },
    { "type": "WebPage", "@id": "https://example.com/mugs/#webpage" }
  ]
}

This is what the tool reports for that page:

What you seeWhat it means
Score 60, and 5 JSON-LD blocks found — 3 valid, 2 with errors3 of 5 entities passed. "Blocks" here means entities: the @graph in the third script is three, and the unreadable second script is one.
Organization, WebSite and BreadcrumbList, in greenAll valid. Organization and BreadcrumbList are on the tool's list of rich result types and say "a type Google can show as a rich result". WebSite is not on it, so its row uses the quieter wording: useful for search engines' understanding, not a rich result on its own.
Invalid block: Malformed JSON-LD (invalid JSON)The second script did not parse. The trailing comma is the cause, but the tool does not say so.
Invalid block: Missing @type in a JSON-LD blockThe WebPage entity in the @graph, because its key is type.

The two red rows do not name a block or a line. They come out in page order, and the green rows list only what passed, so find the culprit by elimination: there is no Product row, so the Product block is the one that failed to parse, and there is no WebPage row, so that is the entity missing its type. Paste a suspect block into the JSON Formatter for the exact position of a syntax break. After deleting the comma and renaming type to @type, the same page reads 5 JSON-LD blocks found — 5 valid with a score of 100. That is still only a syntax result: Google's test may go on to flag missing properties on the Product.

The most common JSON-LD syntax errors

Each of these produces the same message here, Malformed JSON-LD (invalid JSON), because the check is a plain JSON parse. JSON is stricter than JavaScript, which is why code that looks fine in an editor can still fail.

MistakeBrokenFixed
Comma after the last item"USD", }"USD" }
Single quotes, or keys without quotes{'@type': 'Product'}{"@type": "Product"}
Curly quotes pasted from a word processor{“@type”: “Product”}Retype them as straight quotes.
A comment inside the JSON// the mug or /* the mug */Delete it. JSON has no comments.
An empty or placeholder value from a template"price": , or undefined or NaNOutput a quoted value, or leave the property out when it is empty.
Two objects in one script tag{...}{...}One script per object, or one array, or one @graph.
A quote, a line break or a closing script tag inside a stringSee the first block below.Escape them, as in the second block below.
{
  "@type": "Article",
  "headline": "The "best" mug guide",
  "description": "Line one
Line two",
  "articleBody": "Why </script> ends a block"
}
{
  "@type": "Article",
  "headline": "The \"best\" mug guide",
  "description": "Line one\nLine two",
  "articleBody": "Why <\/script> ends a block"
}

The first block fails three ways: the inner quotes end the string early, a raw line break is not allowed inside a string, and the HTML parser ends the script at the first closing script tag. The second block escapes each one. When the message is Missing @type instead, the syntax is fine and an entity has no @type key. The usual causes are a key spelled type or @Type (keys are case-sensitive), a template that dropped it, a bare string or number in an array, or an @graph nested inside another @graph, which is not unpacked.

Valid here, still wrong: mistakes this tool cannot see

A green result here means every block parsed and every entity has a type, not that the values are right. These two blocks both parse, and between them they make six mistakes:

{
  "@context": "schema.org",
  "@type": "Product",
  "name": "Espresso Mug",
  "price": "$14,00",
  "availability": "In stock",
  "aggregateRating": { "@type": "AggregateRating", "ratingValue": "4,6" }
}

{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "How to descale an espresso machine",
  "author": "Jane Doe",
  "datePublished": "24/10/2026"
}

The tool reads the page as 2 JSON-LD blocks found — 2 valid, score 100, with a green Product row and Article row. After the six fixes below it reads exactly the same: the score cannot tell the broken page from the fixed one.

MistakeIn the exampleFix, and the rule behind it
Wrong @context"@context": "schema.org"Use https://schema.org. Schema.org says the http:// form is fine too.
Price outside an Offer, with a symbol and a comma"price": "$14,00" directly on the ProductNest an Offer with price and priceCurrency. Schema.org asks for a currency code instead of symbols such as $, and a dot as the decimal point. Google's product snippet needs a name plus one of offers, review or aggregateRating.
Availability as prose"In stock"Use https://schema.org/InStock. Google also accepts the short name InStock.
Rating with a comma and no count"ratingValue": "4,6"Write 4.6 and add ratingCount. Google asks for a dot, and requires at least one of ratingCount or reviewCount.
Date not in ISO 8601"24/10/2026"Write 2026-10-24. Google's Article page asks for ISO 8601 dates.
A bare string where an object is documented"author": "Jane Doe"Write { "@type": "Person", "name": "Jane Doe" }. Google documents author as a Person or Organization with its own name.

The fixed Product looks like this. The Article only needs its author and date written as the table shows.

{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Espresso Mug",
  "offers": {
    "@type": "Offer",
    "price": "14.00",
    "priceCurrency": "USD",
    "availability": "https://schema.org/InStock"
  },
  "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": 4.6,
    "ratingCount": 128
  }
}

Reading values is the job of the other two tools, against schema.org and Google's property lists respectively. Do not take a green row here as a sign the markup is right.

Error, warning or nothing to do: what each result asks of you

This tool has one error state (red), one warning state and one passed state (green). Google's documentation uses two levels: fix the critical errors, and consider the non-critical issues, which are not needed for eligibility. The table maps one onto the other.

You seeLevelWhat it means and what to do
Invalid block: Malformed JSON-LD (invalid JSON)ErrorThe block is unreadable, so it counts as one invalid block however many entities it held. Fix it first.
Invalid block: Missing @type in a JSON-LD blockErrorOne entity cannot be classified. Add the @type or correct its spelling.
No structured data found, score 60WarningNot a defect. Check View Source first: the markup may be script-injected or Microdata.
Green row: a type Google can show as a rich resultPassedSyntax and type only. Next, test the page in the Rich Results Test.
Green row, quieter wording, or the FAQPage and HowTo wordingPassedNothing to fix. A type list such as ["Restaurant", "LocalBusiness"] lands in the quieter group, and FAQPage and HowTo have no Google feature behind them.
A missing required or recommended propertyNot detectedWithout a required one, Google does not make the item eligible for that feature. A missing recommended one is usually a non-critical issue. Only the Rich Results Test shows either.

The rich result wording comes from a fixed list this tool keeps, not from Google. The list includes Dataset, for example, although Google says Dataset markup is used only by Dataset Search, not Google Search. Three more causes of the malformed error are not in the syntax table above: a CDATA wrapper or an HTML comment around the JSON, a byte-order mark at the very start, and quotes written as &quot;, because the contents of a script tag are not HTML-decoded.

Several blocks, @graph and how entities are counted

  • Several script tags are normal. Each is parsed on its own, so one broken block does not hide the others. A page with one good and one malformed block reads two found, one valid and one with errors, scoring 50.
  • @graph is unpacked one level. One script can hold an @graph array whose entities point at each other by @id, which is what Yoast and Rank Math output. Each entry is counted and typed separately, and a top-level array is unpacked the same way. An empty @graph counts as nothing, so a page with only that reads as having no structured data.
  • Nested objects are not counted. The offers, author, publisher or review inside an entity are not listed or checked, so an Offer with no @type still passes, and a reference such as {"@id": "..."} is not an entity of its own.
  • Duplicates are listed, not flagged. A row such as Product ×2 is usually a theme and a plugin both printing the same entity. Keep one source so Google is not handed two versions.

Where JSON-LD can go, and how many blocks Google accepts

Google describes JSON-LD as a script tag that can sit in the head or the body, so either is fine, and this tool finds both. Google also says it can read JSON-LD that a script injects after load, which is where the gap with this tool, explained below, comes from. On quantity, Google says it understands several items on one page, whether nested inside a main item or each in its own block. Keep one description per entity and put each block on the page it describes. Markup about content a visitor cannot see breaks Google's guidelines: a structured data manual action removes rich result eligibility, though not rankings.

What the tool sees: server HTML or JavaScript-injected markup

The URL goes through the same page fetch the other HTML-based tools here share. A scraping service returns the page's HTML and this tool reads that text with an HTML parser. It runs no scripts of its own, and what the service captured before handing the HTML over is outside its control. A fetched page is kept for up to 24 hours and a finished result is reused for up to 6 hours.

Where the JSON-LD comes fromThis toolGoogle
Written into the HTML by the server, CMS or framework (a WordPress plugin, Next.js, a PHP template)Found.Found.
Added by a script after the page loads (a Tag Manager custom HTML tag, an app component, a widget)Only if the fetched HTML already includes it. Not guaranteed either way.Usually found, since Google renders pages, but later and less reliably than markup in the first HTML.
Added only after a click, a scroll or a consent choiceNot found.Usually not found.

So a missing block here is ambiguous when your markup comes from a script. Open the page, choose View Source (not Inspect, which shows the page after scripts have run) and search for application/ld+json. A block in the source is there for this tool and for Google without waiting for any script. A block that only appears in Inspect is worth testing in Google's Rich Results Test, which renders the page, and worth moving into the server-rendered HTML.

After you fix it

  1. Check the live source, then re-run. Confirm the fix is deployed by viewing the source. A result can be up to 6 hours old and a fetched page up to 24, so an immediate re-run may repeat the old answer; a harmless query string such as ?v=2 makes the address new and forces a fresh fetch.
  2. Run Google's Rich Results Test. It fetches the page (or takes pasted code), renders it, and lists the rich result types the page qualifies for, with missing required properties as errors and many missing recommended ones as warnings. Fix those in the markup and test again.
  3. Watch the Search Console enhancement reports. Under Enhancements, Search Console shows a report for each markup type Google found on your site, such as Breadcrumbs or Product snippets, counting valid items, items with warnings and items with errors across the whole site. They update only after Google recrawls the pages, which can take days to weeks, and an error report offers a way to ask Google to validate your fix.

If a page has no markup yet or needs more, build it with the Schema Markup Generator, the FAQ Schema Generator or the Review Schema Generator, then validate it here. The Meta Tag Checker covers titles, descriptions and social tags, and the Full Site Audit runs this check alongside the others. The schema markup guide explains which types are worth adding.

Frequently asked questions

What happened to Google's Structured Data Testing Tool?

Google announced its retirement in 2020 and, since August 2021, redirects it to a landing page that helps you choose a replacement. Its job went to two tools: the Rich Results Test (which checks the types Google supports for rich results) and the Schema Markup Validator at validator.schema.org (which checks syntax and schema.org compliance for any type). This tool sits in between — it finds every JSON-LD block on a live page, confirms it parses and has a type, and labels the types it finds against a fixed list of ones Google can show as a rich result.

Does this check Microdata or RDFa too?

No — only JSON-LD, which is the format Google explicitly recommends and the one nearly every modern CMS and plugin emits. If your site still uses Microdata (schema attributes sprinkled through the HTML), it will show as 'no structured data found' here even though it may be valid.

It says my markup is valid — so why am I not getting rich results?

Valid syntax is only the first gate. Google also requires specific properties per type (a Product needs offers with a price, a Recipe needs an image and cook time), only shows rich results for pages it considers useful, and never guarantees them even when everything is correct. Use Google's Rich Results Test for the per-property requirements once the syntax here is clean.

My site uses Yoast or Rank Math — why do I see one block with many types?

Those plugins output a single JSON-LD block using an @graph array that bundles the Organization, WebSite, WebPage, Article, and BreadcrumbList entities together. This tool unpacks @graph and counts each entity inside it separately, so you'll see them listed individually rather than as one anonymous block.

What does 'Missing @type' mean?

Every JSON-LD entity has to declare what it is with a @type property — without one, search engines have no idea whether the object describes a product, a person, or a page, and ignore it. It usually means a template variable didn't get filled in, or the block was hand-written and the property was misspelled.

Will it see JSON-LD that Google Tag Manager or JavaScript adds?

Not reliably. The page is fetched through a scraping service and this tool reads the HTML text that comes back; it runs no scripts of its own. Markup written into the HTML by your server, CMS or framework is found. Markup that a script adds after the page loads may or may not be in what the service returned, so a missing block here does not prove Google cannot see it, and a block shown here does not prove it is in your page source. View Source shows what your server sent and Google's Rich Results Test renders the page, so use those two to settle it. For pages that matter, put the JSON-LD in the HTML itself.

Why does the summary say 6 blocks when I only have one script tag?

The count is of entities, not script tags. A script holding an @graph with six entries counts as six, and a top-level array counts one per item. A script that fails to parse counts as one invalid block however many entities it was meant to hold, an @graph with nothing in it counts as none, and nested objects such as an offer or an author are not counted at all. View Source shows how many script tags there are; this tool shows how many top-level entities they contain.

I fixed the markup, so why does the tool still show the error?

Most likely a saved result. A fetched page is kept for up to 24 hours per address and a finished result for up to 6 hours, so a re-run soon after a deploy can show the old answer. First confirm the fix is in View Source on the live page. Then add a harmless query string such as ?v=2 to the address, which counts as a new address and forces a fresh fetch, or wait for the saved copy to expire. If the live source is still wrong, check for a page cached at your CDN or a plugin that prints the block twice.

What does the score mean, and why does a page with no markup get 60?

The score is the share of entities that passed, as a percentage: 3 valid out of 5 is 60. It measures syntax and type only, so 100 does not mean the page is ready for rich results. A page with no JSON-LD gets a fixed 60 because that is a missed opportunity rather than an error. It also means a page where half the entities are broken (50) scores lower than a page with no markup at all, so read the red rows rather than the number.

Why does a FAQPage or HowTo block say Google no longer shows rich results for it?

Because Google has withdrawn both: FAQ rich results were restricted in 2023 and have since been switched off, and HowTo rich results were withdrawn too; our FAQ schema guide covers what changed. The tool keeps a fixed list of type names, matched on the name alone, and files these two under a separate message. The markup is still valid, which is why the row is green, and search engines and AI tools can still read it. A green row is a statement about syntax, not a promise that Google will show anything.

Does it matter if my @context is http://schema.org or https://schema.org?

No. Schema.org's own FAQ says both spellings are fine and that older http markup stays widely understood, so there is no need to rewrite blocks that already work. What matters is that the value is one of those two (Google's examples use the https form, sometimes with a trailing slash) and not something like schema.org with no protocol. This validator never reads @context: a block with a missing, misspelled or wrong one still passes as long as it parses and has a @type. The Schema Markup Validator at validator.schema.org is built around the schema.org vocabulary and says it does not fetch or interpret other @context URLs, so use it to check the rest.

My @type is a list, such as ["Restaurant", "LocalBusiness"]. Will that pass?

Yes, it counts as one valid entity, and the shape is normal: Google's local business page tells you to give several types as an array. The tool joins the list into a single label, Restaurant,LocalBusiness, which is not on its fixed list of rich result types, so the row gets the quieter wording (useful for search engines' understanding) instead of the rich result label. That is a side effect of how the label is looked up, not a finding about your markup. Run the page through Google's Rich Results Test to see how Google reads the type.

How do I check JSON-LD before the page is live?

This tool fetches a live address, so it cannot test code you have not published. Before launch, open Google's Rich Results Test and choose Code instead of URL, then paste the block; the Schema Markup Validator at validator.schema.org also accepts markup pasted in directly. For a syntax-only check, the JSON Formatter on this site shows the exact line that breaks. A pasted block is tested on its own, not as part of the page around it, so run the live URL through this tool once it is published.

Should I use one @graph block or several script tags?

Either works, and this tool reads both the same way: each entity is counted and typed on its own whether it has its own script tag or sits inside an @graph array. Google says it understands multiple items on a page whether you nest them or give each its own block, so use whichever your CMS or framework already emits, with one description per entity. One quirk here: when a block has both @graph and a top-level @type, only the entries inside @graph are counted, so put the type on each entry.

Related tools

We use cookies to analyze site usage and improve your experience. You can decline non-essential cookies. Privacy Policy