1. Home
  2. Tools
  3. Schema Markup (JSON-LD) Generator

Schema Markup (JSON-LD) Generator

Fill in a form to get valid JSON-LD structured data for common page types, in a script tag you can copy. It runs in your browser.

Structured data helps search engines understand a page. It does not guarantee rich results, which search engines decide for themselves. Your input is processed in your browser and is not sent anywhere.

How to use it

  1. Choose the type of markup that matches the page, then fill in the fields you have. Only fields you fill in appear in the output, so nothing is made up for you.
  2. For FAQ questions and breadcrumb levels, use Add to add more rows.
  3. Press Copy and paste the whole <script type="application/ld+json"> block into the page’s HTML, in the <head> or the body.
  4. Check the result with the structured data testing tools your search engines provide, and make sure the markup matches what visitors can actually see on the page.

What JSON-LD is

JSON-LD is a way of describing a page’s content in a machine-readable form, using the shared vocabulary at schema.org. It sits in a script tag and is not shown to visitors. The types here are common ones: an Article with its author and dates, a FAQPage of questions and answers, an Organization or LocalBusiness with contact details and address, a Product with a price, and a BreadcrumbList showing where a page sits in a site.

It does not guarantee rich results

Adding structured data makes a page eligible, at best. Whether a search engine shows extra features such as star ratings, product details or breadcrumbs depends on its own rules, which change, on the quality of the page and on the search. Some features have been restricted or removed for some kinds of sites over time. Markup should also describe content that is really on the page; do not mark up content visitors cannot see.

Valid output

The output is generated with the browser’s JSON encoder, so quotes, line breaks and other special characters in your text are escaped correctly, and the less-than sign is written as < so that text can never close the script tag early. Empty fields are left out, and URLs must be full addresses.

Related guides

More SEO and marketing tools: meta and Open Graph tag generator, search snippet preview and robots.txt generator. To plan SEO work with a team, see our marketing expertise.

Frequently asked questions

No. The markup is generated by your browser’s own JavaScript. Nothing is sent to CodeROG or anyone else.

Not on its own, and not guaranteed. Valid markup can make a page eligible for some features, but search engines decide whether and when to show them, and the rules change.

Anywhere in the page’s HTML works for crawlers that read JSON-LD; the <head> is the usual place. Put it on the page it describes.

Only the fields you fill in are written. That avoids inventing data. Some search features expect certain properties, so check the current documentation for the feature you want.

This tool does not generate review or rating markup. Ratings must come from real reviews that are visible on the page, so they should be added by your site from its actual data.

Need a hand with this?

Let our engineers take it from here