Skip to main content

New series: how one WordPress checkbox cost a site 7 months of Google traffic, and the full rescue in 21 lessons. Read the series

Free tool

Free Schema Validator and JSON-LD Generator

Enter a page address or paste your code. You see each JSON-LD block as valid or broken, with the line and column of the first error, the types found, and the key fields each type is missing. Or build Organization, LocalBusiness, Article, Product, FAQ, Breadcrumb or Person markup and copy it.

What do you want to check?

We fetch the page’s HTML, the way a crawler that doesn’t run JavaScript would, and read every JSON-LD block.

Last updated

About the schema validator and generator

Structured data is a block of code in a page, usually JSON-LD, that says what the page is: an article, a product, an organization, a list of questions. This tool reads every JSON-LD block in the page's HTML, tells you which ones are valid JSON and where the first error is, lists the types it found, and shows which key fields are missing for the types it knows. It uses the same reader as the Half Dev scans, so what it reports here is what the AEO and GEO checks see. It checks structure, not eligibility: it cannot tell you whether Google will show a rich result.

How it works

  1. Enter a page address, or paste the page's HTML or just the JSON-LD. A pasted object that starts with { or [ is read as JSON-LD; anything else is read as HTML.
  2. Half Dev fetches the page's raw HTML, the way a crawler that does not run JavaScript would, and finds every <script type="application/ld+json"> block. A block inside an HTML comment is ignored, as it is by the scans.
  3. Each block is parsed. If it is not valid JSON you get the line and column of the first problem, the text around it, and a tip for the usual mistakes: a trailing comma, single or curly quotes, a missing comma, an unclosed bracket.
  4. For each valid block you see the types in it (including those inside an @graph), and, for Article, Organization, LocalBusiness, Product and Person, the key fields that are missing.
  5. To build markup, open the generator, pick a type, fill in the form and copy the result. The output is read back with the same reader before you rely on it, and anything that is still missing is listed.

How to read the result

The headline gives the state of the page: found, incomplete, partly invalid, supporting types only, invalid, microdata only, or none. “Invalid” means a block is not valid JSON, so search engines and AI tools ignore it. “Supporting types only” means the page has things like breadcrumbs or images but nothing that says what the page or site is.

Key fields are the few fields the Half Dev checks look for, not everything schema.org or Google accepts. Article needs a headline, an author and a published date. Organization needs a name and a URL. LocalBusiness needs a name and an address. Product needs a name and an offer, a review or a rating. Person needs a name. A page can have every key field and still not qualify for a rich result, and a type with no missing fields is not a promise of one.

Notes are extra observations that are not scored: an object with no @context, a @context that is not schema.org, an object with no @type, or a FAQPage with no questions. They explain why a block may be ignored. Use Google's Rich Results Test and the Schema Markup Validator for the full rules of each rich result.

Who it's for

  • A site owner checks that the Organization or Article markup a plugin writes is valid and complete.
  • A developer finds the stray comma or curly quote that makes a block unreadable, with the exact line and column.
  • An SEO builds starter markup for a page type, then adds the rest in their template.
  • An agency checks a client's pages before and after a template change.

What this tool does not do

  • It reads raw HTML only. JSON-LD added by JavaScript after the page loads is not seen. When a page looks built by JavaScript, the result says so.
  • It checks structure and a few key fields. It does not check that the values are true, that the markup matches what is visible on the page, or that Google will show a rich result. Use Google's Rich Results Test for that.
  • Microdata and RDFa are noticed but not read. Only JSON-LD is checked.
  • Only the first 50 blocks on a page are shown, and only the first 60 items in each block.
  • The generator builds one type at a time. To mark up several things on a page, make each one and paste the blocks in together.
  • Pasted code and generator output are read on Half Dev's server so the same rules apply as in the scans. Nothing is stored.
  • A limited number of runs per connection every few minutes, to keep the tool free for everyone.

FAQ

It finds every JSON-LD block in a page or pasted code, says whether each is valid JSON (with the line and column of the first error when it is not), lists the types, and shows the key fields missing for Article, Organization, LocalBusiness, Product and Person.

No. This tool checks that the markup can be read and has the key fields the Half Dev checks look for. Google's Rich Results Test checks whether a page is eligible for specific rich results. Use this tool to fix broken or incomplete markup, then use Google's tool for the final check.

They are the few fields each main type needs to say something useful: headline, author and datePublished for an Article; name and url for an Organization; name and address for a LocalBusiness; name and an offer, review or rating for a Product; name for a Person. They are the minimum the scans check, not the full list schema.org allows.

The most common cause is markup added by JavaScript after the page loads, which is not in the page's HTML. Other causes are markup inside an HTML comment, markup in microdata instead of JSON-LD, or a block that is not valid JSON and so does not count. Use View Source, not Inspect, to see what a crawler gets.

Paste the whole <script> block into the page it describes, in the head or the body. Organization markup belongs on the home page or an about page, Article on the article, Product on the product page, and so on. Each page gets its own markup.

Structured data helps search engines and other systems read what a page is, and can make a page eligible for some rich results. It does not promise higher rankings or citations in AI answers.

Google Search no longer shows FAQ rich results, so FAQPage markup will not add one. You can still add it to describe the questions on a page to other systems. The questions and answers must be visible on the page.

No. Google's guidelines ask for markup to describe content that visitors can see, and markup that does not can be ignored or lead to a manual action. Mark up what is on the page.

No. A pasted block, a page address or a generator form is used to run the check and the result is sent back to your browser. Nothing you enter is stored.

Tools: Free AEO Checker · Free GEO Checker (llms.txt & FAQ Schema) · Free robots.txt Tester and Generator

See all Half Dev tools