Skip to content
🧩

Schema Markup Generator

Build valid JSON-LD structured data and paste it straight into your page.

Runs in your browser

Updated

How the builder assembles JSON-LD

Twelve tabs run across the top: Article, Product, Local Business, FAQ, Breadcrumb, Organization, Event, Recipe, Person, Video, Software and How-To. The active tab decides which labelled fields render below it, with red asterisks on required ones; Article has three: headline, publisher name, canonical URL. Pressing Generate hands the collected values to that type's build function and writes the result into a read-only textarea using four-space indentation.

A worked example

Fill Article's three required fields only. The output carries the schema.org context, repeats the headline as name, wraps the publisher in an Organization object, and adds a mainEntityOfPage WebPage whose identifier is the canonical URL. The banner reads: Looks good. Validate it with the Rich Results Test before publishing. Give the headline 120 characters and the banner turns amber, naming the exact count and warning that it gets truncated past 110.

Field rules baked into the tool

Small decisions live in the build functions. A single image URL is wrapped in an array because list-shaped images parse more cleanly. Keywords split on commas into separate entries. Product emits aggregateRating only when rating and review count are both filled, and a lone rating is flagged as one Google rejects. In a breadcrumb, the final level is emitted without a URL, since the current page should not link to itself. The paired rows FAQ and Breadcrumb use cannot be removed once added, because the remove control counts a different row type. Align the rest of the head with the meta tag generator and the Open Graph checker.

Where it stops

  • The checks are a short fixed list; real schema.org conformance is not judged.
  • One block describes one type, with no @graph for nesting several.
  • URLs are copied verbatim, never fetched or verified.
  • JSON-LD only, with no microdata or RDFa output.

Questions people ask

Does the green message guarantee rich results?

No. It means the required fields are present; eligibility is a separate decision, and a final pass through the HTML validator catches pasting mistakes.

Where does the block go?

Inside a script tag typed application/ld+json, head or body of the page being described.

Should every page get a block?

Only mark up content a visitor can see; fields with no visible counterpart invite penalties.