Schema Markup Generator

Generate valid JSON-LD for Article, FAQ, HowTo, Product, Service, LocalBusiness, Organization, Person, WebSite, Breadcrumb, Event and Video, with required-field checks.

Free. Runs in your browser. Nothing you paste is uploaded.
Updates as you type

Test in Google Rich Results

How to use the schema generator

  1. Pick the type that matches what the page is. A blog post is Article or BlogPosting; a service page is Service; a shop listing is Product; a business with a physical address is LocalBusiness, and the dropdown lets you choose a more specific business type.
  2. Fill in the fields. Required fields are marked and listed as missing until you complete them. The JSON-LD on the right rebuilds with every keystroke.
  3. Read the notes above the output. Some warn about things that are technically valid but risky, such as star ratings that are not visible on the page.
  4. Copy the snippet and add it to the page head, or use the Google Rich Results test link to validate it before publishing. In WordPress, Rank Math and Yoast can also accept custom JSON-LD per page.

What structured data does and does not do

Structured data describes the page to search engines in a form they can read without guessing: this is an article, written by this person, published on this date; this is a product, at this price, in stock. Google uses it to show rich results such as FAQ dropdowns, product prices, star ratings, breadcrumbs and event dates. It does not raise rankings by itself, and it is ignored entirely if it describes things that are not on the page.

That last rule is enforced. Google’s guidelines require the marked-up information to be visible to users. A FAQPage whose questions are not on the page, a rating with no reviews, or an Organization schema claiming a business the site does not run can lead to a manual action that removes all rich results for the domain. The generator adds warnings where people most often cross that line.

Which type to use

Page Type Notes
Blog post or guide Article or BlogPosting Include author with a profile URL, dates and a featured image. dateModified should change when you actually update the post.
Page with a Q&A section FAQPage Google now shows FAQ rich results only for government and health sites, but the markup still helps understanding.
Step-by-step tutorial HowTo Rich results were retired in 2023; the markup remains valid and useful for clarity.
Product listing Product Price, currency and availability are required for price rich results. Use PKR for Pakistani stores.
Service page Service Names the service and provider. Pair with Organization or LocalBusiness on the home page.
Business with an address LocalBusiness or a subtype Match the name, address and phone exactly to Google Business Profile.
Home page Organization plus WebSite sameAs links to social profiles help Google connect the entities.
Author or consultant profile Person jobTitle, worksFor and sameAs establish who the author is.

Frequently asked questions

Where do I put the JSON-LD in WordPress?

Rank Math: edit the post, open the Schema tab, choose Custom Schema and paste the JSON. Yoast: use a code snippet or a header script plugin. Manually: add it to the theme’s header.php inside a conditional, or to the page’s custom HTML block; Google reads JSON-LD anywhere in the HTML.

Can I have several schema blocks on one page?

Yes. A blog post commonly has Article, BreadcrumbList and Organization. Use the same identifiers for the same entity across blocks so they connect, or nest them in one graph.

Does Rank Math already add this?

Rank Math adds Article, WebSite, Organization or Person and BreadcrumbList automatically. Use this generator for types it does not cover, such as Service, Event, HowTo or a specific LocalBusiness subtype, and avoid duplicating types it already outputs.

Related tools

Background reading: which schema types matter for Pakistani content, in the WordPress SEO guide.


Click Here |