JSON-LD Schema Generator

Create basic structured data for real facts, validate the JSON, then test it before publishing.

FreeNo sign-upRuns in your browser: your data is not uploaded


How to generate and validate JSON-LD

Start with the visible page you want to describe. Collect the facts shown to visitors, including the public URL and the exact name of the page or entity.

  1. Choose a Schema type. Use WebSite for the site itself, Organization for the entity behind it, Article for an editorial page, LocalBusiness for a business location or BreadcrumbList for a navigation trail.
  2. Enter the Name or headline and Canonical public URL. For Article, add the actual author and publication date. For LocalBusiness, enter the street address, city and country displayed on the page; region and postal code are optional. For BreadcrumbList, fill in only the breadcrumb rows.
  3. Click Generate JSON-LD and check each property. Use Copy code to keep the full script block. Add it once to the relevant page in your template or CMS.
  4. Check the pasted script or public URL with the Schema Markup Validator. To check Google eligibility for a supported feature and identify required fields, use the Rich Results Test.

Worked example for a help article breadcrumb

Suppose the visible trail is Home, Support, then Bike Care. Choose BreadcrumbList and paste these lines in Breadcrumbs.

Home | https://example.com/
Support | https://example.com/support/
Bike Care | https://example.com/support/bike-care

The generator creates three ListItem entries with positions 1, 2 and 3. Check the order and confirm each item URL matches the destination in the visible trail.

Common mistakes

  • Picking a type for its search appearance. Match the page content first. Add Article markup to the article and use Organization markup where the organization is described.
  • Copying example facts. Use the date, author and address readers can verify. Complete additional required fields for your intended Google feature before testing.
  • Duplicating markup from a plugin. Inspect the live page for an existing block about the same entity. Update that block if it already supplies those facts.

For URL checks on the published page, including its redirects and canonical tag, open SEO Workbench.

FAQ

Where can I place the JSON-LD script?
You can place the script in the head or body of the page it describes. Check that your CMS publishes the script as HTML.
How many breadcrumbs can I enter?
Enter two to fifty rows. Each row needs a name, a vertical bar and a full HTTP or HTTPS URL.
Which date should I enter for Article?
Enter the date the article was first published. Take that date from the published article or its editorial record.
What does a passing Rich Results Test tell me?
It shows which supported result types the test detected and whether it found eligibility errors. Google decides when to display an eligible result.
What address does LocalBusiness require in this tool?
Enter the street address, city and country of the location described on that page; region and postal code are optional. Each part is written to its own PostalAddress property. Use the Organization option when the page describes the organization as a whole.

Found it useful? Put a link in your docs, README or forum answer so others can use it too:

HTML
<a href="https://headsntail.com/tools/schema-generator">JSON-LD Schema Generator</a> (free, by HeadsNTail)
Markdown (GitHub, Stack Overflow, dev.to)
[JSON-LD Schema Generator](https://headsntail.com/tools/schema-generator)

Need a website, HR or business system? HeadsNTail builds websites, HR and payroll apps and business tools. See services or ask a question.