You added a schema block to a page last week. Nothing in your search listing changed, and now you are stuck on a simpler question: is the code even right? A JSON-LD block fails silently. A missing comma, a block pasted where the template strips it out, a question in the markup that the page never asks: none of these show up when you look at the page in a browser. The page looks identical with good schema and with broken schema.
Testing has two layers. The first happens before publishing, inside the generator that built the block. The second happens after publishing, on the live URL, with Google's Rich Results Test or the Schema.org validator. The free Schema Markup Generator on Ovatly handles the first layer; this guide walks through both, in the order you should run them.
Contents
- Quick answer
- Why there are two different checks
- What the generator checks before you publish
- How to test your schema, step by step
- Worked example: testing a FAQ block on a coffee guide
- What a passing test does and does not mean
- Common mistakes
- FAQs
- Conclusion
Quick answer
Generate the block with the Schema Markup Generator and read its guidance note: the tool validates that the output is well-formed JSON and tells you which recommended properties are still empty. Paste the block inside the <head> of the page or just before the closing </body> tag, publish the page, then run Google's Rich Results Test (or the Schema.org validator) on the live URL. Fix anything the live test flags, in the page or in the generator, and test again. The generator checks the code; only the live test checks your real page.
Why there are two different checks
The two checks answer different questions. The generator answers: is this block valid JSON-LD, built from the right fields for this schema type? It can answer that completely: it built the block and knows the field guidance.
The live test answers: does the page Google can fetch actually carry this markup, and does the markup match what the page shows? The generator cannot answer that. It never sees your published page, your template, or the other code around the block. A block can be perfect JSON and still fail in the real world because the page was never republished, the CMS moved it, or the marked-up text was edited out of the page. In the tool's own words: it verifies the JSON is valid and complete against its field guidance, but only the live tests see your real page.
Skipping the first check wastes time in the second one: you end up debugging commas through a slow publish-and-test cycle. Skipping the second is worse: you never learn whether the markup survived onto the live page.
What the generator checks before you publish
The generator builds JSON-LD for six types: Article, FAQPage, HowTo, Product, LocalBusiness and BreadcrumbList. As it builds, it does three things worth knowing about.
First, it validates that the output is well-formed JSON. Second, it escapes closing script tags inside your text, so an answer containing that sequence cannot break the page when the block is pasted in. Third, it shows a note about which recommended properties are still empty. Treat that note correctly: it is guidance based on schema.org's required and recommended properties for the type. It is not a promise that Google will show a rich result, and filling every field with invented content to clear the note is exactly the wrong response. Fill fields with what is actually on the page, or leave them empty.
How to test your schema, step by step
- Open the Schema Markup Generator and choose the schema type that matches the page.
- Fill in the fields with the page's real information. For FAQ, HowTo and Breadcrumb types, add as many entries as the page contains, no more.
- Read the guidance note and copy the generated script block. If a recommended property is empty and the page genuinely has that information, add it; if not, leave it.
- Paste the block into the page, inside the
<head>or just before the closing</body>tag. Keep one block per type per page. - Publish or update the page, so the live URL carries the new block.
- Run Google's Rich Results Test on the live URL. The Schema.org validator is the alternative the tool's guidance names for the same job.
- If the test flags a problem, fix it where it lives: a markup problem goes back to the generator, a publishing problem gets fixed in the page or template. Then run the live test again.
Worked example: testing a FAQ block on a coffee guide
Take the example the generator itself uses. A coffee guide page visibly contains the question "Is pour over coffee strong?" with the answer "It depends on the coffee to water ratio." In the generator you choose the FAQPage type and add that one pair. The output is a script block whose JSON contains "@type": "FAQPage" and a mainEntity array holding the question and its accepted answer. At this point layer one is done: the JSON is valid, and the guidance note has had its say.
You paste the block into the page that visibly contains the same question and answer, publish, and then run the Rich Results Test on the live URL. That second step proves the block is really on the page Google fetches, attached to content a visitor can read. If you had tested only the generated snippet, you would know the code was well-formed but nothing about the page. If you had hand-written the block instead, the live test would be your first chance to catch a JSON error, after a full publish cycle.
What a passing test does and does not mean
A clean live test means the markup on the published page is valid and the page is eligible for rich results. It does not mean Google will show one. Schema makes a page eligible; Google decides whether to show a rich result based on quality, relevance and its current feature set. Some features are narrower than people expect: FAQ rich results, for example, are now limited to certain authoritative sites, so a flawless FAQ block on an ordinary site may simply never display as one. That is a policy outcome, not a bug in your code, and no amount of retesting changes it.
A test describes the page as published at the moment you ran it. Change the template, edit the visible questions, or move the block, and the earlier result says nothing about the new state. Test again after such changes.
Common mistakes
- Testing the snippet instead of the live page. A pasted block in a test field proves the JSON parses. It says nothing about whether your published page carries it.
- Marking up content the page does not show. A FAQ block for questions the page never asks is the kind of mismatch that leads to manual actions or ignored markup. The markup must match the visible page.
- Adding ratings the page does not have. Structured data must describe visible content. Invented ratings and review counts breach search engine guidelines; the generator's Product form only includes a rating when you supply both a rating value and a review count.
- Stacking duplicate blocks. Keep one block per type per page. Two FAQPage blocks invite confusion about which one describes the page.
- Treating the missing-properties note as a score. It is schema.org guidance, not a Google promise. An empty optional field is better than a filled invented one.
- Expecting the rich result to follow the test. Eligibility and display are different things, and display is Google's decision.
FAQs
Does adding schema guarantee rich results? No. Schema makes a page eligible for rich results; Google decides whether to show them based on quality, relevance and its current feature set. FAQ rich results, for example, are now limited to certain authoritative sites.
Where do I paste the JSON-LD block?
Inside the <head> of the page, or just before the closing </body> tag. Both placements are accepted; keep one block per type per page.
Can I mark up content that is not on the page? No. The markup must match the visible page. A FAQ block for questions the page never asks is exactly the kind of mismatch that leads to manual actions or ignored markup.
Which type should a blog post use? Article (or its subtypes like BlogPosting) with the headline, author and publication date exactly as shown on the page.
How do I test the markup after adding it? Use Google's Rich Results Test or the Schema.org validator on the live URL. This tool verifies the JSON is valid and complete against its field guidance, but only the live tests see your real page.
Conclusion
Test in the order the problems occur: validity first, in the generator, then reality, on the live URL. The Schema Markup Generator gives you a validated block and an honest note about what is missing; the Rich Results Test tells you whether that block survived publishing and matches the page. Neither step replaces the other, and neither one can promise you a rich result. If you are still deciding which markup a page needs at all, start with What Is Structured Data?, then browse the rest of the SEO Tools guides for the generators that pair with it.