OnlineTextLab
Esc

Schema Markup Generator

Fill in a form and watch valid JSON-LD appear, with a live note on what the markup can earn in Google Search.

Paste the script tag anywhere in the page's HTML, usually in the head. Then confirm it in the structured data validator.

Runs on your device. Your files and text are not uploaded.

About Schema Markup Generator

Writing JSON-LD by hand means remembering that a price sits inside offers, a rating needs a count beside it, and a breadcrumb needs numbered positions. This generator holds that structure for you. You pick a type, type what your page already says, and the code on the right rewrites itself on every keystroke.

Beside the code sits a live status line, so you always know where you stand: what is still needed, or that Google's requirements are met. It is honest about types that no longer pay off. FAQ Page and How-To stay available because they are valid schema.org and other systems may read them, but choosing either shows a clear warning that Google no longer gives them a rich result.

How it works

The form for each type is defined in code, and your entries are assembled into a nested object and written out with JSON.stringify, so quotation marks and line breaks in your text are always escaped correctly. Everything happens in your browser and no entry is sent anywhere.

Some behaviour exists to stop bad output. Rows you leave blank do not become empty questions or steps. A preset value such as the currency is held back until there is a price, so you cannot publish an offers object with no amount. In the script tag, any </ inside a value is escaped so a stray closing tag cannot break out of the block.

After each change the output runs through the same rule table as our validator, which is where the required and recommended counts come from. Dates come from your browser's date pickers and reach the markup in ISO 8601 format.

How to use Schema Markup Generator

  1. Choose a type under What is this page about?
  2. Press Fill with an example to see a finished version, or type your own values. Clear the form starts again.
  3. Watch the status above the code. It lists anything still needed, including inside nested items.
  4. Use Add another for repeating items such as breadcrumb levels, ingredients or questions, and Remove to drop a row.
  5. Press Copy script tag and paste it into the page, use Copy JSON only for a tag manager or template, or take the Download button for a file.

A two-level breadcrumb from the example values

Input
Label: Boots, URL: https://example.com/boots
Label: Hiking, URL: https://example.com/boots/hiking
Output
{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    {
      "@type": "ListItem",
      "position": 1,
      "name": "Boots",
      "item": "https://example.com/boots"
    },
    {
      "@type": "ListItem",
      "position": 2,
      "name": "Hiking",
      "item": "https://example.com/boots/hiking"
    }
  ]
}

Positions are numbered for you from the row order, so reordering by hand is never needed. Google has shown breadcrumbs in desktop results only since January 2025, so expect to see them there and not on phones.

When it helps

  • Adding Recipe markup to a food blog post where the plugin does not cover it.
  • Giving a small business's home page LocalBusiness markup with address and phone.
  • Producing a Product block as a reference, so a developer can see the shape before building a template.

Tips for a better result

  • Use only what the page shows. If a rating is not visible to readers, leave those fields empty, because marking up hidden content goes against Google's guidelines.
  • Do not add a Review or rating for your own business on your own site. Google does not show stars for self-serving reviews of that kind.
  • After publishing, run the live address through the schema markup checker, since CMS editors sometimes alter pasted scripts.

Good to know

  • It covers 15 types, and each form has the commonly used fields rather than everything schema.org defines. Add extra properties by hand in your copy if you need them.
  • Each result holds one item. It does not connect several items with @id references or build an @graph.
  • It cannot tell whether your values are true or match the page. It checks shape and completeness only.
  • Meeting the requirements makes a page eligible only. Google decides whether any rich result appears.

Questions people ask

Why can I still generate FAQ and How-To markup if Google dropped them?

Because the types are valid schema.org and removing them would not make sense for people using them for other readers of the data. The tool tells you plainly that Google stopped FAQ rich results on May 7, 2026, and how-to results in September 2023. If Google is your only reason, skip them.

Where on the page does the script tag go?

Google reads JSON-LD in either the head or the body. The head is the usual place, because it keeps the markup out of your content. Dynamic insertion by JavaScript or a tag manager can work too, though markup in the HTML from the start is more dependable.

What happened to the search box option for WebSite?

It is gone from this form because Google removed the sitelinks search box in November 2024, and SearchAction no longer does anything there. WebSite markup is still useful for telling Google your preferred site name, which is why name, url and alternateName remain.

What to use next

Learn more

Last reviewed . Read our editorial policy.