Web & SEO
Schema Markup (JSON-LD) Generator
Generate JSON-LD structured data for FAQ pages, articles, products, local businesses and organizations — ready to paste into your page's <head>.
How to use
- 1Choose the schema type and fill in the fields (FAQ: one 'Question? | Answer' per line).
- 2Copy the <script> block into your page and test it with Google's Rich Results Test.
How it's calculated
Output follows schema.org vocabulary in JSON-LD format, including the properties Google lists as required or recommended for each rich result type.
Frequently asked questions
Where do I put JSON-LD?
Inside a <script type="application/ld+json"> tag, usually in the <head>, though anywhere in the page works.
Will schema guarantee rich results?
No — it makes you eligible. Google decides whether to show rich results, and has limited FAQ rich results to authoritative sites since 2023.
Must the markup match the page?
Yes. Marking up content that isn't visible to users breaks Google's guidelines and can lead to manual actions.
Why empty fields vanish instead of printing blank
The generator runs every output object through a clean() step that strips out any property that's an empty string or undefined before serializing to JSON — so leaving the description field blank doesn't produce "description": "" in the output, it removes the description key entirely. That matters because some validators and parsers treat an empty string differently from a missing property, and shipping a blank required field can look like a page author forgot to fill something in rather than deliberately not using that property.
Worked example: Schema Markup (JSON-LD) Generator
Choosing Product, naming it 'Mug', setting price to 12 and currency to EUR, while leaving description blank, produces JSON-LD with "priceCurrency": "EUR" nested inside the offers object but no description key anywhere in the output — confirmed by this tool's own test checking exactly that absence. Switch to FAQPage instead and enter two lines as 'Question? | Answer', and each line becomes its own Question object with a nested acceptedAnswer — splitting on the pipe character means an answer that itself contains a pipe would need to be written carefully, since everything after the first pipe becomes part of the answer text.
Why schema markup doesn't guarantee the rich result it enables
Adding valid Product or FAQPage schema makes a page eligible for the corresponding rich result in search — a star rating, a price, an expandable FAQ accordion — but Google decides independently whether to actually render it, and has tightened eligibility over time; FAQ rich results specifically were restricted to a narrower set of authoritative sites starting in 2023, which means a correctly generated FAQPage schema today may not produce the FAQ dropdown in search results the way it once reliably did.
Why the markup has to match what's actually on the page
Google's structured data guidelines require that marked-up content be genuinely visible to users on the page — generating an FAQ schema for questions that don't actually appear anywhere in the page's visible content is flagged as a guideline violation, not a clever SEO trick, and can lead to a manual action that suppresses rich results for the whole site. This tool generates syntactically correct schema from whatever you type in; it has no way to verify that content actually exists on your page, which remains your responsibility before publishing.
Related tools
- Structured Data (JSON-LD) Validator
Paste JSON-LD (or a page's HTML) to check it's valid JSON, uses schema.org correctly and includes the key properties for common rich result types.
- On-Page SEO Checker (Paste HTML)
Paste a page's HTML to check its title, meta description, heading structure (H1–H6), image alt text, word count, links and canonical tag — all in your browser.
- Hreflang Tag Generator
Generate hreflang link tags (and the x-default) for multilingual or multi-regional sites, as HTML <link> tags or XML sitemap entries.
- Landing Page Grader
Grade any landing page out of 100 — server speed, compression, HTTPS, title and meta description, headings, mobile viewport, content, alt text, calls to action and social tags — with specific fixes.
- JSON Schema Generator
Generate a JSON Schema (draft 2020-12) from sample JSON — types, nested objects, arrays, required fields and formats like email, date-time and URI.
- Fake Test Data Generator (JSON / CSV)
Generate realistic fake people — names, emails, phones, addresses, companies — as JSON or CSV for testing and demos.