Skip to content
toolstome

Schema markup (JSON-LD) generator

Structured data helps search engines understand a page and can make it eligible for rich results such as product prices and ratings, event dates, business details and breadcrumb trails. Choose a type, fill in the fields, and the generator writes valid schema.org JSON-LD in a script tag ready to paste into your page. It adds the nested types search engines expect, such as Offer and PostalAddress, leaves out empty fields, checks required fields, URLs, dates and currency codes, and escapes the output so page text cannot break out of the script tag.

Free · No sign-upProcessed in your browser

Type

News articles, blog posts and other articles.

  • ErrorHeadline is required.

Test the markup with Google’s Rich Results Test before publishing.

How to use the Schema Markup Generator

  1. 1

    Choose a type

    Article, Product, Local business, Organization, Event, FAQ or Breadcrumbs.

  2. 2

    Fill in the fields

    Fields marked with * are required; add as many recommended fields as you can.

  3. 3

    Fix any problems

    The list above the code shows missing or invalid values.

  4. 4

    Add it to your page

    Paste the script tag into the page’s HTML, then test it with Google’s Rich Results Test.

When to use it

  • Add product price and rating markup to an online shop.
  • Mark up a local business’s address, phone and opening hours.
  • Add article and breadcrumb markup to a blog.

Limits

  • Structured data makes a page eligible for rich results; search engines decide whether to show them.
  • Since 2023, Google shows FAQ rich results only for well-known government and health websites, though FAQ markup is still valid.
  • The markup must match what is visible on the page.

Privacy

Markup is generated in your browser. Nothing you enter is sent anywhere.

Frequently asked questions

What is JSON-LD?

A way of writing structured data as JSON inside a script tag. It is the format Google recommends because it is kept separate from the visible HTML.

Where do I put the code?

Anywhere in the page’s HTML, usually in the head. Content management systems often have a field or plugin for it.

How do I test the markup?

Use Google’s Rich Results Test or the Schema.org validator with the page URL or the code.

Will this guarantee rich results?

No. It makes the page eligible; Google decides whether to show rich results based on quality and relevance.

Why does the code contain \u003c?

It is the escaped form of the less-than sign, so text such as a closing script tag inside your content cannot end the script early. JSON readers turn it back into the character.

People also use

Last updated November 22, 2026 · How we build and test our tools

Categories

Recently used tools

Tools you open will appear here.

More