JSON-LD Validator

JSON valid?—
Declared type—
Schema.org context—
Issues found—

How JSON-LD Validator is calculated: Parse the JSON, then count issues: missing @context, missing @type, or a @type outside the built-in list of common schema.org types

What is a JSON-LD validator?

JSON-LD is the format most websites use to give search engines structured data — machine-readable facts about a page, written as a small block of JSON inside the page. A block that says a page is an Article, with a headline, an author, and a publication date, lets a search engine understand the page as an article instead of guessing from the text. That understanding is what powers rich results: the extra details, like dates and author names, that sometimes appear under a link in search results.

A validator checks that block before it goes live. It answers three questions: is the text valid JSON at all, does it have the two fields every block needs, and is the type it claims to be a type search engines recognise? A block that fails any of those checks will simply be ignored by a search engine, and the page will show as a plain blue link — the same as a page with no structured data at all.

This validator runs entirely in your browser. Paste a JSON-LD block into the box and it parses it on the spot, reporting whether the JSON is valid, which type it declares, whether the schema.org context is present, and how many issues it found. It does not fetch your page and it does not talk to Google — it checks the code itself, which is the part you control.

How this JSON-LD validator works

The first check is parsing. The validator feeds your text to the browser's JSON parser, the same parser every browser uses. If the parser accepts it, the block is valid JSON. If it rejects it, the validator shows the parser's error message, cut to the useful part — a message like Expected property name tells you a quote or a comma is missing near the start of the block, which is where most JSON errors live.

The second check looks for the two fields that make a block JSON-LD instead of plain JSON. The @context field should name https://schema.org, the vocabulary the block is written in. The @type field names what the block describes — Article, Product, Recipe, FAQPage, and about thirty other common types. A block missing either field is counted as having an issue, because a search engine cannot use a block it cannot place in the vocabulary.

The third check compares the declared type against a built-in list of around thirty common schema.org types. An unknown type — a typo like Artical, or a type that does not exist — is counted as an issue too. The issue count in the results box is the total of all three checks: a missing context, a missing type, and an unknown type each add one. A clean block scores zero.

The @context and @type fields, explained

The @context field is the block's dictionary. It tells the reader which vocabulary the words in the block come from, and for web pages that vocabulary is almost always https://schema.org. Without it, headline and author are just words — with it, they are defined terms with agreed meanings. Every block on the web uses the same context, so a search engine never has to guess what headline means on your page.

The @type field is the block's subject. It says what the page is: an Article, a Product, a Recipe, a FAQPage, a LocalBusiness, and so on. The type decides which fields a search engine expects to find — an Article needs a headline and a date, a Product needs a name and a price, a Recipe needs ingredients. Picking the wrong type is worse than picking none, because the search engine will look for fields that do not belong on your page.

The sample on this page declares an Article with a headline, an author, and a publication date, and it passes all three checks with zero issues. If you change the type to Artical, the validator flags one issue — an unknown type — while the JSON stays valid. That split is the point: valid JSON and valid JSON-LD are different things, and a block can be one without being the other.

A worked example: validating an Article block

Take the sample loaded on this page. It is a small block for an Article: the context is https://schema.org, the type is Article, the headline is How to Brew Filter Coffee, the author is a Person named Viv Kumar, and the datePublished is 2026-11-15. Paste it in as it is and the validator reports Valid JSON, the type Article, the context as https://schema.org present, and 0 issues. That is a clean block, ready to paste into a page.

Now break it on purpose. Delete the closing brace and paste again, and the validator reports Invalid JSON with the parser's message, the type as a dash, and the context as missing. The issue count shows a dash too, because the checks cannot run on text that does not parse — fixing the syntax comes first. Add the brace back, delete the @type line, and the block parses again but reports one issue: the type is missing. Each failure has its own reading, and each reading points at the fix.

Try a third variation: a block that is valid JSON but uses a type the list does not know, like Spaceship. The JSON parses, the context is present, but the issue count is one — an unknown type. The validator does not know what a Spaceship is, and neither does a search engine. Change the type to one from the common list and the count drops back to zero.

Why validating JSON-LD matters

Structured data only works when it is correct, and it fails silently when it is not. A search engine that finds a broken block does not show an error on your page — it simply ignores the block, and your page shows as a plain link. You can publish a page with broken JSON-LD and never know, because nothing on the page looks wrong. The only way to catch it is to validate the block before it goes live, which is what this tool is for.

Validation also matters because structured data is copied a lot. A developer copies a working block from one page to another, changes the headline, and forgets to change the date — or pastes a Product block onto an Article page. Each copy is a chance for a small error to spread across the whole site. Validating each block as you write it costs ten seconds and saves a site-wide cleanup later.

There is a limit to what this validator can tell you, and it is honest about it. It checks the code: the syntax, the context, the type, and the field names. It cannot tell you whether Google will show a rich result for your page, because that decision is Google's — it depends on the page's content, its quality, and whether the result type is even shown for that kind of search. A meta tag generator handles the other half of the page's head: the title and description that every result shows, rich or plain.

JSON-LD validator vs structured data tester: different jobs

This validator and a structured data tester both read JSON-LD, but they check different things. The validator asks: is this block well-formed? It checks the syntax, the context, and whether the type exists. The tester asks: is this block complete? It checks whether the fields a type requires — the headline and date for an Article, the price for a Product — are actually present. One checks the shape of the block; the other checks the contents.

A block can pass the validator and fail the tester. An Article block with a headline and an author is valid JSON-LD, but if it has no datePublished, a tester will call it incomplete — and a search engine that wants a date for articles may ignore it. The reverse is also possible in principle, but a block that does not parse cannot be tested at all, so the validator always comes first.

Use them in order: validate the block, then test it for completeness. The validator is the ten-second check you run while writing; the tester is the check you run before publishing. A sitemap generator is a different tool again — it lists your pages for search engines, while these two tools check what each page says about itself.

Common mistakes with JSON-LD

The most common mistake is a syntax error from hand-editing: a missing comma between two fields, a trailing comma after the last field, or a quote mark that was never closed. JSON is strict about all three, and a single missing comma invalidates the whole block. Paste the block into this validator after every edit, and the parser's message will point at the problem.

The second mistake is a missing @type. A block with a headline and an author but no type says nothing a search engine can use — the fields have no subject to attach to. The third mistake is a type that does not exist, usually a typo: Artical instead of Article, or FAQ instead of FAQPage. The validator's type list catches those, because it only recognises real schema.org types.

The fourth mistake is copying a block from another page and leaving the old values in it — the old headline, the old date, the old author. The block will validate perfectly, because the values are not the validator's business, but the search engine will read facts about a different page. Validate the shape here, then read the values yourself before you publish. And the fifth mistake is putting the block in the body of the page instead of the head — JSON-LD belongs in a script tag in the head, where crawlers look for it.

How to use this JSON-LD validator

First, paste the JSON-LD block you want to check into the box. The sample on this page is a valid Article block — replace it with your own, or edit it in place and watch the results update live. The results box shows whether the JSON is valid, the declared type, whether the schema.org context is present, and the number of issues found.

If the issue count is more than zero, read the other three rows to find the problem. A missing context means the @context line is absent; a dash for the type means the @type line is absent or the block did not parse; an unknown type means the type is misspelled or not a real schema.org type. Fix the named problem and the count drops. A robots.txt generator can help with the other half of crawler access — making sure search engines are allowed to visit the page at all.

Nothing you paste is uploaded or stored: the parsing runs entirely in your browser, and closing the page deletes everything. Validate each block before you publish the page, and again after any edit — the check takes ten seconds, and a clean zero is the only result worth shipping.

Frequently Asked Questions

It means the text parses as JSON — the brackets match, the commas are in the right places, and every string is closed. It does not mean the block is good structured data: a block can be valid JSON and still be missing its @type or its @context, which is why this validator reports those as issues separately. Valid JSON is the first check, not the only one.

No. This validator checks the code itself — the syntax, the @context, and the @type — entirely in your browser. It cannot tell you whether Google will show a rich result for the page, because that decision is Google's and depends on the page's content and quality. For Google's own verdict, paste the same block into Google's Rich Results Test.

A missing @context means the block does not name the vocabulary it is written in, so headline and author are just words instead of defined schema.org terms. A missing @type means the block does not say what it describes — an Article, a Product, a Recipe — so a search engine has nothing to attach the fields to. Either one makes the block unusable, and each adds one to the issue count.

The list holds about thirty types that cover almost every page on the web: Article, BlogPosting, Product, Recipe, FAQPage, BreadcrumbList, LocalBusiness, Organization, Person, Event, and others. It is a built-in list, not a live lookup of schema.org, so a rare type outside the list may be flagged even though it exists. If the type is a real schema.org type, the flag is a warning about the list, not about your block.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.