Why Structured Data Matters
Google reads structured data to understand what your page is about — not just what words appear on it. When Google trusts your markup, it can show rich results: star ratings, prices, FAQs, recipes, event dates and more, directly in search results.
Rich results typically boost click-through rate by 20–30% because they stand out visually. They can also earn more screen real estate, pushing competitors down.
JSON-LD — The Recommended Format
Google supports three structured data formats, but strongly recommends JSON-LD (JavaScript Object Notation for Linked Data). It's:
- Easy to maintain — all markup lives in one block, separated from the HTML
- Easy to inject — can be added by tag managers or backend templates
- Less error-prone — no need to modify every element
- Portable — copy-paste between pages, generate with tools like this one
The block goes inside <script type="application/ld+json"> and can be placed in <head> or <body>.
Anatomy of a JSON-LD Block
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "How to Brew Better Coffee",
"author": {
"@type": "Person",
"name": "Jane Smith"
},
"datePublished": "2026-01-15T09:00:00+00:00",
"image": "https://example.com/coffee.jpg"
}
@context— always"https://schema.org"@type— the schema type (Article, Product, etc.)- Properties — the actual data (headline, author, etc.)
- Nested objects — for related entities (author, publisher, offers)
The @graph Pattern
When you need multiple schema types on one page, use @graph instead of multiple script tags:
{
"@context": "https://schema.org",
"@graph": [
{ "@type": "Organization", "name": "..." },
{ "@type": "WebSite", "url": "..." },
{ "@type": "Article", "headline": "..." }
]
}
Required vs Recommended Properties
Each schema type has different requirements. Google documents them at developers.google.com/search/docs/appearance/structured-data. In general:
- Required properties must be present or the markup is invalid
- Recommended properties boost the richness of your result
- Optional properties add extra detail
Common Mistakes
- Markup doesn't match visible content. Google considers this spam. If your page shows $30 but markup says $20, you'll lose rich results and possibly get a manual action.
- Using relative URLs.
image,url,sameAs— all need absolute URLs. - Wrong date format. Dates must be ISO 8601 —
2026-01-15T09:00:00+00:00, not "January 15, 2026". - Missing required properties. Article without a headline, Product without name/offers, FAQ without questions.
- Duplicate conflicting markup. Two Article schemas on one page confuse Google.
- Marking up content that isn't visible. FAQ answers that don't appear on the page.
- Fake reviews. Review markup for reviews you don't have — this is a Google manual action trigger.
- Not testing. Always test with Rich Results Test before deploying.
How to Use This Generator
- Pick a schema type from the chips at the top (Article, Product, FAQ, etc.).
- Fill in the fields — required fields are marked with a red asterisk.
- Watch the JSON-LD output update live on the right.
- Test with sample data using the flask icon to see what valid output looks like.
- Copy the JSON and paste it into your page's
<script type="application/ld+json">block, or download the full script tag. - Validate with Google using the Rich Results Test before publishing.
Pro Tip: Once your page is live, monitor rich results in Google Search Console → Enhancements. It shows which pages have valid markup, which have errors, and which have lost rich results over time. Fix errors promptly — Search Console sends email alerts when rich results drop.
⚠️ AI-Generated Tool Notice: This Schema.org Generator was built with AI assistance. It produces valid JSON-LD for the schema types covered, but Google's requirements evolve and rich results are never guaranteed. Always test with the Rich Results Test and Schema Markup Validator, and check the Search Console Enhancements report after deployment.