About the Schema.org JSON-LD Generator
Pick a schema type, fill in a form, get clean JSON-LD markup ready to paste into your page's <head>. Google's Search Gallery uses these structured-data formats to display rich results — FAQ accordions, recipe cards, product star ratings, event details, breadcrumb navigation and more. The generator follows the exact shape Google expects and warns you when required fields are missing.
What is JSON-LD and why does Google care?
JSON-LD (JSON for Linking Data) is the structured-data format Google recommends for marking up content on your pages. It lives inside a <script type="application/ld+json"> block in your HTML and tells search engines exactly what your page is about — an article, a product, a recipe, an FAQ. When the markup matches a supported type, Google can render rich results in search: star ratings, FAQ accordions, recipe cards, breadcrumb trails, event details, and more. Pages with rich results typically get higher click-through rates than plain text snippets.
Where do I paste the generated JSON-LD?
Take the <script> tag from the right-hand output box and paste it inside the <head> of your HTML page (it also works inside <body>, but <head> is the convention). You can have multiple JSON-LD blocks on the same page — for example, an Article block plus a BreadcrumbList plus an Organization block — and Google will read all of them.
Will Google show rich results just because I added JSON-LD?
Adding correct JSON-LD makes your page eligible for rich results, but Google decides whether to actually display them based on page quality, the user's query, and other ranking signals. After deploying the markup, paste your URL into the Google Rich Results Test (link at the bottom of the tool) to confirm Google can parse it. Indexing and rich-result display can take days to weeks.
What's the difference between FAQPage and Q&A schema?
FAQPage is for pages where you (the publisher) provide both the question and the answer — like a help center or product FAQ. QAPage is for user-generated Q&A like Stack Overflow or Reddit threads where multiple people answer one question. Use FAQPage for typical FAQ blocks on landing pages.
How do I write the duration fields (PT30M, PT1H)?
Schema.org uses the ISO 8601 duration format. The pattern is PT[H][M][S]: PT30M = 30 minutes, PT1H = 1 hour, PT1H30M = 1 hour 30 minutes, PT15S = 15 seconds, P1D = 1 day. The placeholder text in the form shows the right format. For videos, also include hours when relevant: PT2H15M3S.
Can I add structured data without changing my HTML?
Yes — if you use Google Tag Manager, you can inject a JSON-LD script via a Custom HTML tag that fires on the relevant pages. This is a common approach for sites where the CMS doesn't support custom <head> code. Just paste the generated <script> tag as the GTM tag content and trigger it on the matching URLs.
Why does my Product schema need both 'image' and an 'offers' block?
Google's Product rich result requires at minimum: name, image, and either an aggregateRating, a review, or an offers block (price + currency + availability). The generator combines your price, currency and availability inputs into a single offers node automatically. Without them, Google may parse the markup but won't show product stars or price in search results.
Is JSON-LD better than microdata or RDFa?
For Google, yes. JSON-LD is Google's officially recommended format because it sits in a single <script> block — separate from your visible HTML — which makes it easier to maintain and harder to break. Microdata and RDFa interleave attributes with your visible HTML, which is more fragile when the page design changes. Bing and other engines also support JSON-LD.
Features
- 12 schema types: FAQPage, Article, LocalBusiness, Product, Recipe, Event, BreadcrumbList, Organization, Person, VideoObject, HowTo, Review
- Dynamic forms — fields change based on the schema type you pick
- Required-field validation with clear error messages
- Outputs both raw JSON-LD and a ready-to-paste <script type="application/ld+json"> tag
- Google Rich Results Test and Schema.org Validator launch buttons
- Add/remove rows for FAQ questions, recipe steps, ingredients, breadcrumbs, social profiles
- ISO 8601 duration helpers (PT30M, PT1H) for prep/cook/total times
- Geo coordinates and structured PostalAddress for LocalBusiness
- Combined price + currency + availability into a single Offer node
- AggregateRating for products with star-rating snippets
- 100% client-side — your content never leaves the browser
- Available in English, Spanish, Vietnamese, Portuguese and French