Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4791 pages

Free tool · SEO and webmaster

Schema markup generator

Schema markup is structured data, usually a JSON-LD script, that describes a page to search engines in schema.org terms so it can qualify for rich results. Pick Article, Product, Local business, Organization, Event or Breadcrumb, fill in the fields and copy a JSON-LD block with Google's required properties checked.

  • Free
  • No sign-up
  • Runs in your browser

By Maaz Zindani · Updated

Type of page
Local business JSON-LD
<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "CafeOrCoffeeShop", "name": "Corner Grind Coffee", "url": "https://example.com/", "telephone": "+1-217-555-0142", "address": { "@type": "PostalAddress", "streetAddress": "42 Market Street", "addressLocality": "Springfield", "addressRegion": "IL", "postalCode": "62701", "addressCountry": "US" }, "geo": { "@type": "GeoCoordinates", "latitude": 39.80172, "longitude": -89.64371 }, "priceRange": "$$", "openingHoursSpecification": [ { "@type": "OpeningHoursSpecification", "dayOfWeek": [ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday" ], "opens": "07:00:00", "closes": "18:00:00" }, { "@type": "OpeningHoursSpecification", "dayOfWeek": "Saturday", "opens": "08:00:00", "closes": "16:00:00" } ] } </script>
  • @type CafeOrCoffeeShop
  • 7 properties
  • Required: name, address

Paste the block into the page it describes, in the head or the body. Mark up only what visitors can see on that page, then test the live URL with Google's Rich Results Test.

How to use the Schema Markup Generator

  1. Choose the Type of page: Article, Product, Local business, Organization, Event or Breadcrumb.
  2. Fill in the fields that appear. Each type starts with an example you can overwrite.
  3. Fix anything shown in red, and read the Check lines for recommended extras.
  4. Press Copy or Download, paste the block into the page it describes, then test the live page.

What is schema markup, and does it help SEO?

Schema markup, also called structured data, is a block of code that describes a page in a fixed vocabulary from schema.org: this page is a local business, its address is this, it opens at these times. Search engines read it to understand the page, and Google uses it to decide whether a page can appear with a richer result, such as a product with its price or an event with its date.

It is not a ranking trick. Google's introduction to structured data says that markup which is not implemented correctly can make a page ineligible for rich results, and that the markup must describe what users can see: marking up information that is not visible on the page goes against its guidelines, even if the information is accurate. Good markup makes a page eligible; it does not guarantee anything.

Google accepts three formats, JSON-LD, Microdata and RDFa, and says that in general it recommends JSON-LD if your setup allows it. That is the format this tool writes: one script block that sits apart from your HTML, so you can add or change it without touching the page layout.

Which schema type should I use for my page?

Use the type that matches the main thing the page is about, and only one main type per page. A product page is a Product, even if the shop is also a local business; the business markup belongs on its home or contact page. The table lists the six types this generator writes, with the properties Google marks as required and the main recommended ones.

The six types in this generator, from Google's documentation for each (24 Nov 2026)
TypeFitsRequired by GoogleRecommended
ArticleNews stories, blog posts, guidesnoneheadline, image, datePublished, dateModified, author
ProductA page that sells one productname, plus offers (price)image, description, brand, sku, priceCurrency, availability
Local businessA shop, cafe, clinic or office people visitname, addresstelephone, url, geo, openingHoursSpecification, priceRange
OrganizationHome or about page of a company or groupnonename, url, logo, sameAs, description, email, telephone
EventA concert, class or meetup at a physical placename, startDate, location with addressendDate, eventStatus, description, image, offers, organizer
BreadcrumbAny page below the home pageitemListElement (2+ items with name, position)item URL on every item but the last

Article and Organization have no required properties at all: Google asks you to add the ones that apply. Event markup needs a physical place with an address, because Google's event documentation says events must take place at a physical location. Within a type you can choose a more specific kind, such as BlogPosting for a blog post, Restaurant or Dentist for a local business, or OnlineStore for an online shop.

Google's Organization guide recommends placing that markup on the home page or a single page about the organization, not on every page of the site. Breadcrumb markup is the opposite: it belongs on every page below the home page, each with its own trail. A typical shop therefore carries Organization or Local business markup once, Product markup on each product page and a breadcrumb on all of them.

What does a finished JSON-LD block look like?

The example in the form is a coffee shop. The tool turns it into a CafeOrCoffeeShop block with 7 properties: name, address, telephone, website, price range, map coordinates and opening hours. The start of the block reads <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "CafeOrCoffeeShop", ....

Opening hours show what the tool does for you. You type a line such as "Mon-Fri 07:00-18:00", and it writes an OpeningHoursSpecification with dayOfWeek Monday, Tuesday, Wednesday, Thursday, Friday, opens 07:00:00 and closes 18:00:00, the hh:mm:ss form Google documents. Ranges can wrap around the week, so "Sat-Mon" gives Saturday, Sunday and Monday.

Other checks follow the same documentation. Google asks for a phone number with its country and area code, coordinates with at least five decimal places, a price range under 100 characters, a three-letter ISO 4217 currency code for prices, and dates in ISO 8601 with a time zone offset when a time is given. A breadcrumb needs at least two items; the example trail has 3, and the last one may leave out its URL because Google then uses the page's own address.

Where do I put JSON-LD, and how do I test it?

Paste the whole script block into the HTML of the page it describes. It can go in the head or the body. Many content systems have a field or a plugin setting for custom code in the head; use that rather than editing a theme file, so the block survives updates. Each page gets its own block with its own values: do not copy one product's markup to every product.

After publishing, test the live address with Google's Rich Results Test, which Google's introduction calls an easy way to validate structured data, and use the URL Inspection tool in Search Console to confirm Google has found the markup. Over time, the rich result status reports in Search Console show errors across the whole site.

When the test reports a missing field, it names the property, so compare it with the table above: a missing required property stops the rich result, while a missing recommended one only means less information. Fix the value in the form, copy the new block, replace the old one and test again; the block is plain text, so keeping a copy next to the page in your notes makes later changes quick.

If you also need the head tags for the same page, the meta tag generator writes the title, description, canonical and share-card tags, and a breadcrumb trail fits naturally with a clean address from the slug generator.

Why does this tool not make FAQ, HowTo or review markup?

Google's search gallery, checked for this page on 24 November 2026, lists 25 structured-data features, and FAQ and HowTo are not among them. Writing that markup would promise results that Google does not list, so this generator leaves them out.

Ratings and reviews are left out on purpose too. They have their own Google guidelines, and a rating typed into a generator rather than collected from real customers is exactly the kind of markup that breaks them. If your page shows genuine reviews, follow Google's review snippet documentation and mark up only what visitors can read on the page.

Use it with

Questions

What is the best format for schema markup?

JSON-LD. Google supports JSON-LD, Microdata and RDFa, and says that in general it recommends JSON-LD where your site allows it. This tool writes JSON-LD.

Does schema markup guarantee rich results?

No. Correct markup makes a page eligible; Google decides what to show. Markup must also describe content that visitors can see on the page.

What are the required properties for LocalBusiness schema?

name and address. The example coffee shop also has telephone, url, geo, priceRange and opening hours, 7 properties in all.

Where do I put JSON-LD on a page?

In the HTML of the page it describes, in the head or the body. Each page gets its own block with its own values.

How do I test my structured data?

Publish the page and test its URL with Google's Rich Results Test, then check URL Inspection and the rich result reports in Search Console.

Can I add FAQ schema with this tool?

No. FAQ and HowTo are not among the 25 features in Google's search gallery as checked on 24 November 2026, so the tool does not offer them.

How this page was made: the tool's results are computed in your browser by the code on this page, using the sources listed above; the explanations were drafted with AI help and checked against the tool's own output.