· 4 min read
How to Validate JSON-LD Structured Data Offline
Heshan Fernando
Co-founder & COO
You’re adding structured data to a page — Article schema, Product schema, maybe a Recipe or Event — and before you push it live, you want to check it’s actually correctly formed. The obvious option is Google’s own Rich Results Test, but that means submitting your page URL or code to Google’s servers, which isn’t always something you want to do for a page that’s still in draft, or for a client project still under NDA, or simply because you’d rather not send unpublished content to a third party just to check its JSON-LD syntax.
Structured data validation doesn’t actually require hitting Google’s servers — schema.org’s field requirements for each content type are public and well documented, and checking a JSON-LD block against them is a matter of confirming the required and recommended fields are present and correctly typed.
What JSON-LD validation actually involves
Each schema.org type — Article, Product, Recipe, Event, FAQPage, and others — defines its own set of required properties (without which search engines won’t recognize the markup as valid for rich results) and recommended properties (which improve how the rich result displays but aren’t strictly mandatory). Validating a JSON-LD block means parsing it as valid JSON first, identifying its declared @type, and then checking the fields present against that type’s specific requirements.
Why people get stuck here
- Not wanting to send unpublished content to an external service. For pages still in development, under NDA, or simply not yet public, submitting the URL or raw markup to a third-party validator isn’t always appropriate.
- JSON syntax errors masking as schema errors. A single misplaced comma or unescaped quote breaks the whole JSON-LD block, and it’s easy to spend time debugging “why isn’t my Product schema working” when the actual problem is invalid JSON syntax.
- Confusing required and recommended fields. Missing a required field means the markup won’t be recognized as that schema type at all; missing a recommended field just means a less rich display — the two have very different urgency.
- Testing against the wrong schema type’s requirements. Article and Product schemas, for instance, expect different fields entirely, and applying one type’s checklist to markup declared as another type produces confusing, irrelevant errors.
What a good offline schema tester looks like
Validates without transmitting your page or data anywhere
Checking JSON-LD entirely client-side means you can validate structured data for unpublished or sensitive pages without sending anything to an external server.
Covers the common schema.org types with their actual field requirements
Supporting the types people actually use most — Article, Product, Recipe, Event, FAQPage — against their real required and recommended field lists makes the checker genuinely useful rather than a generic JSON syntax checker.
Distinguishes required issues from recommended improvements
Separating “this will break rich result eligibility” from “this would improve the display but isn’t mandatory” helps you prioritize fixes correctly before publishing.
Common mistakes to avoid
- Publishing structured data that’s syntactically valid JSON but missing required fields for its declared type, which means it won’t generate rich results at all despite looking correct.
- Copying a schema template from one content type and forgetting to swap the
@typeand its associated required fields to match your actual content. - Assuming offline validation is a complete substitute for live monitoring — once published, still periodically check Search Console for how your structured data is actually being interpreted at scale.
- Nesting schema types incorrectly, such as embedding a Person or Organization schema without the correct property structure expected by the parent type.
- Leaving placeholder or template values (like example.com URLs) in structured data that accidentally makes it to production.
How to do it with Schema Markup Tester Offline
Online Tool Store’s Schema Markup Tester Offline validates your JSON-LD entirely in your browser.
- Open the Schema Markup Tester Offline tool.
- Paste your JSON-LD structured data block.
- Review flagged required and recommended fields for the detected schema type.
- Fix the issues and re-check before adding the markup to your live page.
Frequently asked questions
Does this replace Google’s Rich Results Test?
Not entirely — Google’s tool also confirms how your specific page is actually being interpreted by Google’s live systems, which an offline validator can’t replicate. This tool is best used earlier, to catch structural and field-level issues before you’re ready to test against a live, published URL.
What’s the difference between a required and recommended field?
A required field is necessary for a search engine to recognize the markup as that schema type at all — missing one usually disqualifies the block from rich results entirely. A recommended field improves how the rich result looks or what information it can show, but its absence doesn’t break basic eligibility.
Can I validate multiple schema types on the same page?
Yes — many pages legitimately include multiple JSON-LD blocks (for example, both Organization and Article schema). Check each block individually against its own declared @type’s requirements, since the correct fields differ by type.
Final thought
Catch the structural and field-level issues in your JSON-LD before you’re ready to publish, so the only thing left to verify with Google’s live tools is how the already-valid markup renders in practice.