More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

Schema Markup Generator (Free JSON-LD Tool)

This schema markup generator builds JSON-LD structured data in your browser. Pick a type and fill in the fields. The code updates as you type. It covers seven common types: LocalBusiness, Organization, FAQPage, Article, Product, BreadcrumbList and Service.

The tool is free and needs no sign-up. It runs on this page with plain JavaScript, so what you type is not sent to Helium SEO or to anyone else.

How do you use the schema markup generator?

You use it in four steps: pick a type, fill in the fields, copy the code and test it.

  1. Pick the schema type that matches the page. The table below shows which type fits which page.
  2. Fill in the fields. Use the same wording and prices that visitors see on the page. Empty fields are left out of the code.
  3. Copy the code. Leave "Include the script tag" checked if you will paste into HTML. Uncheck it if your plugin asks for raw JSON.
  4. Paste and test. Add the code to the page, then run the page through the two testing tools listed below.

Which schema type should you use?

Use the type that describes the main thing on the page. Mark up only what the page shows.

The seven types this generator builds
TypeUse it onWhat it tells search engines
LocalBusinessHomepage or a location page of a business with an address or service areaName, address, phone and opening hours
OrganizationHomepage or About pageWho runs the site and how to contact them
FAQPageA page with a visible list of questions and answersEach question and its answer
ArticleBlog posts and news storiesHeadline, author and dates
ProductA single product pagePrice, availability and brand
BreadcrumbListAny page below the homepageWhere the page sits in the site
ServiceA page about one serviceWhat the service is and who provides it

If you run a local company, LocalBusiness markup works best next to an accurate Google Business Profile and consistent contact details. That is part of local SEO.

Where do you paste the JSON-LD code?

Paste the code into the HTML of the one page it describes. Google reads JSON-LD from the head or the body, so either place works.

  • WordPress: add a Custom HTML block to the page, or use the schema or custom code field in your SEO plugin. In Elementor, use an HTML widget.
  • Shopify: add the snippet to the matching template in your theme code. Product markup belongs in the product template.
  • Other site builders: look for a "custom code" or "header code" setting for the single page.
  • Hand-built sites: paste it before the closing </head> tag of that page.

Do not paste one snippet across the whole site unless it is true for every page. Organization markup belongs on the homepage. A product snippet belongs on that product's page only.

How do you test schema markup?

Test it with Google's Rich Results Test and the Schema Markup Validator. Both are free and both accept a URL or pasted code.

  1. Open the Rich Results Test. Paste your code or the page URL. It shows which Google rich results the page can get, and lists errors and warnings.
  2. Open the Schema Markup Validator. It checks the code against schema.org for every type, including types Google has no rich result for.
  3. Fix every error. Warnings mark optional fields, so fill them in when you have the information.
  4. After the page is live, watch the Enhancements reports in Google Search Console. They list pages where Google found valid or broken markup.

What rules does schema markup have to follow?

Schema markup has to describe content that visitors can see on the same page. Google's structured data guidelines say markup that is misleading or describes something not on the page can lose its rich results.

  • Use real values. Do not add a rating or review count unless those reviews are shown on the page.
  • Keep it current. When a price or your opening hours change on the page, change the markup too.
  • FAQ rich results are limited. In 2023 Google said it would show them only for well-known government and health sites, so on most sites FAQPage markup will not change how the listing looks. It still labels the questions and answers for machines that read the page.

Markup is one part of technical SEO services. If you want someone to check the whole site, an SEO audit covers structured data along with crawling and indexing. Structured data also helps AI answer engines read facts from a page, which is part of generative engine optimization. For the wider picture, read the basics of technical SEO.

FAQs

Is this schema markup generator free?

Yes. There is no charge and no sign-up. The code is built in your browser, and nothing you type is sent to a server.

What is schema markup?

Schema markup is code that labels the facts on a page for search engines, such as a business name, a price, or a question and its answer. It uses the vocabulary from schema.org. JSON-LD is the format Google recommends for writing it.

Where do I put JSON-LD code?

Paste it into the HTML of the page it describes, in the head or in the body. In WordPress you can use a custom HTML block, your SEO plugin's schema field or a header code plugin. Put each snippet only on the page it describes.

Does schema markup improve rankings?

Schema markup helps search engines understand a page and can make it eligible for rich results such as breadcrumbs and product prices. Google does not promise a rich result or a higher position for adding it. The page content still has to be useful and has to match the markup.

Can I add more than one schema type to a page?

Yes. A product page can carry Product and BreadcrumbList markup, and a homepage can carry Organization or LocalBusiness. Generate each type separately and paste each snippet in its own script tag. Do not add a type the page does not show.

What is the difference between JSON-LD and Microdata?

Both describe the same schema.org facts. Microdata is written into the HTML tags around the visible text. JSON-LD sits in one separate script block, which makes it easier to add and to change. Google recommends JSON-LD, and this tool outputs only JSON-LD.

More free tools from Helium SEO

Want a person to review your site? Get my free $1,500 audit.

Shopping Basket

Download the Free - Entity SEO: The Definitive Guide - Ebook Now

Please complete the form below and a copy of the Ebook will be emailed to you right away.