JSON-LD Validator
Check JSON-LD for syntax errors and missing properties, with the exact line, a plain-English fix and a tree view.
For Google’s own verdict, also run the Rich Results Test or the Schema Markup Validator.
Structure
How to use the JSON-LD validator
Paste your JSON-LD, or the full HTML of a page. The validator checks every ld+json block as you type.
- Copy the structured data from your page source or your plugin.
- Paste it into the box. Script tags are fine.
- Read the error box. It shows the line, the column and a pointer to the problem.
- Press Try to fix syntax for common slips, then check again.
- Read the warnings about missing properties and bad values.
The structure panel shows every object as a tree. Open a branch to see what is nested inside it.
What this structured data validator checks
It runs two kinds of checks. The first is JSON syntax, which must be perfect or nothing works. The second is the schema itself.
| Check | Examples |
|---|---|
| Syntax | Trailing commas, single quotes, unquoted names, comments, curly quotes, unclosed brackets |
| Structure | Missing @context, missing @type, duplicate properties, broken @id links |
| Google properties | Required and recommended fields for Product, Article, LocalBusiness, Event and more |
| Values | Dates in ISO 8601, prices as plain numbers, three-letter currencies, full URLs |
The most common JSON-LD errors
- A trailing comma after the last item in an object or list.
- Curly quotes pasted from a word processor instead of straight ones.
- A price with a symbol, such as “£39.00”. The price must be 39.00, with the currency in priceCurrency.
- Relative URLs such as /images/a.jpg. Use the full address.
- Dates in local format, such as 30/11/2026. Use 2026-11-30.
- Short availability values such as InStock. The full form is https://schema.org/InStock.
Syntax errors, explained
JSON is strict. One missing comma stops the whole block from being read, so Google sees no structured data at all.
Browsers report errors in vague terms, such as “unexpected token”. This JSON-LD syntax checker names the problem in plain words and points to the exact spot.
How it fits with Google’s tools
Google’s Rich Results Test shows whether a page can get rich results. The Schema Markup Validator checks any schema.org type. Both need a live URL or pasted code, and their syntax messages can be terse.
Use this tool while you write and fix. Then confirm with Google’s test before you publish. That order saves many round trips.
A pass here does not promise rich results. Google decides what to show, and some types, such as FAQ and HowTo, no longer get rich results at all.
Why this JSON-LD validator is different
Most online checkers either parse JSON or test schema, rarely both, and few explain errors clearly. This one does both in your browser.
- Line and column for every syntax error, with a code snippet.
- One-click fixes for the most common slips.
- Checks against Google’s key properties for popular types.
- A tree view, pretty print and minify.
- Reads every block in a pasted page at once.
Use it as a schema validator, a structured data validator or a JSON-LD syntax checker. Need to write markup from scratch? Try the Schema Markup Generator.
Private by design
The JSON-LD validator runs in your browser. Nothing you type or paste is sent to a server, and there is no sign-up.
Your last settings are saved on this device only. The tool is ready when you come back.
Frequently asked questions
How do I validate JSON-LD?
Paste the code or the page HTML above. Errors show with their line and column, and warnings list missing properties.
Why does my JSON-LD not work?
Usually a syntax slip, such as a trailing comma or curly quotes. One error stops the whole block being read.
Is this the same as Google’s Rich Results Test?
No. Use this to write and fix code. Then confirm eligibility with Google’s test before you publish.
Can it check a whole page?
Yes. Paste the full HTML and every ld+json block is checked.
What does Try to fix syntax change?
It removes trailing commas and comments, straightens quotes and quotes property names. Check the result afterwards.
Does a pass mean I get rich results?
No. Valid markup makes a page eligible. Google still decides what to show.
Which types does it check?
Product, Offer, Article, LocalBusiness, Organization, Event, Recipe, JobPosting, Breadcrumb and more.
Is my code uploaded?
No. The validator runs in your browser.
Last reviewed 2026-11-30 · How we build and check our tools